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
Andreas Rey Malissein
b992166488
choose attack ratio with shift + scrolling down or up
2025-03-02 02:33:35 +01:00
evanpelle
b711ea4975
Merge pull request #71 from NewHappyRabbit/fix-1/2-hotkeys
...
Added preventDefault to 1/2 hotkeys
2025-02-22 19:16:20 -08:00
NewHappyRabbit
c47fe8cc5e
Added event.preventDefault() to hotkeys 1/2
2025-02-22 04:13:29 +02:00
Sean Lowe
13a0593689
allow closing the radial or build menu with the esc key
2025-02-21 14:56:19 -07:00
NewHappyRabbit
7ae4f17a35
Decrease power by 10% with hotkey '1', increase by 10% with hotkey '2'
2025-02-20 03:46:43 +02:00
NewHappyRabbit
0769710caa
Fixed mouse move bug, where if your cursor is over and UI element it doesn't fire the mouseUp event
2025-02-19 10:45:04 +02:00
Evan
d9f2b683d7
add eq for zoom, chagne meta give more bonus large players, don't throw exception when attack self
2025-02-15 14:31:18 -08:00
Evan
40966ca3b9
format all files with prettier
2025-02-12 08:28:15 -08:00
Evan
c3a5e58be6
add zoom and pan keyboard shortcuts
2025-02-11 18:01:26 -08:00
Evan
4ee37323f9
format codebase with prettier
2025-02-01 12:05:11 -08:00
Evan
4266bd8a59
mobile UI: show playerInfo when radial menu activated
2025-02-01 12:05:11 -08:00
evanpelle
2771d3d432
ctrl + click brings up build menu
2024-12-25 18:45:26 -08:00
evanpelle
dbf288d2c4
hide build menu when click on map on mobile
2024-12-25 17:38:49 -08:00
evanpelle
fbdf26cff8
alt-r to redraw graphics
2024-12-25 17:07:11 -08:00
Evan
17d75324f8
hit space bar for alternate view
2024-12-20 20:31:24 -08:00
Evan
8f3f9ee84a
add name of player under cursor in top right
2024-11-30 19:13:20 -08:00
evanpelle
4059b53904
fix but where touch input breaks on mobile (I think)
2024-10-08 19:43:15 -07:00
evanpelle
10e3361966
add donate icon
2024-10-06 19:19:21 -07:00
evanpelle
851e12613a
create basic radial menu
2024-09-26 16:24:58 -07:00
evanpelle
df99457867
fix left click lost after right click bug
2024-09-20 19:50:35 -07:00
evanpelle
c47aa9b949
input handler only checks canvas updates (prevents accidental attacks when clicking a button.)
2024-09-20 13:19:43 -07:00
evanpelle
f3307300ef
refactored GameImpl into multiple files
2024-09-17 19:49:16 -07:00
evanpelle
7c5ebaf456
created right click handler, refacter renderers
2024-09-16 17:09:01 -07:00
evanpelle
2f626bcc39
mobile friendly
2024-09-16 09:42:23 -07:00
evanpelle
05f55c490f
First Commit
2024-08-04 19:51:23 -07:00