Make stages data-driven
This commit is contained in:
@@ -14,6 +14,9 @@
|
||||
ground_max_horizontal_velocity: "3.0",
|
||||
ground_friction_over_walk_speed_multiplier: "2.0"
|
||||
),
|
||||
stage_manifest_paths: [
|
||||
"stages/test.stage.ron"
|
||||
],
|
||||
fighter_manifest_paths: [
|
||||
"fighters/test/test.fighter.ron"
|
||||
]
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
(
|
||||
id: TestStage,
|
||||
model_path: "stages/battlefield.glb#Scene0",
|
||||
polygons: [
|
||||
(
|
||||
poly_type: Platform,
|
||||
lines: [
|
||||
(
|
||||
(x: "-59.5", y: "23.45"),
|
||||
Floor
|
||||
),
|
||||
(
|
||||
(x: "-28.0", y: "23.45"),
|
||||
Floor
|
||||
)
|
||||
]
|
||||
),
|
||||
(
|
||||
poly_type: Platform,
|
||||
lines: [
|
||||
(
|
||||
(x: "28.0", y: "23.45"),
|
||||
Floor
|
||||
),
|
||||
(
|
||||
(x: "59.5", y: "23.45"),
|
||||
Floor
|
||||
)
|
||||
]
|
||||
),
|
||||
(
|
||||
poly_type: Closed,
|
||||
lines: [
|
||||
(
|
||||
(x: "-56", y: "-200.0"),
|
||||
Wall
|
||||
),
|
||||
(
|
||||
(x: "-56.0", y: "-3.5"),
|
||||
Floor,
|
||||
),
|
||||
(
|
||||
(x: "-39.2", y: "0.0"),
|
||||
Floor,
|
||||
),
|
||||
(
|
||||
(x: "0.0", y: "0.0"),
|
||||
Floor
|
||||
),
|
||||
(
|
||||
(x: "39.2", y: "0.0"),
|
||||
Floor
|
||||
),
|
||||
(
|
||||
(x: "56.0", y: "-3.5"),
|
||||
Wall
|
||||
),
|
||||
(
|
||||
(x: "56", y: "-200.0"),
|
||||
Wall
|
||||
),
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user