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.
This commit is contained in:
ilan schemoul
2025-02-27 22:45:33 +01:00
parent bcf8ccac92
commit d6b29a655c
4 changed files with 42 additions and 8 deletions
+10 -2
View File
@@ -222,7 +222,15 @@ export class HelpModal extends LitElement {
<tbody class="text-left">
<tr>
<td>Space</td>
<td>Alternate view</td>
<td>Alternate view (terrain/countries)</td>
</tr>
<tr>
<td>Shift + left click</td>
<td>Attack (when left click is set to open menu)</td>
</tr>
<tr>
<td>Ctrl + left click</td>
<td>Open build menu</td>
</tr>
<tr>
<td>Q / E</td>
@@ -292,7 +300,7 @@ export class HelpModal extends LitElement {
<li class="mb-4">Pause/Unpause the game - Only available in single player mode.</li>
<li class="mb-4">Timer - Time passed since the start of the game.</li>
<li class="mb-4">Exit button.</li>
<li class="mb-4">Settings - Open the settings menu. Inside you can toggle the Alternate View, Dark Mode, and Emojis.</li>
<li class="mb-4">Settings - Open the settings menu. Inside you can toggle the Alternate View, Dark Mode, Emojis and action on left click.</li>
</ul>
</div>
</div>