fixed basic movement, now add world loading
This commit is contained in:
parent
34ba37312a
commit
50f37ebc5f
23 changed files with 482 additions and 27 deletions
34
packs/base/data/world/chunks/0_0.json
Normal file
34
packs/base/data/world/chunks/0_0.json
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
17
packs/base/data/world/chunks/0_1.json
Normal file
17
packs/base/data/world/chunks/0_1.json
Normal 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"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
24
packs/base/data/world/chunks/1_0.json
Normal file
24
packs/base/data/world/chunks/1_0.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
16
packs/base/data/world/chunks/1_1.json
Normal file
16
packs/base/data/world/chunks/1_1.json
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue