aboutsummaryrefslogtreecommitdiffstats
path: root/src/game/data.hpp
diff options
context:
space:
mode:
authorEmil A. Overbeck <emil.a.overbeck@gmail.com>2026-07-18 02:40:25 +0200
committerEmil A. Overbeck <emil.a.overbeck@gmail.com>2026-07-18 02:40:25 +0200
commit0807c89343480b15c7b63a0e864782179eb28ef5 (patch)
tree0da6e1a5600997faf240025fa3dcaaa223a87ae8 /src/game/data.hpp
parent0837872bed3d97d3433d7e0cbafffa7f271ebee1 (diff)
downloadforts_clone-0807c89343480b15c7b63a0e864782179eb28ef5.tar.gz
forts_clone-0807c89343480b15c7b63a0e864782179eb28ef5.zip
More Forts assets
Diffstat (limited to 'src/game/data.hpp')
-rw-r--r--src/game/data.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/game/data.hpp b/src/game/data.hpp
index 3a7f912..fdf9e08 100644
--- a/src/game/data.hpp
+++ b/src/game/data.hpp
@@ -24,8 +24,10 @@ struct WeaponDef {
float beam_dps; // HP damage per second to the struck strut
float beam_duration; // seconds the beam stays on
float energy_cost; // energy spent per shot (Forts EnergyFireCost)
- std::string texture; // turret/base sprite
- std::string projectile_texture; // shell sprite
+ std::string texture; // turret/base sprite (CC0 placeholder)
+ std::string projectile_texture; // shell sprite (CC0 placeholder)
+ std::string texture_forts; // preferred BYO Forts turret art
+ std::string projectile_texture_forts; // preferred BYO Forts shell art
};
// Loads the material table from <data_dir>/materials.lua, then applies every
@@ -57,7 +59,8 @@ struct DeviceDef {
bool is_core; // reactor: destroying it decides the game
float half_w, half_h;
float cost_metal, cost_energy; // build cost
- std::string texture;
+ std::string texture; // CC0 placeholder ("" = flat colour)
+ std::string texture_forts; // preferred BYO Forts art, else texture
float r, g, b; // fallback colour when no texture
};