aboutsummaryrefslogtreecommitdiffstats
path: root/data/map.lua
diff options
context:
space:
mode:
authorVaino Kauppila <vaino@vke.fi>2026-07-02 22:58:25 +0300
committerVaino Kauppila <vaino@vke.fi>2026-07-02 23:47:07 +0300
commitcd0c08dc7ce754473178ad3f32f7740a1dddc1eb (patch)
tree589c676b41d6f3d322ea5ce339ddb0811f29ec31 /data/map.lua
downloadforts_clone-cd0c08dc7ce754473178ad3f32f7740a1dddc1eb.tar.gz
forts_clone-cd0c08dc7ce754473178ad3f32f7740a1dddc1eb.zip
Initial import: LibreForts (M0-M5 in progress)
Open-source Forts clone: custom C++20 engine + data-driven (Lua) 2D physics artillery RTS. - Building: node/strut graph on a stiff mass-spring solver (canon Forts model), triangulation rigidity, axial + 30-degree angle-stress breaking, cascading collapse, fire (DoT + spread), ground destroys debris. - Weapons (M4): cannon (ballistic) + laser (beam/ignite) with select-and-aim-in- arc UX; splash / beam damage; bg-brace passthrough. - Devices + economy (M5): reactors + win/loss + restart, mines/turbines/battery, metal deposits, storage caps, per-shot energy cost. - Data-driven via Lua/sol2 with a layered mod loader; enemy-fort scenario mod. - Renderer: SDL3 + textures + ImGui dev UI. stb_image + ImGui vendored. - Assets: CC0 placeholders only; real game art loaded at runtime from the user's own install via forts: paths (bring-your-own; nothing copyrighted committed). See README.md / CLAUDE.md and research/ + requirements/ for detail.
Diffstat (limited to 'data/map.lua')
-rw-r--r--data/map.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/data/map.lua b/data/map.lua
new file mode 100644
index 0000000..13f9c94
--- /dev/null
+++ b/data/map.lua
@@ -0,0 +1,13 @@
+-- Base scenario map: metal deposits and pre-placed devices. Mods append (the
+-- enemy-fort mod adds the enemy reactor). Coordinates are world units; y ~ 1 is
+-- the ground surface.
+Deposits = Deposits or {}
+MapDevices = MapDevices or {}
+
+-- Metal deposits (mines must sit on these). Player side (left) + enemy side (right).
+for _, x in ipairs({ -24, -11, 23, 31 }) do
+ table.insert(Deposits, { x, 1.0 })
+end
+
+-- Player reactor on the left.
+table.insert(MapDevices, { type = "reactor", x = -22, y = 2.0, team = 0 })