mirror of
https://github.com/BreizhHardware/project_sanic.git
synced 2026-01-18 16:47:25 +01:00
249 lines
5.1 KiB
JSON
249 lines
5.1 KiB
JSON
{
|
|
"name": "Level 1",
|
|
"width": 2400,
|
|
"height": 800,
|
|
"background": "assets/map/background/cave_bg.png",
|
|
"gravity": 1.0,
|
|
"platforms": [
|
|
{
|
|
"id": "main_ground",
|
|
"x": -1000,
|
|
"y": 800,
|
|
"width": 1800,
|
|
"height": 200,
|
|
"texture": "assets/map/platform/grass_texture.png"
|
|
},
|
|
{
|
|
"id": "platform1_01",
|
|
"x": 200,
|
|
"y": 600,
|
|
"width": 200,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/grass_texture.png",
|
|
"is_moving": false
|
|
},
|
|
{
|
|
"id": "platform1_02",
|
|
"x": 500,
|
|
"y": 500,
|
|
"width": 200,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/grass_texture.png",
|
|
"is_moving": false
|
|
},
|
|
{
|
|
"id": "platform1_03",
|
|
"x": 900,
|
|
"y": 650,
|
|
"width": 100,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/wood_texture.png",
|
|
"is_moving": true,
|
|
"movement": {
|
|
"type": "linear",
|
|
"points": [
|
|
{"x": 800, "y": 650},
|
|
{"x": 1600, "y": 650}
|
|
],
|
|
"speed": 3.0,
|
|
"wait_time": 1.0
|
|
}
|
|
},
|
|
{
|
|
"id": "main_ground_2",
|
|
"x": 1700,
|
|
"y": 800,
|
|
"width": 700,
|
|
"height": 200,
|
|
"texture": "assets/map/platform/stone_texture.png"
|
|
},
|
|
{
|
|
"id": "platform2_01",
|
|
"x": 2500,
|
|
"y": 700,
|
|
"width": 200,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/wood_texture.png",
|
|
"is_moving": true,
|
|
"movement": {
|
|
"type": "linear",
|
|
"points": [
|
|
{"x": 2500, "y": 700},
|
|
{"x": 2500, "y": 1200}
|
|
],
|
|
"speed": 2.0,
|
|
"wait_time": 1.0
|
|
}
|
|
},
|
|
{
|
|
"id": "platform2_02",
|
|
"x": 3300,
|
|
"y": 1200,
|
|
"width": 200,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/wood_texture.png",
|
|
"is_moving": true,
|
|
"movement": {
|
|
"type": "linear",
|
|
"points": [
|
|
{"x": 2800, "y": 1200},
|
|
{"x": 3300, "y": 1200}
|
|
],
|
|
"speed": 2.0,
|
|
"wait_time": 1.0
|
|
}
|
|
},
|
|
{
|
|
"id": "main_ground_3",
|
|
"x": 3600,
|
|
"y": 1400,
|
|
"width": 700,
|
|
"height": 200,
|
|
"texture": "assets/map/platform/stone_texture.png"
|
|
},
|
|
{
|
|
"id": "platform3_01",
|
|
"x": 4600,
|
|
"y": 1100,
|
|
"width": 100,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/wood_texture.png",
|
|
"is_moving": true,
|
|
"movement": {
|
|
"type": "circular",
|
|
"center": {"x": 4600, "y": 1100},
|
|
"radius": 3,
|
|
"speed": 0.02,
|
|
"clockwise": true
|
|
}
|
|
},
|
|
{
|
|
"id": "platform3_02",
|
|
"x": 3900,
|
|
"y": 1200,
|
|
"width": 200,
|
|
"height": 20,
|
|
"texture": "assets/map/platform/wood_texture.png",
|
|
"is_moving": false
|
|
},
|
|
{
|
|
"id": "main_ground_4",
|
|
"x": 4900,
|
|
"y": 1300,
|
|
"width": 600,
|
|
"height": 200,
|
|
"texture": "assets/map/platform/stone_texture.png"
|
|
}
|
|
],
|
|
|
|
"enemies": [
|
|
{
|
|
"id": "enemy1_01",
|
|
"type": "walker",
|
|
"x": 500,
|
|
"y": 700,
|
|
"health": 1,
|
|
"damage": 1,
|
|
"behavior": "patrol",
|
|
"patrol_points": [
|
|
{"x": 400, "y": 700},
|
|
{"x": 600, "y": 700}
|
|
],
|
|
"speed": 1.5,
|
|
"sprite_sheet": "assets/map/enemy/walker_enemy.png",
|
|
"size": [50,50]
|
|
},
|
|
{
|
|
"id": "enemy1_02",
|
|
"type": "flyer",
|
|
"x": 700,
|
|
"y": 400,
|
|
"health": 1,
|
|
"damage": 1,
|
|
"behavior": "chase",
|
|
"detection_radius": 200,
|
|
"speed": 2.0,
|
|
"sprite_sheet": "assets/map/enemy/flying_enemy.png",
|
|
"size": [50,50]
|
|
},
|
|
{
|
|
"id": "enemy2_01",
|
|
"type": "turret",
|
|
"x": 2000,
|
|
"y": 700,
|
|
"health": 1,
|
|
"damage": 1,
|
|
"behavior": "stationary",
|
|
"attack_interval": 2.0,
|
|
"attack_range": 300,
|
|
"sprite_sheet": "assets/map/enemy/turret.gif",
|
|
"size": [80,80]
|
|
},
|
|
{
|
|
"id": "enemy3_01",
|
|
"type": "walker",
|
|
"x": 3600,
|
|
"y": 1300,
|
|
"health": 1,
|
|
"damage": 1,
|
|
"behavior": "patrol",
|
|
"patrol_points": [
|
|
{"x": 3600, "y": 1300},
|
|
{"x": 3900, "y": 1300}
|
|
],
|
|
"speed": 1.5,
|
|
"sprite_sheet": "assets/map/enemy/walker_enemy.png",
|
|
"size": [50,50]
|
|
},
|
|
{
|
|
"id": "enemy3_02",
|
|
"type": "turret",
|
|
"x": 4000,
|
|
"y": 1150,
|
|
"health": 1,
|
|
"damage": 1,
|
|
"behavior": "stationary",
|
|
"attack_interval": 2.0,
|
|
"attack_range": 300,
|
|
"sprite_sheet": "assets/map/enemy/turret.gif",
|
|
"size": [80,80]
|
|
}
|
|
],
|
|
|
|
"collectibles": [
|
|
{
|
|
"id": "coin1",
|
|
"type": "coin",
|
|
"x": 600,
|
|
"y": 300,
|
|
"sprite": "assets/map/collectibles/Sanic_Coin.png"
|
|
}
|
|
],
|
|
|
|
"checkpoints": [
|
|
{
|
|
"id": "checkpoint1",
|
|
"x": 2200,
|
|
"y": 600,
|
|
"width": 50,
|
|
"height": 125,
|
|
"sprite": "assets/map/checkpoints/checkpoint.png"
|
|
}
|
|
],
|
|
|
|
"spawn_point": {
|
|
"x": 50,
|
|
"y": 650
|
|
},
|
|
|
|
"exits": [
|
|
{
|
|
"x": 5100,
|
|
"y": 1200,
|
|
"width": 50,
|
|
"height": 80,
|
|
"next_level": "Level 2",
|
|
"sprite": "assets/map/exit/Zeldo.png"
|
|
}
|
|
]
|
|
} |