Commit Graph

28 Commits

Author SHA1 Message Date
evanpelle de98686ed4 allow names to go on top of radiation (#1840)
## Description:

I noticed after MIRVs, player names would be very small, or even not
shown, because the MIRV would litter the player territory with
radiation. This PR allows the name to go over irradiated land. It
occasionally led to strange name placement, like if a small nation was
h-bombed, then half the name could end up on the radiation, but it was
still clear who the nation was. Overall it feels like an improvement.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-08-16 18:23:29 -07:00
Evan 8b6895d745 add prettier import plugin 2025-03-31 13:09:27 -07: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 7d15c0c065 combine Player & MutablePlayer interfaces 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 a17ae48cd3 use TileRef instead of tile 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 10a1f1af8e thread_split: enable spawn highlight 2025-02-01 12:05:11 -08:00
Evan 9a95fbe89e get attacks working, adjust name placement scaling factor 2025-02-01 12:05:11 -08:00
Evan d5e6667b1f render player info 2025-02-01 12:05:11 -08:00
Evan 37522b6467 have GameRunner calculate Name location 2025-02-01 12:05:11 -08:00
Evan 3e8517363f use GameView in renderers 2025-02-01 12:05:11 -08:00
Evan dab427d614 put methods onto terraintile 2025-02-01 12:05:11 -08:00
Mittani aa01ea7694 + add random bot names 2024-12-31 13:05:22 -08:00
Evan bb968ec6b6 always recalc name, NPCs spawn warships less frequently 2024-12-27 10:59:41 -08:00
evanpelle f3307300ef refactored GameImpl into multiple files 2024-09-17 19:49:16 -07:00
evanpelle a7ad8790aa fakehumans send boats, improved map 2024-09-08 20:21:39 -07:00
evanpelle 5bc7d6e023 better name rendering, game attack balancing 2024-09-06 20:43:14 -07:00
evanpelle d4a3774060 make names bigger, see farther out 2024-09-03 19:28:09 -07:00
evanpelle f01949f007 lose disconnected territory 2024-08-30 19:41:40 -07:00
evanpelle 480cfba8e0 can change name after joining game 2024-08-26 15:03:50 -07:00
evanpelle 41d7c77d2d tiles now have lake or ocean method 2024-08-23 17:53:55 -07:00
evanpelle 5e7c206f0d improved terrain api 2024-08-21 19:51:01 -07:00
evanpelle 7d48dd1cba improved algorithm for calculating player name location 2024-08-19 13:07:15 -07:00