this shit is ass please do not use it
Go to file
I-Have-An-Issue 32a2748d17
Better game management
2023-02-20 05:39:42 -05:00
src Better game management 2023-02-20 05:39:42 -05:00
.gitignore :DDDDDDDDDDDDDDDdDDDD 2023-01-22 03:21:53 -05:00
README.md Document, better endpoints 2023-02-20 04:12:51 -05:00
example.env W 2023-02-20 05:17:27 -05:00
package-lock.json Check if game is already running before starting 2023-01-23 14:58:57 -05:00
package.json Check if game is already running before starting 2023-01-23 14:58:57 -05:00

README.md

bingle-arbiter

The Bingle arbiter is designed to be used with almost any revival backend.

It comes preloaded with some Lua scripts made by kinery and jackd900.

You will have to replace/modify these scripts when implementing for your own projects.

Set your desired settings in .env.example, then rename it to .env.

Routes

GET /render/asset/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/asset/3d/:id

200 OK
{
	"camera": {
		"position": { "x": 0, "y": 0, "z": 0 },
		"direction": { "x": 0, "y": 0, "z": 0 }
	},
	"AABB": {
		"min": { "x": 0, "y": 0, "z": 0 },
		"max": { "x": 0, "y": 0, "z": 0 }
	},
	"files": {
		"scene.obj": { "content": "..." },
		"scene.mtl": { "content": "..." },
		"Handle1Tex.png": { "content": "..." }
	}
}

GET /render/texture/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/user/headshot/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/user/bodyshot/:id

200 OK
iVBORw0KGgoAAAANSUhEUgAAAtAAAALQCAYAAAC...

GET /render/user/3d/:id

200 OK
{
	"camera": {
		"position": { "x": 0, "y": 0, "z": 0 },
		"direction": { "x": 0, "y": 0, "z": 0 }
	},
	"AABB": {
		"min": { "x": 0, "y": 0, "z": 0 },
		"max": { "x": 0, "y": 0, "z": 0 }
	},
	"files": {
		"scene.obj": { "content": "..." },
		"scene.mtl": { "content": "..." },
		"Handle1Tex.png": { "content": "..." }
	}
}