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
7
packs/base/data/abilities/abilities.json
Normal file
7
packs/base/data/abilities/abilities.json
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"schema": 1,
|
||||
"abilities": [
|
||||
{ "id": "ability:dash", "name": "Dash", "description": "Allows you to break through weak barriers." }
|
||||
]
|
||||
}
|
||||
|
||||
28
packs/base/data/creatures/creatures.json
Normal file
28
packs/base/data/creatures/creatures.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"schema": 1,
|
||||
"creatures": [
|
||||
{
|
||||
"id": "creature:ember_fox",
|
||||
"name": "Ember Fox",
|
||||
"types": ["type:ember"],
|
||||
"biomes": ["biome:forest"],
|
||||
"time_windows": ["day", "night"],
|
||||
"base_hp": 20,
|
||||
"base_atk": 8,
|
||||
"base_def": 6,
|
||||
"capture_difficulty": 1
|
||||
},
|
||||
{
|
||||
"id": "creature:dew_sprout",
|
||||
"name": "Dew Sprout",
|
||||
"types": ["type:flora"],
|
||||
"biomes": ["biome:plains"],
|
||||
"time_windows": ["morning", "day"],
|
||||
"base_hp": 18,
|
||||
"base_atk": 6,
|
||||
"base_def": 7,
|
||||
"capture_difficulty": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
8
packs/base/data/items/items.json
Normal file
8
packs/base/data/items/items.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"schema": 1,
|
||||
"items": [
|
||||
{ "id": "item:forest_herb", "name": "Forest Herb", "stack_max": 99, "tags": ["natural"] },
|
||||
{ "id": "item:rusty_coin", "name": "Rusty Coin", "stack_max": 99, "tags": ["unnatural"] }
|
||||
]
|
||||
}
|
||||
|
||||
24
packs/base/data/npcs/npcdefs.json
Normal file
24
packs/base/data/npcs/npcdefs.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"schema": 1,
|
||||
"npcdefs": [
|
||||
{
|
||||
"id": "npcdef:shopkeeper_basic",
|
||||
"name": "Mara",
|
||||
"dialogue": ["Welcome!", "Take a look at my goods."],
|
||||
"shop_inventory": [
|
||||
{ "item": "item:forest_herb", "price": 10 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "npcdef:trainer_story_01",
|
||||
"name": "Rook",
|
||||
"dialogue": ["If you want to pass, prove yourself."],
|
||||
"battle": {
|
||||
"team": ["creature:ember_fox"],
|
||||
"reward_money": 25,
|
||||
"on_win_unlocks": ["ability:dash"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
15
packs/base/data/world/world_main.json
Normal file
15
packs/base/data/world/world_main.json
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"schema": 1,
|
||||
"world_id": "world:main",
|
||||
"display_name": "Main World",
|
||||
"chunk_size_px": 512,
|
||||
"tile_size_px": 16,
|
||||
"start_pos_px": [256, 256],
|
||||
"chunks": [
|
||||
{ "x": 0, "y": 0, "path": "data/world/chunks/0_0.json" },
|
||||
{ "x": 1, "y": 0, "path": "data/world/chunks/1_0.json" },
|
||||
{ "x": 0, "y": 1, "path": "data/world/chunks/0_1.json" },
|
||||
{ "x": 1, "y": 1, "path": "data/world/chunks/1_1.json" }
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue