Break out the game demo into multiple source and include files, add a bunch of missing assets, conform to the new subsystems interface from libakgl

This commit is contained in:
2026-05-25 21:30:47 -04:00
parent f7e61cf59b
commit df4d532d82
23 changed files with 873 additions and 406 deletions

View File

@@ -0,0 +1,68 @@
{
"name": "menupointer",
"movementspeed": 8,
"velocity_x": 0,
"velocity_y": 0,
"sprite_mappings": [
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_UP",
"AKGL_ACTOR_STATE_MOVING_UP"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_DOWN",
"AKGL_ACTOR_STATE_MOVING_DOWN"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_UP"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_DOWN"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_LEFT",
"AKGL_ACTOR_STATE_MOVING_LEFT"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_RIGHT",
"AKGL_ACTOR_STATE_MOVING_RIGHT"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_LEFT"
],
"sprite": "menupointer"
},
{
"state": [
"AKGL_ACTOR_STATE_ALIVE",
"AKGL_ACTOR_STATE_FACE_RIGHT"
],
"sprite": "menupointer"
}
]
}

BIN
assets/ffbg2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

View File

@@ -4,7 +4,7 @@
"layers":[
{
"id":4,
"image":"../assets/ffbg2-scaled.png",
"image":"ffbg2-scaled.png",
"locked":true,
"name":"Image Layer 1",
"offsetx":5.6843418860808e-14,
@@ -30,7 +30,7 @@
"name":"character",
"type":"string",
"value":"little guy"
},
},
{
"name":"state",
"type":"int",
@@ -57,7 +57,7 @@
{
"name":"state",
"type":"int",
"value":272
"value":276
}],
"rotation":0,
"type":"actor",
@@ -70,14 +70,14 @@
"height":32,
"id":16,
"name":"p_foreground",
"properties":[
{
"name":"scale",
"type":"float",
"value":1.5
}],
"rotation":0,
"type":"perspective",
"properties": [
{
"name": "scale",
"type": "number",
"value": 1.5
}],
"visible":true,
"width":790,
"x":0,
@@ -87,14 +87,14 @@
"height":12,
"id":17,
"name":"p_vanishing",
"properties":[
{
"name":"scale",
"type":"float",
"value":0.75
}],
"rotation":0,
"type":"perspective",
"properties": [
{
"name": "scale",
"type": "number",
"value": 0.75
}],
"visible":true,
"width":53,
"x":270.5,
@@ -118,7 +118,7 @@
{
"columns":48,
"firstgid":1,
"image":"../assets/World_A1.png",
"image":"World_A1.png",
"imageheight":576,
"imagewidth":768,
"margin":0,
@@ -132,4 +132,4 @@
"type":"map",
"version":"1.8",
"width":64
}
}

BIN
assets/menupointer.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

100
assets/sidescroller.tmj Normal file
View File

@@ -0,0 +1,100 @@
{ "compressionlevel":-1,
"height":15,
"infinite":false,
"layers":[
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 1, 2, 2, 2, 2, 3, 0, 0, 0, 0, 0, 0, 1, 9, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 9],
"height":15,
"id":1,
"name":"Tile Layer 1",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":20,
"x":0,
"y":0
},
{
"draworder":"topdown",
"id":3,
"name":"Object Layer 1",
"objects":[
{
"gid":211,
"height":16,
"id":1,
"name":"player",
"properties":[
{
"name":"character",
"type":"string",
"value":"little guy"
},
{
"name":"state",
"type":"int",
"value":24
}],
"rotation":0,
"type":"actor",
"visible":true,
"width":16,
"x":304.261511065887,
"y":258.471635716103
}],
"opacity":1,
"type":"objectgroup",
"visible":true,
"x":0,
"y":0
},
{
"data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
"height":15,
"id":2,
"name":"Tile Layer 2",
"opacity":1,
"type":"tilelayer",
"visible":true,
"width":20,
"x":0,
"y":0
}],
"nextlayerid":4,
"nextobjectid":2,
"orientation":"orthogonal",
"renderorder":"right-down",
"tiledversion":"1.8.2",
"tileheight":32,
"tilesets":[
{
"columns":8,
"firstgid":1,
"image":"sidescrollertiles.png",
"imageheight":256,
"imagewidth":256,
"margin":0,
"name":"sidescroller",
"spacing":0,
"tilecount":64,
"tileheight":32,
"tilewidth":32
},
{
"columns":48,
"firstgid":65,
"image":"World_A1.png",
"imageheight":576,
"imagewidth":768,
"margin":0,
"name":"World_A1",
"spacing":0,
"tilecount":1728,
"tileheight":16,
"tilewidth":16
}],
"tilewidth":32,
"type":"map",
"version":"1.8",
"width":20
}

View File

@@ -0,0 +1,16 @@
{
"spritesheet": {
"filename": "../menupointer.png",
"frame_width": 50,
"frame_height": 49
},
"name": "menupointer",
"width": 50,
"height": 49,
"speed": 0,
"loop": false,
"loopReverse": false,
"frames": [
0
]
}

View File

@@ -58,7 +58,7 @@
{
"name":"state",
"type":"int",
"value":272
"value":276
}],
"rotation":0,
"type":"actor",