This commit is contained in:
wcjbr
2026-08-16 13:32:51 +08:00
parent 9b5d76a6ac
commit d36fd6d2ee
25 changed files with 2836 additions and 4 deletions
+30
View File
@@ -0,0 +1,30 @@
{
"window": {
"width": 800,
"height": 600,
"title": "OpenCGE - Square Example"
},
"input": [
{ "action": "quit", "keys": ["Escape"] },
{ "action": "reset", "mouse_buttons": ["Left"] },
{ "action": "move_left", "keys": ["Left"] },
{ "action": "move_right", "keys": ["Right"] },
{ "action": "move_up", "keys": ["Up"] },
{ "action": "move_down", "keys": ["Down"] }
],
"actors": [
{
"name": "square",
"init": "square_init",
"tick": "square_tick",
"position": { "x": 0, "y": 0 },
"facing": { "x": 1, "y": 0 },
"mesh": {
"shape": "quad",
"color": { "r": 0.2, "g": 0.8, "b": 0.9, "a": 1.0 }
}
}
]
}