Commit Graph

27 Commits

Author SHA1 Message Date
Evan d726fd66b5 store values as bigints to prevent floating point drift 2025-03-02 09:39:51 -08:00
Evan e0938253df send game hash to server each second 2025-03-02 09:29:10 -08:00
ilan schemoul 40b9613f67 feat: 60% health for units when they spawn so 2 warships vs 1 always win 2025-02-28 19:23:50 +01:00
Evan 421c6e7841 use tileref instead of MapPos for UnitUpdate 2025-02-12 16:22:02 -08:00
Evan 40966ca3b9 format all files with prettier 2025-02-12 08:28:15 -08:00
Evan 1594a45dac have buildings take time to construct 2025-02-08 13:53:58 -08:00
Evan 0487509c03 reimplement defense posts 2025-02-08 09:56:07 -08:00
Evan c109d23f9f combine battleship + destroyer => warship. 2025-02-02 14:31:30 -08:00
Evan 4ee37323f9 format codebase with prettier 2025-02-01 12:05:11 -08:00
evanpelle 4bbb63fd48 move Game updates to GameUpdate.ts 2025-02-01 12:05:11 -08:00
evanpelle 75fe718f16 Combine Unit & MutableUnit 2025-02-01 12:05:11 -08:00
evanpelle ad06b14388 thread_split: have structure layer draw updated structures 2025-02-01 12:05:11 -08:00
Evan f0f5bae79f thread_split: convert all tile to tileref 2025-02-01 12:05:11 -08:00
Evan 8c947a9fbf use updates for serializing game updates 2025-02-01 12:05:11 -08:00
evanpelle 162b6dc349 in progress 2025-02-01 12:05:11 -08:00
Evan 7d04d25e6f thread_split: get units working 2025-02-01 12:05:11 -08:00
Evan 8616e9bfcb game runs in seperate thread 2025-02-01 12:05:11 -08:00
Evan f988d555bb update views 2025-02-01 12:05:11 -08:00
Evan 10d70d3327 fix nuke bug, make spawn phase longer, show trade ships in overview 2024-12-22 20:27:49 -08:00
Evan 5307285d8b give Battleships & Destroyers health, make shells more frequent & larger 2024-12-20 20:31:41 -08:00
evanpelle c13bb1eef9 don't display unit deleted message when tranpsort ship lands 2024-12-11 16:49:23 -08:00
evanpelle f34a8dca13 alert when unit is destroyed 2024-12-10 20:28:39 -08:00
Evan a0a40262a6 render trade ship when stopped, hash units 2024-12-03 19:47:27 -08:00
Evan 5d4befb117 Created mini map for a star search 2024-11-29 20:35:08 -08:00
evanpelle 108fad8096 create territoryBound, have player execution check units for capture
fix bug where PortExecution tries to get random element from empty list and crashes
2024-11-17 19:56:54 -08:00
evanpelle d3d0651659 can capture and destroy ports 2024-11-15 20:43:15 -08:00
Evan 6a1a09c335 Create Unit class 2024-11-15 20:43:15 -08:00