Commit Graph

443 Commits

Author SHA1 Message Date
Readixyee 84951fed9f Sam anti nuke missile launcher (#176)
now with better name

---------

Co-authored-by: evanpelle <evanpelle@gmail.com>
2025-03-09 13:25:51 -07:00
evanpelle c99cec8f0b add South America map (#184) 2025-03-08 12:11:34 -08:00
Maeght Loan e1ed8dbe36 Boat attack event (#177)
Allow user to focus on outgoing boats

Partial #133 


https://github.com/user-attachments/assets/0e287bf5-71bb-4def-a3ca-f0b652ed6d69
2025-03-08 10:44:27 -08:00
Ilan Schemoul afe4f85919 fix: warship icon (#178) 2025-03-08 10:27:16 -08:00
ilan schemoul 1b76c46bc5 feat: remove LocalPersistantStats so we locally save GameRecords
GameRecords also now include PlayerStats
2025-03-08 17:39:41 +01:00
Evan 25224ed749 null check on warship target unit 2025-03-07 10:25:31 -08:00
BeGj 619891741f linting 2025-03-07 16:53:10 +00:00
koffielyder a62b37313f refactor 2025-03-07 15:57:10 +01:00
koffielyder e4cea653c6 Added focusID to event to focus on player on click 2025-03-07 15:34:24 +01:00
evanpelle d0359a2db4 Merge pull request #149 from UnBuiltTree/icon-remake
Icon Remake
2025-03-06 18:49:19 -08:00
UnBuiltTree 919e6ff9a4 Icon adjustments 3 2025-03-06 20:01:29 -06:00
evanpelle 191a12a40d Merge pull request #155 from Readixyee/game-starting-modal
showing modal when the game is loading
2025-03-06 16:06:15 -08:00
evanpelle aa19600a03 Merge pull request #161 from ilan-schemoul/focus-atk
focus atk
2025-03-06 15:58:03 -08:00
evanpelle aa96e98fb3 Merge pull request #160 from ilan-schemoul/fix-troo
fix: troop ratio different UI and code
2025-03-06 15:57:30 -08:00
evanpelle 974d606923 Merge pull request #159 from ilan-schemoul/save-stats
feat: save stats to local storage
2025-03-06 15:57:00 -08:00
Evan 4c8eeb0cc1 merge branch v0.17.3 2025-03-06 15:46:57 -08:00
ilan schemoul 7670b77b6c feat: button to focus on attacker when under attack 2025-03-07 00:38:53 +01:00
ilan schemoul f989470cf4 fix: troop ratio different UI and code 2025-03-07 00:18:11 +01:00
Readixyee cfc9676acb location change 2025-03-06 18:24:36 +01:00
evanpelle 447e6238d8 Merge pull request #148 from ilan-schemoul/main
default 95% soldiers
2025-03-06 09:03:44 -08:00
evanpelle ef52af0dda Merge pull request #147 from ilan-schemoul/stop-trading-txt
feat: rename embargo to start/stop trading
2025-03-06 09:03:13 -08:00
Readixyee 48ae8cad33 showing modal when the game is loading 2025-03-06 17:34:12 +01:00
UnBuiltTree 7b93bc8038 Fort Icon Alt2 2025-03-06 08:30:01 -06:00
UnBuiltTree aa85da97d3 Icon Adjustments 2025-03-06 08:19:36 -06:00
UnBuiltTree 89326baa37 Updated StructureLayer and GameMap for Remake of Icons, added extra building png icons resources. 2025-03-05 21:29:19 -06:00
ilan schemoul bd8f72421e default 95% soldiers 2025-03-06 01:22:00 +01:00
ilan schemoul 264bfa0c2c feat: rename embargo to start/stop trading 2025-03-06 01:04:25 +01:00
ilan schemoul 398d354702 feat: save stats to local storage
Victory lose, player stats, lobby config are stored to local storage
(for later use)
2025-03-06 01:00:19 +01:00
evanpelle 7d79c299f4 Merge pull request #143 from ilan-schemoul/warship-target
feat: WarShips red color outside if target current player
2025-03-04 15:53:47 -08:00
ilan schemoul d2208755c4 feat: WarShips red color outside if target current player
Hard to know when warship captures your trade so if they target one of
your trade or war ship they are highlighted in red.
Known limitation: doesn't work well if the WarShip is already in red
(player's color)
2025-03-05 00:45:35 +01:00
evanpelle 87d5172adb Merge pull request #139 from BeGj/fix/click-outside-map-for-findWarshipsNearCell
handle findWarshipsNearCell (unhandled exception) when clicking outside the map
2025-03-04 06:33:37 -08:00
BeGj 2685891e7a checks if valid coord before referencing the tile. 2025-03-04 14:30:31 +00:00
BeGj abf79f4c8d console.debug is unecessary, code comment instead. 2025-03-04 12:25:01 +00:00
BeGj de07fd0b4f removed isValidCoord in onMouseUp 2025-03-04 12:24:35 +00:00
BeGj 276eee1152 validates coordinates in onMouseUp 2025-03-04 12:12:20 +00:00
BeGj a60bef97f0 reverted organized imports 2025-03-04 12:06:42 +00:00
BeGj fe9eb8700c handle findWarshipsNearCell when clicking outside the map 2025-03-04 12:03:30 +00:00
ilan schemoul 9a1f916f4d feat: cancel attack
Canceling attack takes time and incurs a malus (loose some troops).
Also prettier fixed a file HostLobbyModal.
2025-03-03 22:06:35 +01:00
evanpelle af802c4ad0 Merge pull request #102 from BrunoJurkovic/warship-selection
Warship Selection System
2025-03-02 20:11:11 -08:00
Bruno Jurković f84a18aa95 prevent selecting other players' warships 2025-03-02 23:31:25 +01:00
Bruno Jurković 3d4ea515de refactor: move selection rendering to dedicated UILayer 2025-03-02 23:31:19 +01:00
Bruno Jurković 1d7b03dde7 Reusable clearSelectionBox method, modified terrain redraw 2025-03-02 23:30:50 +01:00
Bruno Jurković c3dfcc63a5 Added warship selection mechanic 2025-03-02 23:30:47 +01:00
ilan schemoul 0372abe548 fix: crash if trying to view game without being a player 2025-03-02 22:52:42 +01:00
evanpelle db3f62d0b1 Merge pull request #88 from ilan-schemoul/click
Left click now open menu (double click or shift+click to attack)
2025-03-02 13:38:09 -08:00
ilan schemoul fc7b08402f feat: stats system to see number of nukes sent by a player in PlayerPanel 2025-03-02 21:41:00 +01:00
evanpelle 38b762b8bc Merge pull request #95 from ilan-schemoul/embargoes
feat: everyone trade with everyone, anyone can embargo a player to stop trade
2025-03-02 10:58:05 -08:00
Evan 77fa605c0c update it to win modal ad 2025-03-02 09:39:54 -08:00
Evan 0d5dcf1313 don't use shadow dom on winmodal which prevents ads from displaying 2025-03-02 09:39:54 -08:00
NewHappyRabbit 9b85651ad8 Fixed dark mode class being added in different places (body and html elements).
Fixed flag "None" (xx.svg) being able to be set and used ingame.

All menu modals will now close if you click outside of them.

Fixed info icon in instructions.

Added an icon to show the number of new events that happened while the events panel is hidden.

Removed opacity from the svg icons files and added it to the player-icons div, making them have the same opacity and being more visible.
2025-03-02 09:39:36 -08:00