fixed basic movement, now add world loading

This commit is contained in:
anonoe 2026-02-09 22:44:11 +01:00
parent 34ba37312a
commit 50f37ebc5f
Signed by: anonoe
SSH key fingerprint: SHA256:OnAs6gNQelOnDiY5tBpDYKQiuTgBvnmIdMo5P09cdqg
23 changed files with 482 additions and 27 deletions

View file

@ -0,0 +1,34 @@
{
"schema": 1,
"id": "worldchunk:0_0",
"x": 0,
"y": 0,
"biome": "biome:forest",
"collision_rects": [
{ "id": "col:rockwall_01", "rect": [0, 0, 512, 32] }
],
"spawn_zones": [
{
"id": "spawn:forest_a",
"biome": "biome:forest",
"rect": [64, 64, 320, 320],
"time_windows": ["day", "night"],
"weather": ["any"]
}
],
"pickups": [
{
"id": "pickup:forest_herb_01",
"item": "item:forest_herb",
"pos": [120, 140],
"respawn_seconds": 600
},
{
"id": "pickup:rusty_coin_01",
"item": "item:rusty_coin",
"pos": [220, 180],
"respawn_seconds": 0
}
]
}

View file

@ -0,0 +1,17 @@
{
"schema": 1,
"id": "worldchunk:0_1",
"x": 0,
"y": 1,
"biome": "biome:plains",
"spawn_zones": [
{
"id": "spawn:plains_a",
"biome": "biome:plains",
"rect": [80, 80, 360, 300],
"time_windows": ["morning", "day"],
"weather": ["any"]
}
]
}

View file

@ -0,0 +1,24 @@
{
"schema": 1,
"id": "worldchunk:1_0",
"x": 1,
"y": 0,
"biome": "biome:forest",
"gates": [
{
"id": "gate:fallen_tree_01",
"rect": [200, 220, 96, 32],
"requires": "ability:dash",
"message": "A fallen tree blocks the path."
}
],
"npcs": [
{
"id": "npc:shopkeeper_01",
"kind": "shop",
"pos": [320, 300],
"ref": "npcdef:shopkeeper_basic"
}
]
}

View file

@ -0,0 +1,16 @@
{
"schema": 1,
"id": "worldchunk:1_1",
"x": 1,
"y": 1,
"biome": "biome:town",
"npcs": [
{
"id": "npc:trainer_01",
"kind": "trainer",
"pos": [260, 260],
"ref": "npcdef:trainer_story_01"
}
]
}