Files
project_sanic/map/levels/2.json

189 lines
3.6 KiB
JSON

{
"name": "Level 2",
"width": 2400,
"height": 800,
"background": "assets/map/background/forest_bg.jpg",
"gravity": 1.0,
"platforms": [
{
"id": "platform1",
"x": -1000,
"y": 520,
"width": 1800,
"height": 200,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform2",
"x": 1000,
"y": 600,
"width": 1800,
"height": 200,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform3",
"x": 300,
"y": 570,
"width": 200,
"height": 20,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform4",
"x": 700,
"y": 470,
"width": 150,
"height": 20,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform5",
"x": 900,
"y": 470,
"width": 150,
"height": 20,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform6",
"x": 1200,
"y": 370,
"width": 100,
"height": 20,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform7",
"x": 300,
"y": 240,
"width": 260,
"height": 40,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform8",
"x": 720,
"y": 220,
"width": 240,
"height": 60,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
},
{
"id": "platform9",
"x": 520,
"y": 0,
"width": 240,
"height": 60,
"texture": "assets/map/platform/grass_texture.png",
"is_moving": false
}
],
"enemies": [
{
"id": "enemy1",
"type": "turret",
"x": 260,
"y": 100,
"health": 1,
"damage": 1,
"sprite_sheet": "assets/map/enemy/turret.gif",
"size": [
50,
100
],
"behavior": "stationary",
"attack_interval": 2.0,
"attack_range": 300
},
{
"id": "enemy2",
"type": "walker",
"x": 770,
"y": 140,
"health": 1,
"damage": 1,
"sprite_sheet": "assets/map/enemy/walker_enemy.png",
"size": [
50,
100
],
"behavior": "patrol",
"patrol_points": [
{
"x": 670,
"y": 140
},
{
"x": 870,
"y": 140
}
],
"speed": 1.5
},
{
"id": "enemy3",
"type": "flyer",
"x": 420,
"y": 520,
"health": 1,
"damage": 1,
"sprite_sheet": "assets/map/enemy/flying_enemy.png",
"size": [
50,
100
],
"behavior": "chase",
"detection_radius": 200,
"speed": 2.0
}
],
"checkpoints": [
{
"id": "checkpoint1",
"x": 1080,
"y": 450,
"width": 50,
"height": 50,
"sprite": "assets/map/checkpoints/checkpoint_uncheck.png"
}
],
"exits": [
{
"x": 2225,
"y": 500,
"width": 50,
"height": 80,
"next_level": "map/levels/1.json",
"sprite": "assets/map/exit/Zeldo.png"
}
],
"collectibles": [
{
"id": "jump",
"type": "jump",
"x": 1500,
"y": 400,
"sprite": "assets/map/collectibles/jump.png"
},
{
"id": "speed",
"type": "speed",
"x": 1000,
"y": 400,
"sprite": "assets/map/collectibles/speed.png"
}
],
"spawn_point": {
"x": 50.0,
"y": 350.0
}
}