Commit Graph

585 Commits

Author SHA1 Message Date
Evan 0a482e2e6e infinity checks on bigint 2025-03-03 19:21:39 -08:00
Evan c1383d76f1 allow boating on lakes 2025-03-03 19:19:16 -08:00
Evan 399cf4aab0 optimize trade ships 2025-03-03 14:37:24 -08:00
evanpelle b43bfa1194 Merge pull request #118 from ilan-schemoul/fix-comment-nuke
refactor: remove comment outdated
2025-03-02 20:03:23 -08:00
evanpelle ef50ceffbc Merge pull request #119 from BrunoJurkovic/show-attack-boats-in-chat
Naval attack message added
2025-03-02 20:03:08 -08:00
Bruno Jurković b488bcea68 naval invasion alert added 2025-03-02 22:45:00 +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 e45c4b5ba4 refactor: remove comment outdated 2025-03-02 22:30:38 +01: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 5e09c0db47 fix build errors from cherry-pick 2025-03-02 09:51:25 -08:00
Evan bad74a0488 schedule game duration based on time of day 2025-03-02 09:39:54 -08:00
Evan d726fd66b5 store values as bigints to prevent floating point drift 2025-03-02 09:39:51 -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
Evan fb332bc827 make games every 30s 2025-03-02 09:39:36 -08:00
Evan 6ce412f51b update num workers to 2 2025-03-02 09:39:36 -08:00
Evan a029b4277f use node cluster to shard server 2025-03-02 09:39:09 -08: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
Evan ff33c2db50 have server check hashes, crash game if out of sync 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
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
ilan schemoul 40b9613f67 feat: 60% health for units when they spawn so 2 warships vs 1 always win 2025-02-28 19:23:50 +01:00
NewHappyRabbit 02d5060352 Customizable creative mode 2025-02-24 23:06:50 +02:00
Evan 7c0564377b bugfix: make port 125k 2025-02-24 06:38:26 -08:00
Evan e2185b6222 make ports cheaper to encourage more trades, reduce large territory attack bonus to prevent snowballing 2025-02-23 20:40:53 -08:00
Evan 33c634f928 allow ü in schema 2025-02-20 19:16:31 -08:00
Evan 74f56d8fac allow ü 2025-02-20 19:10:40 -08:00
Evan ee56d68748 get eaten if surrounded by same player while on lake 2025-02-20 15:14:29 -08:00
evanpelle 012b04606f Merge pull request #61 from NewHappyRabbit/maps
Added Mars. Excluded from public lobby playlist. Changed Africa image…
2025-02-20 13:30:17 -08:00
Evan f23f84e693 reduce tolerance for pathfinding to make shells hit target better. 2025-02-20 11:53:11 -08:00
Evan 82667b413d warships prioritize other warships, always recalcs target 2025-02-20 11:41:25 -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
NewHappyRabbit 1dfc0aef39 Added Mars. Excluded from public lobby playlist. Changed Africa image background to transparent. 2025-02-20 20:42:17 +02:00
SunnyBoyWTF e523b3eda3 Update TerrainMapFileLoader.ts 2025-02-20 08:45:54 -05:00
SunnyBoyWTF 2f48c0cb6b Update Game.ts 2025-02-20 08:44:31 -05:00
Evan 6e76503d5d alert when nuke inbound 2025-02-19 19:45:10 -08:00
evanpelle ef5ab06f40 Merge pull request #53 from NewHappyRabbit/darkmode
Made the water color around islands to be lighter instead of darker
2025-02-19 18:36:17 -08:00
NewHappyRabbit 0e2893450b Made the water color around islands to be lighter instead of darker 2025-02-20 03:12:12 +02:00
evanpelle 6e517b5b8b Merge pull request #50 from NewHappyRabbit/darkmode
Added dark mode
2025-02-19 16:29:00 -08:00
NewHappyRabbit a2fa30cee2 Applied comments 2025-02-20 01:46:00 +02:00
NewHappyRabbit e9eb006cea Added dark mode 2025-02-20 00:48:45 +02:00
SunnyBoyWTF e12b6b4a27 Merge branch 'main' into main 2025-02-19 10:29:25 -05:00
Evan c4aaa619af have nukes cause more damage 2025-02-18 19:59:06 -08:00
Evan e3896127d5 bugfix: full sending with boat makes you lose troops 2025-02-18 18:55:26 -08:00
Evan f894276ef0 fix execution validation, verify that clientID own playerID to prevent spoofing 2025-02-18 17:13:08 -08:00
Evan 5e6f8f5d91 validate all intent input 2025-02-18 16:26:49 -08:00
Evan 876fb8dbf9 validate persistent id to prevent player spoofing 2025-02-18 13:53:28 -08:00