Commit Graph

167 Commits

Author SHA1 Message Date
Evan 49ff20ce9a don't lose territory if surrounded at edge of map 2025-02-17 19:58:57 -08:00
NewHappyRabbit f44fd79568 Player can now disable emojis 2025-02-16 12:18:50 -08:00
Evan 0b9ab34b63 bugfix: events display reported alliance accepted even when it was actually rejected 2025-02-13 09:18:44 -08:00
Evan 421c6e7841 use tileref instead of MapPos for UnitUpdate 2025-02-12 16:22:02 -08:00
Evan 646806d132 remove old units in GameView to prevent memory leak 2025-02-12 12:35:10 -08:00
Evan 40966ca3b9 format all files with prettier 2025-02-12 08:28:15 -08:00
NewHappyRabbit 949f68287e Added flags 2025-02-11 23:34:19 +02:00
Evan 78dddaf610 pass attacks from worker thread to main thread 2025-02-11 10:32:32 -08:00
Evan 6f02bd250e refactor: have players store attacks 2025-02-11 10:16:08 -08:00
Evan 74f523a770 can only send MIRV to player owned land 2025-02-09 12:14:53 -08:00
Evan 79bbd4def7 GameView: filter out inactive units. 2025-02-09 09:44:37 -08:00
Evan 4f4b6adb80 add 5 second player immunity to prevent spawn kills 2025-02-08 19:34:16 -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 6abcddc140 create player panel 2025-02-05 20:35:21 -08:00
Evan b643a6357b implement mirv 2025-02-04 11:53:41 -08:00
Evan e750afcd65 has player.units filter by type 2025-02-03 12:54:06 -08:00
Evan bbf72bd14f simply start population calculation 2025-02-03 12:37:04 -08:00
Evan c109d23f9f combine battleship + destroyer => warship. 2025-02-02 14:31:30 -08:00
Evan af0d6a289a rename cansendlliance request fix ally self bug 2025-02-01 20:18:57 -08:00
Evan 4ee37323f9 format codebase with prettier 2025-02-01 12:05:11 -08:00
evanpelle 545fc3c28e fix center button attack 2025-02-01 12:05:11 -08:00
Evan ffb0b7c172 add player death & quotes when win or lose 2025-02-01 12:05:11 -08:00
Evan 5f5f8ddf64 move methods from GameRunner to PlayerImpl 2025-02-01 12:05:11 -08:00
Evan 7325cfc7e6 leaderboard shows percentage non-fallout tiles owned 2025-02-01 12:05:11 -08:00
Evan 7a2f4210ed update win condtion: 80% non fallout tiles 2025-02-01 12:05:11 -08:00
evanpelle d009ef925c use error update to show error modal 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 ae02056948 combine ExecutionView & Execution 2025-02-01 12:05:11 -08:00
evanpelle 8f8bf5c3d7 Combine AllianceRequest & MutableAllianceRequest 2025-02-01 12:05:11 -08:00
evanpelle 75fe718f16 Combine Unit & MutableUnit 2025-02-01 12:05:11 -08:00
evanpelle de1dbff570 combine Game & MutableGame 2025-02-01 12:05:11 -08:00
evanpelle 7d15c0c065 combine Player & MutablePlayer interfaces 2025-02-01 12:05:11 -08:00
evanpelle 4034d11015 split Player/Unit from its Views for better separation 2025-02-01 12:05:11 -08:00
Evan 67840026ff bugfix: gray out radial emoji option after sending emoji to all players 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 970845e28f thread_split: send outgoing emoji messages 2025-02-01 12:05:11 -08:00
evanpelle 05da562bba thread_split: implement target player icon 2025-02-01 12:05:11 -08:00
evanpelle 62a0642b4d thead_split: add is traitor, fix icon scaling issue 2025-02-01 12:05:11 -08:00
evanpelle ab183e4f59 show alliance icon 2025-02-01 12:05:11 -08:00
evanpelle 42490e2aef use renderTroops & renderNumber for playerinfo overlay 2025-02-01 12:05:11 -08:00
Evan e4f0d76733 made name rendering more efficient 2025-02-01 12:05:11 -08:00
Evan b91d9d4148 fix bugs from using tilerefs 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
evanpelle c42cc2a9b4 have Game delegate to GameMap for cleaner API 2025-02-01 12:05:11 -08:00
evanpelle a17ae48cd3 use TileRef instead of tile 2025-02-01 12:05:11 -08:00
evanpelle 2068e42982 use GameMap for storage in worker thread 2025-02-01 12:05:11 -08:00
evanpelle b22532d41f use TileRef instead of TerrainTile for astar 2025-02-01 12:05:11 -08:00
evanpelle 2a2f62436c have terrainmaploader return GameMap 2025-02-01 12:05:11 -08:00
evanpelle 0d764eb885 update gamemap, rename gamemap enum => gamemaptype 2025-02-01 12:05:11 -08:00