Add initial project structure for "Escape From Teacher" game: server, client, level editor, and asset framework. Includes game rendering, physics, WebSocket server, NATS integration, and asset management setup.
184
cmd/client/assets/assets.json
Normal file
@@ -0,0 +1,184 @@
|
||||
{
|
||||
"assets": {
|
||||
"baskeball": {
|
||||
"ID": "baskeball",
|
||||
"Type": "obstacle",
|
||||
"Filename": "baskeball.png",
|
||||
"Scale": 0.1,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -3,
|
||||
"DrawOffY": -158,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 3,
|
||||
"OffsetY": 64,
|
||||
"W": 99,
|
||||
"H": 96,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"coin": {
|
||||
"ID": "coin",
|
||||
"Type": "obstacle",
|
||||
"Filename": "coin.png",
|
||||
"Scale": 0.1,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -7,
|
||||
"DrawOffY": -163,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 6,
|
||||
"OffsetY": 63,
|
||||
"W": 94,
|
||||
"H": 100,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"desk": {
|
||||
"ID": "desk",
|
||||
"Type": "obstacle",
|
||||
"Filename": "desk.png",
|
||||
"Scale": 0.1,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -2,
|
||||
"DrawOffY": -155,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 4,
|
||||
"OffsetY": 65,
|
||||
"W": 100,
|
||||
"H": 93,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"eraser": {
|
||||
"ID": "eraser",
|
||||
"Type": "obstacle",
|
||||
"Filename": "eraser.png",
|
||||
"Scale": 0.05,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -29,
|
||||
"DrawOffY": -61,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 30,
|
||||
"OffsetY": 14,
|
||||
"W": 73,
|
||||
"H": 47,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"g-l": {
|
||||
"ID": "g-l",
|
||||
"Type": "obstacle",
|
||||
"Filename": "g-l.png",
|
||||
"Scale": 0.5,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -65,
|
||||
"DrawOffY": -381,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 64,
|
||||
"OffsetY": 1,
|
||||
"W": 121,
|
||||
"H": 384,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"h-l": {
|
||||
"ID": "h-l",
|
||||
"Type": "obstacle",
|
||||
"Filename": "h-l.png",
|
||||
"Scale": 0.15,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -19,
|
||||
"DrawOffY": -357,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 21,
|
||||
"OffsetY": 2,
|
||||
"W": 107,
|
||||
"H": 360,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"k-l-monitor": {
|
||||
"ID": "k-l-monitor",
|
||||
"Type": "obstacle",
|
||||
"Filename": "k-l-monitor.png",
|
||||
"Scale": 0.15,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -33,
|
||||
"DrawOffY": -332,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 7,
|
||||
"OffsetY": 10,
|
||||
"W": 147,
|
||||
"H": 328,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"pc-trash": {
|
||||
"ID": "pc-trash",
|
||||
"Type": "obstacle",
|
||||
"Filename": "pc-trash.png",
|
||||
"Scale": 0.15,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -3,
|
||||
"DrawOffY": -240,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 5,
|
||||
"OffsetY": 111,
|
||||
"W": 154,
|
||||
"H": 132,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"platform_1767135546": {
|
||||
"ID": "platform_1767135546",
|
||||
"Type": "platform",
|
||||
"Filename": "platform_1767135546.png",
|
||||
"Scale": 1,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": 1,
|
||||
"DrawOffY": -34,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 0,
|
||||
"OffsetY": 2,
|
||||
"W": 126,
|
||||
"H": 28,
|
||||
"Type": ""
|
||||
}
|
||||
},
|
||||
"player": {
|
||||
"ID": "player",
|
||||
"Type": "obstacle",
|
||||
"Filename": "player.png",
|
||||
"Scale": 7,
|
||||
"ProcWidth": 0,
|
||||
"ProcHeight": 0,
|
||||
"DrawOffX": -53,
|
||||
"DrawOffY": -216,
|
||||
"Color": {},
|
||||
"Hitbox": {
|
||||
"OffsetX": 53,
|
||||
"OffsetY": 12,
|
||||
"W": 108,
|
||||
"H": 203,
|
||||
"Type": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
cmd/client/assets/baskeball.png
Normal file
|
After Width: | Height: | Size: 4.1 MiB |
36
cmd/client/assets/chunks/chunk_01.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"ID": "chunk_01",
|
||||
"Width": 50,
|
||||
"Objects": [
|
||||
{
|
||||
"AssetID": "platform_1767135546",
|
||||
"X": 419,
|
||||
"Y": 517
|
||||
},
|
||||
{
|
||||
"AssetID": "platform_1767135546",
|
||||
"X": 549,
|
||||
"Y": 516
|
||||
},
|
||||
{
|
||||
"AssetID": "platform_1767135546",
|
||||
"X": 682,
|
||||
"Y": 449
|
||||
},
|
||||
{
|
||||
"AssetID": "platform_1767135546",
|
||||
"X": 808,
|
||||
"Y": 449
|
||||
},
|
||||
{
|
||||
"AssetID": "eraser",
|
||||
"X": 1280,
|
||||
"Y": 529
|
||||
},
|
||||
{
|
||||
"AssetID": "pc-trash",
|
||||
"X": 1960,
|
||||
"Y": 533
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
cmd/client/assets/coin.png
Normal file
|
After Width: | Height: | Size: 1.5 MiB |
BIN
cmd/client/assets/desk.png
Normal file
|
After Width: | Height: | Size: 4.1 MiB |
BIN
cmd/client/assets/eraser.png
Normal file
|
After Width: | Height: | Size: 1.4 MiB |
BIN
cmd/client/assets/g-l.png
Normal file
|
After Width: | Height: | Size: 366 KiB |
BIN
cmd/client/assets/gen_plat_1767135546.png
Normal file
|
After Width: | Height: | Size: 222 B |
BIN
cmd/client/assets/gym-background.jpg
Normal file
|
After Width: | Height: | Size: 184 KiB |
BIN
cmd/client/assets/h-l.png
Normal file
|
After Width: | Height: | Size: 3.0 MiB |
BIN
cmd/client/assets/k-l-monitor.png
Normal file
|
After Width: | Height: | Size: 2.8 MiB |
BIN
cmd/client/assets/k-l.png
Normal file
|
After Width: | Height: | Size: 1.7 MiB |
BIN
cmd/client/assets/k-m.png
Normal file
|
After Width: | Height: | Size: 2.6 MiB |
BIN
cmd/client/assets/m-l.png
Normal file
|
After Width: | Height: | Size: 316 KiB |
BIN
cmd/client/assets/p-l.png
Normal file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
cmd/client/assets/pc-trash.png
Normal file
|
After Width: | Height: | Size: 4.2 MiB |
BIN
cmd/client/assets/platform_1767135546.png
Normal file
|
After Width: | Height: | Size: 222 B |
BIN
cmd/client/assets/player.png
Normal file
|
After Width: | Height: | Size: 384 B |
BIN
cmd/client/assets/r-l.png
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
cmd/client/assets/school-background.jpg
Normal file
|
After Width: | Height: | Size: 113 KiB |
BIN
cmd/client/assets/school2-background.jpg
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
cmd/client/assets/t-s.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
cmd/client/assets/w-l.png
Normal file
|
After Width: | Height: | Size: 2.2 MiB |