ilan schemoul
264bfa0c2c
feat: rename embargo to start/stop trading
2025-03-06 01:04:25 +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
ilan schemoul
e2083b53df
feat: icon over player name to signal embargo
2025-03-02 18:34:22 +01:00
evanpelle
0a077ebf4d
Merge pull request #100 from d3n0x8/scrollAttackRatio
...
add shift + scroll command in HelpModal hotkeys table
2025-03-02 18:34:04 +01:00
NewHappyRabbit
c057f70c45
UI fixes
2025-03-02 09:29:10 -08:00
NewHappyRabbit
d29438ae69
Added hotkey 'C' to center camera on player
2025-03-02 09:29:10 -08:00
NewHappyRabbit
a21181c059
Added a button to focus the player that sent an alliance request. Increased bots name color brightness
2025-03-02 09:29:10 -08:00
Evan
e0938253df
send game hash to server each second
2025-03-02 09:29:10 -08:00
ilan schemoul
d6b29a655c
feat: left click now opens menu (to avoid misclicks), shift+left click is attack
...
It happens very frequently that I misclick (meant to click on neighbor,
mean to click modal, sensitive touchpad and many others) and ruin my
game (and another player's). So by default left click opens the menu. As
the attack button is in the middle you can just double click to attack.
You can also shift+click to attack.
I have updated the Help modal to document all that + the existing (just
discovered in the code) ctrl+click to open build menu.
2025-03-02 17:56:14 +01:00
evanpelle
0ac3a92742
Merge pull request #97 from ilan-schemoul/request-alliance-icon
...
feat: add icon when player request alliance
2025-03-01 21:45:00 -08:00
ilan schemoul
c2b90a52a3
feat: add icon when player request alliance
...
To spot who asked alliance on the map add an email icon next to them
2025-03-02 00:13:05 +01:00
Andreas Rey Malissein
1efc95001d
possibility to see the whole scoreboard or the top 5 only + show players troops in leaderboards
2025-03-01 02:29:05 +01:00
evanpelle
96243175ce
Merge pull request #80 from NewHappyRabbit/build-menu
...
Increased build buttons height
2025-02-24 13:26:21 -08:00
NewHappyRabbit
2ef0ca0c23
Increased build buttons height
2025-02-24 23:18:25 +02:00
NewHappyRabbit
ea2b67d601
Added 5 new emojis
2025-02-24 21:21:34 +02:00
evanpelle
d010577fad
Merge pull request #68 from seanlowe/main
...
allow closing the radial or build menu with the esc key
2025-02-22 19:13:30 -08:00
evanpelle
7be24b898a
Merge pull request #66 from NewHappyRabbit/leaderboard-padding
...
Leaderboards CSS fixes
2025-02-22 19:12:40 -08:00
Sean Lowe
13a0593689
allow closing the radial or build menu with the esc key
2025-02-21 14:56:19 -07:00
NewHappyRabbit
7138b694f9
Trimmed player names to avoid overflow and scrollbar
2025-02-21 15:32:33 +02:00
NewHappyRabbit
5f09d960af
Removed padding on mobile
2025-02-21 15:18:31 +02:00
NewHappyRabbit
0729c8d18a
Fix: Mobile users cant spawn
2025-02-21 14:38:13 +02:00
Evan
5898f0360c
floor renderNumber(), have buildmenu refresh on tick
2025-02-20 21:15:54 -08:00
Evan
5ab75e6389
add support link in win game modal
2025-02-20 19:02:03 -08:00
Evan
7c4d24034a
replace end quotes with ads
2025-02-20 14:22:00 -08:00
Evan
6734cbc832
show player type in player info overlay
2025-02-20 13:38:35 -08:00
Evan
f8c5d29b36
bugfix: show updated cost when building a unit while another unit of same type is under construction
2025-02-20 10:45:58 -08:00
evanpelle
aa76c28bb1
Merge pull request #60 from NewHappyRabbit/mobile-leaderboard
...
Changed the text of the close button to 'Hide' instead of 'X' to keep it consistent across other UI elements
2025-02-20 10:03:46 -08:00
evanpelle
92c3011c3a
Merge pull request #59 from NewHappyRabbit/events-revamped
...
Added css to keep the container scrolled to the bottom
2025-02-20 10:03:29 -08:00
evanpelle
0e8ab17710
Merge pull request #58 from NewHappyRabbit/namelayer-improvements
...
Moved flags to the left of the username. Icons above the username. Target icon and emojis still center.
2025-02-20 10:03:11 -08:00
evanpelle
49b4e24b45
Merge pull request #55 from NewHappyRabbit/terrain-toggle
...
Added a toggle for the Alternate View in the ingame options menu
2025-02-20 10:01:13 -08:00
NewHappyRabbit
9f1106b9b9
Changed the text of the close button to 'Hide' instead of 'X' to keep it consistent across other UI elements
2025-02-20 19:45:10 +02:00