mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 14:50:44 +00:00
add Oceania and North America maps
This commit is contained in:
@@ -1,243 +1,253 @@
|
||||
* fix conquer expansion DONE
|
||||
* perf improvements on graphics (only draw images to canvas on ticks) DONE
|
||||
* double join lobby bug DONE
|
||||
* render player info efficiently DONE 8/11/2024
|
||||
* better troop addition logic DONE 8/11/2024
|
||||
* better expansion, add back directed expansion DONE 8/11/2024
|
||||
* use pastel theme for territories DONE 8/11/2024
|
||||
* cache border in AttackExecution for perf DONE 8/11/2024
|
||||
* harder to expand on other players (defense) DONE 8/12/2024
|
||||
* lose troops when attacked DONE 8/12/2024
|
||||
* slower to attack stronger players DONE 8/12/2024
|
||||
* move all attack related config to Settings DONE 8/12/2024
|
||||
* fix boat bugs DONE 8/12/2024
|
||||
* add username in front page DONE 8/12/2024
|
||||
* improve front page DONE 8/12/2024
|
||||
* attacks cancel out DONE 8/13/2024
|
||||
* upload and start server DONE 8/13/2024
|
||||
* fix multiplayer DONE 8/14/2024
|
||||
* fix server resource leak DONE 8/14/2024
|
||||
* fix bug where game stops after 10s (websocket disconnection) DONE 8/16/2024
|
||||
* balance attacks/expansions better DONE 8/16/2024
|
||||
* delete players when territories too small DONE 8/16/2024
|
||||
* double attack add troops DONE 8/16/2024
|
||||
* Have some time for spawning before game starts DONE 8/16/2024
|
||||
* fix desync DONE 8/16/2024
|
||||
* fix server memory leak DONE 8/16/2024
|
||||
* only send delta turns on connect/reconnect DONE 8/17/2024
|
||||
* Create separate game config dev vs prod DONE 8/17/2024
|
||||
* improve front page, only one game at a time every 30s DONE 8/17/2024
|
||||
* create dev server DONE 8/18/2024
|
||||
* BUG: boats freeze game on path calculation DONE 8/18/2024
|
||||
* use analyitics DONE 8/18/2024
|
||||
* Use Overpass font DONE 8/18/2024
|
||||
* BUG: invert zoom DONE 8/19/2024
|
||||
* better algorithm for name render placement DONE 8/19/2024
|
||||
* show how many players in each lobby DONE 8/19/2024
|
||||
* make boats larger DONE 8/19/2024
|
||||
* boats same color as owner DONE 8/19/2024
|
||||
* make coasts look better DONE 8/22/2024
|
||||
* only put imageDataOnce, draw territories on top DONE 8/23/2024
|
||||
* have boats not get close too shore DONE 8/23/2024
|
||||
* improve terrain colors DONE 8/23/2024
|
||||
* BUG: boat doesn't work if on lake if other player not on same lake DONE 8/23/2024
|
||||
* Allow boats to attack TerraNullius DONE 8/23/2024
|
||||
* render player info efficiently DONE 8/11/2023
|
||||
* better troop addition logic DONE 8/11/2023
|
||||
* better expansion, add back directed expansion DONE 8/11/2023
|
||||
* use pastel theme for territories DONE 8/11/2023
|
||||
* cache border in AttackExecution for perf DONE 8/11/2023
|
||||
* harder to expand on other players (defense) DONE 8/12/2023
|
||||
* lose troops when attacked DONE 8/12/2023
|
||||
* slower to attack stronger players DONE 8/12/2023
|
||||
* move all attack related config to Settings DONE 8/12/2023
|
||||
* fix boat bugs DONE 8/12/2023
|
||||
* add username in front page DONE 8/12/2023
|
||||
* improve front page DONE 8/12/2023
|
||||
* attacks cancel out DONE 8/13/2023
|
||||
* upload and start server DONE 8/13/2023
|
||||
* fix multiplayer DONE 8/14/2023
|
||||
* fix server resource leak DONE 8/14/2023
|
||||
* fix bug where game stops after 10s (websocket disconnection) DONE 8/16/2023
|
||||
* balance attacks/expansions better DONE 8/16/2023
|
||||
* delete players when territories too small DONE 8/16/2023
|
||||
* double attack add troops DONE 8/16/2023
|
||||
* Have some time for spawning before game starts DONE 8/16/2023
|
||||
* fix desync DONE 8/16/2023
|
||||
* fix server memory leak DONE 8/16/2023
|
||||
* only send delta turns on connect/reconnect DONE 8/17/2023
|
||||
* Create separate game config dev vs prod DONE 8/17/2023
|
||||
* improve front page, only one game at a time every 30s DONE 8/17/2023
|
||||
* create dev server DONE 8/18/2023
|
||||
* BUG: boats freeze game on path calculation DONE 8/18/2023
|
||||
* use analyitics DONE 8/18/2023
|
||||
* Use Overpass font DONE 8/18/2023
|
||||
* BUG: invert zoom DONE 8/19/2023
|
||||
* better algorithm for name render placement DONE 8/19/2023
|
||||
* show how many players in each lobby DONE 8/19/2023
|
||||
* make boats larger DONE 8/19/2023
|
||||
* boats same color as owner DONE 8/19/2023
|
||||
* make coasts look better DONE 8/22/2023
|
||||
* only put imageDataOnce, draw territories on top DONE 8/23/2023
|
||||
* have boats not get close too shore DONE 8/23/2023
|
||||
* improve terrain colors DONE 8/23/2023
|
||||
* BUG: boat doesn't work if on lake if other player not on same lake DONE 8/23/2023
|
||||
* Allow boats to attack TerraNullius DONE 8/23/2023
|
||||
* try vintage theme DONE 8/24/2023
|
||||
* BUG: fix hotreload (priority queue breaks it) DONE 8/24/2024
|
||||
* improve menu (keep highlighted when click, allow deselect lobby) DONE 8/25/2024
|
||||
* give time to (re) spawn at start of game DONE 8/25/2024
|
||||
* show bar for long to respawn DONE 8/26/2024
|
||||
* store & delay tile updates for lag compensation DONE 8/26/2024
|
||||
* BUG: error if don't spawn and then click after spawn mode DONE 8/26/2024
|
||||
* BUG: change player name after join lobby DONE 8/26/2024
|
||||
* REFACTOR: use new priority queue DONE 8/27/2024
|
||||
* BUG: players attack each other same time creates islands DONE 8/28/2024
|
||||
* make bot spawn better DONE 8/28/2024
|
||||
* make UX for attacking TerraNullius by boat better DONE 8/29/2024
|
||||
* make bot territory less funky (more likely attack neighbors with larger border) DONE 8/29/2024
|
||||
* REFACTOR: remove player config DONE 8/29/2024
|
||||
* give boats limit for how far they can go DONE 8/29/2024
|
||||
* boats can go around the world DONE 8/29/2024
|
||||
* max boats (3) DONE 8/30/2024
|
||||
* PERF: more efficient spawns DONE 8/30/2024
|
||||
* PERF: load terrain map async DONE 8/30/2024
|
||||
* if completely surrended, lose piece of land DONE 8/30/2024
|
||||
* Add terrain elevation to map DONE 8/30/2024
|
||||
* Make territory translucent DONE 8/31/2024
|
||||
* Have terrain affect attack DONE 8/31/2024
|
||||
* PERF: enable CDN DONE 8/31/2024
|
||||
* enable load balancing metrics DONE 8/31/2024
|
||||
* BUG: island don't check if inscribed, just try to remove it DONE 8/31/2024
|
||||
* if completely surrounded by same enemy, lose island DONE 8/31/2024
|
||||
* BUG: fix boat leaves trail DONE 9/1/2024
|
||||
* end game when no players left (or after 1 hour or so?) DONE 9/1/2024
|
||||
* add structured logging DONE 9/1/2024
|
||||
* improve background image DONE 9/1/2024
|
||||
* make attack execution stream tiles to pq DONE 9/1/2024
|
||||
* center map on game start DONE 9/1/2024
|
||||
* use better favicon DONE 9/1/2024
|
||||
* make mediterranion ocean, fix panama canal DONE 9/1/2024
|
||||
* remove tiny islands DONE 9/1/2024
|
||||
* Create exit to menu button DONE 9/2/2024
|
||||
* show next game in menu DONE 9/2/2024
|
||||
* BUG: attacks starts slow but gets faster DONE 9/2/2024
|
||||
* BUG: can't join game if click with 1s before start DONE 9/2/2024
|
||||
* boat not going around world dist vs distwrapped DONE 9/2/2024
|
||||
* test & deploy game DONE 9/2/2024
|
||||
* put number of troops ui DONE 9/3/2024
|
||||
* names don't appear when zoomed out DONE 9/3/2024
|
||||
* make names bigger DONE 9/3/2024
|
||||
* boats leave trails DONE 9/3/2024
|
||||
* send boat even if touching DONE 9/4/2024
|
||||
* when attacking by boat, attack execution only starts from boat pixel DONE 9/4/2024
|
||||
* Make three terrain types: Plains, highlands, mountains DONE 9/5/2024
|
||||
* more random names for game id & client id DONE 9/5/2024
|
||||
* BUG: attacks speed up DONE 9/6/2024
|
||||
* rebalance income DONE 9/7/2024
|
||||
* Make fake humans DONE 9/8/2024
|
||||
* Make more colors DONE 9/8/2024
|
||||
* Have fake humans join lobby DONE 9/9/2024
|
||||
* Update landing page image DONE 9/9/2024
|
||||
* BUG: fix tile per turn pacing issues DONE 9/9/2024
|
||||
* Improve expansion directions (more uniform) 9/9/2024
|
||||
* store username DONE 9/11/2024
|
||||
* give anon unique number after Anon name DONE 9/11/2024
|
||||
* make color a hash of name DONE 9/11/2024
|
||||
* Make boats more intuitive (larger area to click off coast) DONE 9/11/2024
|
||||
* FakeHumans retaliate when attacked DONE 9/11/2024
|
||||
* Add discord link DONE 9/14/2024
|
||||
* front page mobile friendly DONE 9/15/2024
|
||||
* game mobile friendly DONE 9/16/2024
|
||||
* UI: basic win condition & popup DONE 9/16/2024
|
||||
* right click popup alliance option DONE 9/17/2024
|
||||
* BUG: can't ally same person twice DONE 9/18/2024
|
||||
* attack alliance create traitor flag DONE 9/18/2024
|
||||
* break alliance makes you a traitor DONE 9/18/2024
|
||||
* add traitor icon DONE 9/18/2024
|
||||
* make alliance icon DONE 9/19/2024
|
||||
* bots attack traitors DONE 9/19/2024
|
||||
* BUG: alliance should stop attack DONE 9/19/2024
|
||||
* BUG: bot attacks don't stop when allied DONE 9/19/2024
|
||||
* click alliance sends alliance request DONE 9/20/2024
|
||||
* notification for alliance request DONE 9/20/2024
|
||||
* comfirm alliance DONE 9/20/2024
|
||||
* create event box DONE 9/20/2024
|
||||
* BUG: left click lost after right click DONE 9/20/2024
|
||||
* eventbox events dissapear after timeout DONE 9/20/2024
|
||||
* auto reject alliance when event dissapears DONE 9/20/2024
|
||||
* first place has crown DONE 9/21/2024
|
||||
* can't attack ally DONE 9/21/2024
|
||||
* add updates to eventbox: boats (max count, too far) DONE 9/21/2024
|
||||
* BUG: boats landing doesn't launch attack DONE 9/21/2024
|
||||
* fake humans handle alliances DONE 9/22/2024
|
||||
* make alliances expire DONE 9/22/2024
|
||||
* make radial menu buttons grayed out DONE 9/27/2024
|
||||
* add request alliance radial button DONE 9/27/2024
|
||||
* add break alliance radial button DONE 9/27/2024
|
||||
* add send boat radial button DONE 9/28/2024
|
||||
* attack radial center button only on enemy DONE 9/28/2024
|
||||
* radial center button "spawn" during spawn phase DONE 9/28/2024
|
||||
* better color scheme radial menu DONE 9/28/2024
|
||||
* Make buttons icons DONE 9/28/2024
|
||||
* BUG: change username after selecting map DONE 9/29/2024
|
||||
* BUG: fake humans break alliance too often DONE 9/29/2024
|
||||
* make fake humans more difficult DONE 9/29/2024
|
||||
* BUG: make event box work on mobile DONE 9/30/2024
|
||||
* BUG: alliance expire message after player dies DONE 9/30/2024
|
||||
* BUG: alliance cooldown request DONE 9/30/2024
|
||||
* make create/break alliance single button DONE 10/1/2024
|
||||
* add request attack other players DONE 10/2/2024
|
||||
* Improve alliance icon DONE 10/2/2024
|
||||
* BUG: center button should be disabled select island DONE 10/2/2024
|
||||
* BUG: boat icon appears when click inland DONE 10/2/2024
|
||||
* Auto deploy to dev on commit DONE 10/2/2024
|
||||
* add emoji button DONE 10/4/2024
|
||||
* make disabled icon crossed out icon DONE 10/6/2024
|
||||
* disable select on mobile DONE 10/6/2024
|
||||
* disable double tap on mobile DONE 10/6/2024
|
||||
* donate troops button DONE 10/7/2024
|
||||
* Make fake humans spawn by their country DONE 10/9/2024
|
||||
* UI: leader board DONE 10/12/2024
|
||||
* single player mode DONE 10/12/2024
|
||||
* single player select map DONE 10/12/2024
|
||||
* implement private game DONE 10/15/2024
|
||||
* private game can select map DONE 10/16/2024
|
||||
* Test on android DONE 10/17/2024
|
||||
* add troop max DONE 10/31/2024
|
||||
* rewrite EventsDisplay DONE 11/1/2024
|
||||
* update Mena NPC locations DONE 11/1/2024
|
||||
* create build menu DONE 11/3/2024
|
||||
* add gold DONE 11/4/2024
|
||||
* add troop/worker slider DONE 11/4/2024
|
||||
* create Unit layer DONE 11/9/2024
|
||||
* create Unit interface DONE 11/10/2024
|
||||
* add destroyer DONE 11/12/2024
|
||||
* add ports DONE 11/14/2024
|
||||
* destroyer spawn from port DONE 11/14/2024
|
||||
* create trade routes DONE 11/15/2024
|
||||
* add trade ship DONE 11/15/2024
|
||||
* trade ship gives gold when completes route DONE 11/15/2024
|
||||
* add missile silo DONE 11/15/2024
|
||||
* nuke spawns from missile silo DONE 11/16/2024
|
||||
* REFACTOR: move canbuild to player DONE 11/17/2024
|
||||
* BUG: can build destroyer on land DONE 11/17/2024
|
||||
* fix pathfinding bug DONE 11/20/2024
|
||||
* make two nukes: atom & hydrogen DONE 11/20/2024
|
||||
* NPC builds ports DONE 11/20/2024
|
||||
* BUG: fix matchmaking DONE 11/22/2024
|
||||
* destroyer can capture trade ships DONE 11/22/2024
|
||||
* BUG: fix hotreload (priority queue breaks it) DONE 8/24/2023
|
||||
* improve menu (keep highlighted when click, allow deselect lobby) DONE 8/25/2023
|
||||
* give time to (re) spawn at start of game DONE 8/25/2023
|
||||
* show bar for long to respawn DONE 8/26/2023
|
||||
* store & delay tile updates for lag compensation DONE 8/26/2023
|
||||
* BUG: error if don't spawn and then click after spawn mode DONE 8/26/2023
|
||||
* BUG: change player name after join lobby DONE 8/26/2023
|
||||
* REFACTOR: use new priority queue DONE 8/27/2023
|
||||
* BUG: players attack each other same time creates islands DONE 8/28/2023
|
||||
* make bot spawn better DONE 8/28/2023
|
||||
* make UX for attacking TerraNullius by boat better DONE 8/29/2023
|
||||
* make bot territory less funky (more likely attack neighbors with larger border) DONE 8/29/2023
|
||||
* REFACTOR: remove player config DONE 8/29/2023
|
||||
* give boats limit for how far they can go DONE 8/29/2023
|
||||
* boats can go around the world DONE 8/29/2023
|
||||
* max boats (3) DONE 8/30/2023
|
||||
* PERF: more efficient spawns DONE 8/30/2023
|
||||
* PERF: load terrain map async DONE 8/30/2023
|
||||
* if completely surrended, lose piece of land DONE 8/30/2023
|
||||
* Add terrain elevation to map DONE 8/30/2023
|
||||
* Make territory translucent DONE 8/31/2023
|
||||
* Have terrain affect attack DONE 8/31/2023
|
||||
* PERF: enable CDN DONE 8/31/2023
|
||||
* enable load balancing metrics DONE 8/31/2023
|
||||
* BUG: island don't check if inscribed, just try to remove it DONE 8/31/2023
|
||||
* if completely surrounded by same enemy, lose island DONE 8/31/2023
|
||||
* BUG: fix boat leaves trail DONE 9/1/2023
|
||||
* end game when no players left (or after 1 hour or so?) DONE 9/1/2023
|
||||
* add structured logging DONE 9/1/2023
|
||||
* improve background image DONE 9/1/2023
|
||||
* make attack execution stream tiles to pq DONE 9/1/2023
|
||||
* center map on game start DONE 9/1/2023
|
||||
* use better favicon DONE 9/1/2023
|
||||
* make mediterranion ocean, fix panama canal DONE 9/1/2023
|
||||
* remove tiny islands DONE 9/1/2023
|
||||
* Create exit to menu button DONE 9/2/2023
|
||||
* show next game in menu DONE 9/2/2023
|
||||
* BUG: attacks starts slow but gets faster DONE 9/2/2023
|
||||
* BUG: can't join game if click with 1s before start DONE 9/2/2023
|
||||
* boat not going around world dist vs distwrapped DONE 9/2/2023
|
||||
* test & deploy game DONE 9/2/2023
|
||||
* put number of troops ui DONE 9/3/2023
|
||||
* names don't appear when zoomed out DONE 9/3/2023
|
||||
* make names bigger DONE 9/3/2023
|
||||
* boats leave trails DONE 9/3/2023
|
||||
* send boat even if touching DONE 9/4/2023
|
||||
* when attacking by boat, attack execution only starts from boat pixel DONE 9/4/2023
|
||||
* Make three terrain types: Plains, highlands, mountains DONE 9/5/2023
|
||||
* more random names for game id & client id DONE 9/5/2023
|
||||
* BUG: attacks speed up DONE 9/6/2023
|
||||
* rebalance income DONE 9/7/2023
|
||||
* Make fake humans DONE 9/8/2023
|
||||
* Make more colors DONE 9/8/2023
|
||||
* Have fake humans join lobby DONE 9/9/2023
|
||||
* Update landing page image DONE 9/9/2023
|
||||
* BUG: fix tile per turn pacing issues DONE 9/9/2023
|
||||
* Improve expansion directions (more uniform) 9/9/2023
|
||||
* store username DONE 9/11/2023
|
||||
* give anon unique number after Anon name DONE 9/11/2023
|
||||
* make color a hash of name DONE 9/11/2023
|
||||
* Make boats more intuitive (larger area to click off coast) DONE 9/11/2023
|
||||
* FakeHumans retaliate when attacked DONE 9/11/2023
|
||||
* Add discord link DONE 9/14/2023
|
||||
* front page mobile friendly DONE 9/15/2023
|
||||
* game mobile friendly DONE 9/16/2023
|
||||
* UI: basic win condition & popup DONE 9/16/2023
|
||||
* right click popup alliance option DONE 9/17/2023
|
||||
* BUG: can't ally same person twice DONE 9/18/2023
|
||||
* attack alliance create traitor flag DONE 9/18/2023
|
||||
* break alliance makes you a traitor DONE 9/18/2023
|
||||
* add traitor icon DONE 9/18/2023
|
||||
* make alliance icon DONE 9/19/2023
|
||||
* bots attack traitors DONE 9/19/2023
|
||||
* BUG: alliance should stop attack DONE 9/19/2023
|
||||
* BUG: bot attacks don't stop when allied DONE 9/19/2023
|
||||
* click alliance sends alliance request DONE 9/20/2023
|
||||
* notification for alliance request DONE 9/20/2023
|
||||
* comfirm alliance DONE 9/20/2023
|
||||
* create event box DONE 9/20/2023
|
||||
* BUG: left click lost after right click DONE 9/20/2023
|
||||
* eventbox events dissapear after timeout DONE 9/20/2023
|
||||
* auto reject alliance when event dissapears DONE 9/20/2023
|
||||
* first place has crown DONE 9/21/2023
|
||||
* can't attack ally DONE 9/21/2023
|
||||
* add updates to eventbox: boats (max count, too far) DONE 9/21/2023
|
||||
* BUG: boats landing doesn't launch attack DONE 9/21/2023
|
||||
* fake humans handle alliances DONE 9/22/2023
|
||||
* make alliances expire DONE 9/22/2023
|
||||
* make radial menu buttons grayed out DONE 9/27/2023
|
||||
* add request alliance radial button DONE 9/27/2023
|
||||
* add break alliance radial button DONE 9/27/2023
|
||||
* add send boat radial button DONE 9/28/2023
|
||||
* attack radial center button only on enemy DONE 9/28/2023
|
||||
* radial center button "spawn" during spawn phase DONE 9/28/2023
|
||||
* better color scheme radial menu DONE 9/28/2023
|
||||
* Make buttons icons DONE 9/28/2023
|
||||
* BUG: change username after selecting map DONE 9/29/2023
|
||||
* BUG: fake humans break alliance too often DONE 9/29/2023
|
||||
* make fake humans more difficult DONE 9/29/2023
|
||||
* BUG: make event box work on mobile DONE 9/30/2023
|
||||
* BUG: alliance expire message after player dies DONE 9/30/2023
|
||||
* BUG: alliance cooldown request DONE 9/30/2023
|
||||
* make create/break alliance single button DONE 10/1/2023
|
||||
* add request attack other players DONE 10/2/2023
|
||||
* Improve alliance icon DONE 10/2/2023
|
||||
* BUG: center button should be disabled select island DONE 10/2/2023
|
||||
* BUG: boat icon appears when click inland DONE 10/2/2023
|
||||
* Auto deploy to dev on commit DONE 10/2/2023
|
||||
* add emoji button DONE 10/4/2023
|
||||
* make disabled icon crossed out icon DONE 10/6/2023
|
||||
* disable select on mobile DONE 10/6/2023
|
||||
* disable double tap on mobile DONE 10/6/2023
|
||||
* donate troops button DONE 10/7/2023
|
||||
* Make fake humans spawn by their country DONE 10/9/2023
|
||||
* UI: leader board DONE 10/12/2023
|
||||
* single player mode DONE 10/12/2023
|
||||
* single player select map DONE 10/12/2023
|
||||
* implement private game DONE 10/15/2023
|
||||
* private game can select map DONE 10/16/2023
|
||||
* Test on android DONE 10/17/2023
|
||||
* add troop max DONE 10/31/2023
|
||||
* rewrite EventsDisplay DONE 11/1/2023
|
||||
* update Mena NPC locations DONE 11/1/2023
|
||||
* create build menu DONE 11/3/2023
|
||||
* add gold DONE 11/4/2023
|
||||
* add troop/worker slider DONE 11/4/2023
|
||||
* create Unit layer DONE 11/9/2023
|
||||
* create Unit interface DONE 11/10/2023
|
||||
* add destroyer DONE 11/12/2023
|
||||
* add ports DONE 11/14/2023
|
||||
* destroyer spawn from port DONE 11/14/2023
|
||||
* create trade routes DONE 11/15/2023
|
||||
* add trade ship DONE 11/15/2023
|
||||
* trade ship gives gold when completes route DONE 11/15/2023
|
||||
* add missile silo DONE 11/15/2023
|
||||
* nuke spawns from missile silo DONE 11/16/2023
|
||||
* REFACTOR: move canbuild to player DONE 11/17/2023
|
||||
* BUG: can build destroyer on land DONE 11/17/2023
|
||||
* fix pathfinding bug DONE 11/20/2023
|
||||
* make two nukes: atom & hydrogen DONE 11/20/2023
|
||||
* NPC builds ports DONE 11/20/2023
|
||||
* BUG: fix matchmaking DONE 11/22/2023
|
||||
* destroyer can capture trade ships DONE 11/22/2023
|
||||
* have bots recapture after nuclear blast DONE 11/24/2022
|
||||
* BUG: destroys destroy trade ships instead of capturing them DONE 11/25/2024
|
||||
* nukes break alliance DONE 11/25/2024
|
||||
* BUG: nuke yourself makes you traitor DONE 11/25/2024
|
||||
* make ports cost more for more ports DONE 11/25/2024
|
||||
* add battleship DONE 11/26/2024
|
||||
* use drawRect() instead of putImageData DONE 11/26/2024
|
||||
* run a* in a web worker DONE 11/29/2024
|
||||
* create async pathfinder DONE 11/29/2024
|
||||
* captured tradeships use async pathfinder DONE 11/29/2024
|
||||
* BUG: trade ships not building DONE 11/29/2024
|
||||
* make mini map for path finding DONE 11/29/2024
|
||||
* have NPCs build destroyers and battleships DONE 11/30/2024
|
||||
* add info view on top right DONE 11/30/2024
|
||||
* add info view for units DONE 11/30/2024
|
||||
* add defense post DONE 12/2/2024
|
||||
* bugfix: when thread doesn't complete computation, do it in main DONE 12/3/2024
|
||||
* bugfix: when trade ships captured don't render DONE 12/3/2024
|
||||
* use mini A* for all pathfinding DONE 12/3/2024
|
||||
* bugfix: gameStop not found error DONE 12/3/2024
|
||||
* log stack traces & display them on screen DONE 12/3/2024
|
||||
* add radiation from nuke DONE 12/4/2024
|
||||
* add cities DONE 12/4/2024
|
||||
* write multiplayer games to GCS DONE 12/6/2024
|
||||
* write single player games to GCS DONE 12/7/2024
|
||||
* record game difficulty DONE 12/7/2024
|
||||
* standardize game ids DONE 12/7/2024
|
||||
* bufix: mini map doesn't load in time DONE 12/7/2024
|
||||
* bugfix: private game host game doesn't start DONE 12/8/2024
|
||||
* BUG: destroys destroy trade ships instead of capturing them DONE 11/25/2023
|
||||
* nukes break alliance DONE 11/25/2023
|
||||
* BUG: nuke yourself makes you traitor DONE 11/25/2023
|
||||
* make ports cost more for more ports DONE 11/25/2023
|
||||
* add battleship DONE 11/26/2023
|
||||
* use drawRect() instead of putImageData DONE 11/26/2023
|
||||
* run a* in a web worker DONE 11/29/2023
|
||||
* create async pathfinder DONE 11/29/2023
|
||||
* captured tradeships use async pathfinder DONE 11/29/2023
|
||||
* BUG: trade ships not building DONE 11/29/2023
|
||||
* make mini map for path finding DONE 11/29/2023
|
||||
* have NPCs build destroyers and battleships DONE 11/30/2023
|
||||
* add info view on top right DONE 11/30/2023
|
||||
* add info view for units DONE 11/30/2023
|
||||
* add defense post DONE 12/2/2023
|
||||
* bugfix: when thread doesn't complete computation, do it in main DONE 12/3/2023
|
||||
* bugfix: when trade ships captured don't render DONE 12/3/2023
|
||||
* use mini A* for all pathfinding DONE 12/3/2023
|
||||
* bugfix: gameStop not found error DONE 12/3/2023
|
||||
* log stack traces & display them on screen DONE 12/3/2023
|
||||
* add radiation from nuke DONE 12/4/2023
|
||||
* add cities DONE 12/4/2023
|
||||
* write multiplayer games to GCS DONE 12/6/2023
|
||||
* write single player games to GCS DONE 12/7/2023
|
||||
* record game difficulty DONE 12/7/2023
|
||||
* standardize game ids DONE 12/7/2023
|
||||
* bufix: mini map doesn't load in time DONE 12/7/2023
|
||||
* bugfix: private game host game doesn't start DONE 12/8/2023
|
||||
* add NA map DONE 12/8/2023
|
||||
* add Oceania map 12/8/2023
|
||||
* store in BigQuery
|
||||
* clicking on a player's name in the rank UI should teleport you to him (pretty useful to know who's who and to locate small nations)
|
||||
* record commit hash of game
|
||||
* record game winner
|
||||
* store metadata in BigQuery
|
||||
* replay stored games
|
||||
* max price for units
|
||||
* when player dies, don't remove atom bombs
|
||||
* remove alliance when player dies
|
||||
* record and replay games for debugging purposes
|
||||
* add bug report button in game
|
||||
* bugfix: destroyers can't find path to dst and freeze
|
||||
* alert on attack
|
||||
* alert on unit captured or destroyed
|
||||
* stop requesting lobby when playing game
|
||||
* nuking an enemy and accidentally destroying a trade ship shouldn't break the alliance and make you a traitor
|
||||
* you should get a notification and a reward (some money) for eliminating an enemy (perhaps take wtvr gold the enemy had)
|
||||
* emojis should be displayed on top of your name not under it
|
||||
* the notification for a successful trade should be shorter, example: " 70k Gold from trade with "X" "
|
||||
* countries don't actually spawn with some randomness, it's always the same exact spawn
|
||||
* allow longer names and allow them to be displayed in the Rank UI not be cut (many are cut for now, even for countries)
|
||||
* clicking on a player's name in the rank UI should teleport you to him (pretty useful to know who's who and to locate small nations)
|
||||
* create behavior tests
|
||||
* create perf test
|
||||
|
||||
|
||||
* naval combat
|
||||
* revamp alliance system
|
||||
|
||||
|
||||
FEB 1st
|
||||
------------ Polish 4-weeks
|
||||
|
||||
---------------------- ALPHA Release END OF FEBRUARY
|
||||
|
||||
* create alternate view to show friendly & enemy units
|
||||
* stop requesting lobby when playing game
|
||||
* spread out calculate clusters
|
||||
* NPC has relations
|
||||
* only show units you can build in the build menu
|
||||
@@ -245,8 +255,6 @@
|
||||
* use twitter emojis
|
||||
* private game shows how many players joined
|
||||
* optimize sendBoat function
|
||||
* NPC more likely to accept alliance fewer alliance player has
|
||||
* surface NPC relations
|
||||
* use SVGs for icons
|
||||
* block user inputs if too far behind server
|
||||
* BUG: FakeHuman don't be enemy if don't share border (or send boat)
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
171, 171 Iceland
|
||||
477, 473 Ireland
|
||||
650, 500 England
|
||||
560, 800 Spain
|
||||
726, 616 France
|
||||
1050, 745 Italy
|
||||
872, 634 Switzerland
|
||||
960, 271 Norway
|
||||
1095, 336 Sweden
|
||||
1403, 235 Finland
|
||||
775, 541 Belgium
|
||||
868, 487 Netherlands
|
||||
949, 548 Germany
|
||||
1017, 628 Austria
|
||||
1120, 477 Poland
|
||||
1030, 589 Czechia
|
||||
1540, 602 Ukraine
|
||||
1500, 440 Belarus
|
||||
1424, 754 Romania
|
||||
1580, 834 Turkiye
|
||||
525, 955 Morocco
|
||||
1674, 449 Russia
|
||||
@@ -1,114 +0,0 @@
|
||||
USA
|
||||
UK
|
||||
Rome
|
||||
Greece
|
||||
Persia
|
||||
Ottoman
|
||||
Mongol
|
||||
Inca
|
||||
Aztec
|
||||
Maya
|
||||
Egypt
|
||||
Carthage
|
||||
Babylon
|
||||
Assyria
|
||||
Hittite
|
||||
Phoenicia
|
||||
Sumer
|
||||
Akkad
|
||||
China
|
||||
Japan
|
||||
Korea
|
||||
Vietnam
|
||||
India
|
||||
Pakistan
|
||||
Russia
|
||||
USSR
|
||||
Germany
|
||||
France
|
||||
Spain
|
||||
Portugal
|
||||
Netherlands
|
||||
Belgium
|
||||
Italy
|
||||
Austria
|
||||
Hungary
|
||||
Poland
|
||||
Sweden
|
||||
Norway
|
||||
Denmark
|
||||
Finland
|
||||
Iceland
|
||||
Ireland
|
||||
Scotland
|
||||
Wales
|
||||
Mexico
|
||||
Brazil
|
||||
Argentina
|
||||
Chile
|
||||
Peru
|
||||
Colombia
|
||||
Venezuela
|
||||
Canada
|
||||
Australia
|
||||
New Zealand
|
||||
South Africa
|
||||
Nigeria
|
||||
Ethiopia
|
||||
Kenya
|
||||
Ghana
|
||||
Mali Empire
|
||||
Songhai
|
||||
Zimbabwe
|
||||
Morocco
|
||||
Algeria
|
||||
Tunisia
|
||||
Libya
|
||||
Sudan
|
||||
Turkey
|
||||
Iran
|
||||
Iraq
|
||||
Saudi Arabia
|
||||
Israel
|
||||
Lebanon
|
||||
Jordan
|
||||
Syria
|
||||
Yemen
|
||||
Oman
|
||||
Qatar
|
||||
Kuwait
|
||||
UAE
|
||||
Afghanistan
|
||||
Kazakhstan
|
||||
Uzbekistan
|
||||
Myanmar
|
||||
Thailand
|
||||
Cambodia
|
||||
Malaysia
|
||||
Indonesia
|
||||
Philippines
|
||||
Taiwan
|
||||
Tibet
|
||||
Mongolia
|
||||
Burgundy
|
||||
Prussia
|
||||
Bohemia
|
||||
Bavaria
|
||||
Saxony
|
||||
Hanover
|
||||
Venice
|
||||
Genoa
|
||||
Florence
|
||||
Naples
|
||||
Sicily
|
||||
Aragon
|
||||
Castile
|
||||
Leon
|
||||
Navarre
|
||||
Muscovy
|
||||
Kievan Rus
|
||||
Serbia
|
||||
Croatia
|
||||
Bosnia
|
||||
Bulgaria
|
||||
Romania
|
||||
@@ -1,45 +0,0 @@
|
||||
clicked cell Cell[375,272] USA
|
||||
clicked cell Cell[372,136] Canada
|
||||
clicked cell Cell[375,374] Mexico
|
||||
clicked cell Cell[500,378] Cuba
|
||||
clicked cell Cell[524,474] Columbia
|
||||
clicked cell Cell[593,473] Venezuala
|
||||
clicked cell Cell[596,705] Argentina
|
||||
clicked cell Cell[637,567] Brazil
|
||||
clicked cell Cell[1280,975] Antartica
|
||||
clicked cell Cell[709,57] Greenland
|
||||
clicked cell Cell[831,112] Iceland
|
||||
clicked cell Cell[925,186] England
|
||||
clicked cell Cell[887,183] Ireland
|
||||
clicked cell Cell[908,264] Spain
|
||||
clicked cell Cell[1004,250] Italy
|
||||
clicked cell Cell[958,220] France
|
||||
clicked cell Cell[997,205] Germany
|
||||
clicked cell Cell[1064,101] Sweden
|
||||
clicked cell Cell[1046,193] Poland
|
||||
clicked cell Cell[1061,188] Belarus
|
||||
clicked cell Cell[1073,243] Romania
|
||||
clicked cell Cell[1161,274] Turkiye
|
||||
clicked cell Cell[969,133] Norway
|
||||
clicked cell Cell[1062,133] Finland
|
||||
clicked cell Cell[1099,211] Ukraine
|
||||
clicked cell Cell[1344,136] Russia
|
||||
clicked cell Cell[1537,186] Mongolia
|
||||
clicked cell Cell[1524,328] China
|
||||
clicked cell Cell[1368,373] India
|
||||
clicked cell Cell[1276,239] Kazakhstan
|
||||
clicked cell Cell[1238,309] Iran
|
||||
clicked cell Cell[1178,351] Saudi Arabia
|
||||
clicked cell Cell[1679,657] Australia
|
||||
clicked cell Cell[1890,775] New Zealand
|
||||
clicked cell Cell[1569,502] Belgium
|
||||
clicked cell Cell[918,342] Algeria
|
||||
clicked cell Cell[1030,332] Libia
|
||||
clicked cell Cell[1092,335] Egypt
|
||||
clicked cell Cell[963,410] Niger
|
||||
clicked cell Cell[1112,406] Sudan
|
||||
clicked cell Cell[1074,508] DRC
|
||||
clicked cell Cell[1154,443] Ethiopia
|
||||
clicked cell Cell[1075,707] South Africa
|
||||
clicked cell Cell[1194,627] Madagascar
|
||||
clicked cell Cell[1052,420] Chad
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,135 @@
|
||||
{
|
||||
"name": "NorthAmerica",
|
||||
"width": 2000,
|
||||
"height": 1000,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [
|
||||
1280,
|
||||
582
|
||||
],
|
||||
"name": "USA 🇺🇸",
|
||||
"strength": 3
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1235,
|
||||
509
|
||||
],
|
||||
"name": "Canada 🇨🇦",
|
||||
"strength": 2
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
983,
|
||||
832
|
||||
],
|
||||
"name": "Mexico 🇲🇽",
|
||||
"strength": 2
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1126,
|
||||
871
|
||||
],
|
||||
"name": "Belize 🇧🇿",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1096,
|
||||
893
|
||||
],
|
||||
"name": "Guatemala 🇬🇹",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1124,
|
||||
916
|
||||
],
|
||||
"name": "El Salvador 🇸🇻",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1143,
|
||||
906
|
||||
],
|
||||
"name": "Honduras 🇭🇳",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1157,
|
||||
937
|
||||
],
|
||||
"name": "Nicaragua 🇳🇮",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1184,
|
||||
963
|
||||
],
|
||||
"name": "Costa Rica 🇨🇷",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1235,
|
||||
974
|
||||
],
|
||||
"name": "Panama 🇵🇦",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1304,
|
||||
997
|
||||
],
|
||||
"name": "Colombia 🇨🇴",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1392,
|
||||
955
|
||||
],
|
||||
"name": "Venezuela 🇻🇪",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1228,
|
||||
802
|
||||
],
|
||||
"name": "Cuba 🇨🇺",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1263,
|
||||
857
|
||||
],
|
||||
"name": "Jamaica 🇯🇲",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1326,
|
||||
849
|
||||
],
|
||||
"name": "Haiti 🇭🇹",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1358,
|
||||
852
|
||||
],
|
||||
"name": "Dominican Republic 🇩🇴",
|
||||
"strength": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 457 KiB |
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,271 @@
|
||||
{
|
||||
"name": "Oceania",
|
||||
"width": 2000,
|
||||
"height": 1000,
|
||||
"nations": [
|
||||
{
|
||||
"coordinates": [
|
||||
718,
|
||||
738
|
||||
],
|
||||
"name": "Australia 🇦🇺",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1050,
|
||||
809
|
||||
],
|
||||
"name": "New Zealand 🇳🇿",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
686,
|
||||
407
|
||||
],
|
||||
"name": "Papua New Guinea 🇵🇬",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
436,
|
||||
407
|
||||
],
|
||||
"name": "East Timor 🇹🇱",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
182,
|
||||
378
|
||||
],
|
||||
"name": "Indonesia 🇮🇩",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
292,
|
||||
243
|
||||
],
|
||||
"name": "Brunei 🇧🇳",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
152,
|
||||
282
|
||||
],
|
||||
"name": "Singapore 🇸🇬",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
120,
|
||||
261
|
||||
],
|
||||
"name": "Malaysia 🇲🇾",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
106,
|
||||
129
|
||||
],
|
||||
"name": "Thailand 🇹🇭",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
51,
|
||||
42
|
||||
],
|
||||
"name": "Myanmar 🇲🇲",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
158,
|
||||
162
|
||||
],
|
||||
"name": "Cambodia 🇰🇭",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
182,
|
||||
43
|
||||
],
|
||||
"name": "Vietnam 🇻🇳",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
143,
|
||||
37
|
||||
],
|
||||
"name": "Laos 🇱🇦",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
278,
|
||||
18
|
||||
],
|
||||
"name": "Hong Kong 🇭🇰",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
359,
|
||||
1
|
||||
],
|
||||
"name": "Taiwan 🇹🇼",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
366,
|
||||
119
|
||||
],
|
||||
"name": "Philippines 🇵🇭",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
536,
|
||||
207
|
||||
],
|
||||
"name": "Palau 🇵🇼",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
834,
|
||||
215
|
||||
],
|
||||
"name": "Micronesia 🇫🇲",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
664,
|
||||
113
|
||||
],
|
||||
"name": "Guam 🇬🇺",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1042,
|
||||
317
|
||||
],
|
||||
"name": "Marshall Islands 🇲🇭",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
799,
|
||||
385
|
||||
],
|
||||
"name": "Bougainville 🇵🇬",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
862,
|
||||
442
|
||||
],
|
||||
"name": "Solomon Islands 🇸🇧",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
945,
|
||||
497
|
||||
],
|
||||
"name": "Vanuatu 🇻🇺",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
930,
|
||||
574
|
||||
],
|
||||
"name": "New Caledonia 🇳🇨",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1085,
|
||||
526
|
||||
],
|
||||
"name": "Fiji 🇫🇯",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1169,
|
||||
568
|
||||
],
|
||||
"name": "Tonga 🇹🇴",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1236,
|
||||
541
|
||||
],
|
||||
"name": "Niue 🇳🇺",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1204,
|
||||
473
|
||||
],
|
||||
"name": "Samoa 🇼🇸",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1491,
|
||||
523
|
||||
],
|
||||
"name": "Cook Islands 🇨🇰",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1623,
|
||||
424
|
||||
],
|
||||
"name": "Polynesia 🇵🇫",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1393,
|
||||
278
|
||||
],
|
||||
"name": "Kiribati 🇰🇮",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1420,
|
||||
56
|
||||
],
|
||||
"name": "Hawaii 🇺🇸",
|
||||
"strength": 1
|
||||
},
|
||||
{
|
||||
"coordinates": [
|
||||
1996,
|
||||
644
|
||||
],
|
||||
"name": "Easter Island 🇨🇱",
|
||||
"strength": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 276 KiB |
@@ -6,7 +6,6 @@ import { BotSpawner } from "./BotSpawner";
|
||||
import { TransportShipExecution } from "./TransportShipExecution";
|
||||
import { PseudoRandom } from "../PseudoRandom";
|
||||
import { FakeHumanExecution } from "./FakeHumanExecution";
|
||||
import Usernames from '../../../resources/Usernames.txt'
|
||||
import { processName, sanitize, simpleHash } from "../Util";
|
||||
import { AllianceRequestExecution } from "./alliance/AllianceRequestExecution";
|
||||
import { AllianceRequestReplyExecution } from "./alliance/AllianceRequestReplyExecution";
|
||||
@@ -29,7 +28,6 @@ import { CityExecution } from "./CityExecution";
|
||||
|
||||
export class Executor {
|
||||
|
||||
private usernames = Usernames.split('\n')
|
||||
|
||||
// private random = new PseudoRandom(999)
|
||||
private random: PseudoRandom = null
|
||||
|
||||
@@ -20,7 +20,9 @@ export enum Difficulty {
|
||||
export enum GameMap {
|
||||
World,
|
||||
Europe,
|
||||
Mena
|
||||
Mena,
|
||||
NorthAmerica,
|
||||
Oceania
|
||||
}
|
||||
|
||||
export enum GameType {
|
||||
|
||||
@@ -9,10 +9,18 @@ import worldInfo from "../../../resources/maps/WorldMap.json"
|
||||
import menaBin from "!!binary-loader!../../../resources/maps/Mena.bin"
|
||||
import menaInfo from "../../../resources/maps/Mena.json"
|
||||
|
||||
import northAmericaBin from "!!binary-loader!../../../resources/maps/NorthAmerica.bin"
|
||||
import northAmericaInfo from "../../../resources/maps/NorthAmerica.json"
|
||||
|
||||
import oceaniaBin from "!!binary-loader!../../../resources/maps/Oceania.bin"
|
||||
import oceaniaInfo from "../../../resources/maps/Oceania.json"
|
||||
|
||||
const maps = new Map()
|
||||
.set(GameMap.World, { bin: worldBin, info: worldInfo })
|
||||
.set(GameMap.Europe, { bin: europeBin, info: europeInfo })
|
||||
.set(GameMap.Mena, { bin: menaBin, info: menaInfo });
|
||||
.set(GameMap.Mena, { bin: menaBin, info: menaInfo })
|
||||
.set(GameMap.NorthAmerica, { bin: northAmericaBin, info: northAmericaInfo })
|
||||
.set(GameMap.Oceania, { bin: oceaniaBin, info: oceaniaInfo })
|
||||
|
||||
const loadedMaps = new Map<GameMap, TerrainMapImpl>()
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { TerrainTile } from '../core/game/Game';
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const mapName = "Mena"
|
||||
const mapName = "Oceania"
|
||||
|
||||
interface Coord {
|
||||
x: number;
|
||||
@@ -40,7 +40,6 @@ export async function loadTerrainMap(): Promise<void> {
|
||||
|
||||
let max = 0
|
||||
let min = 1000
|
||||
const array: number[] = new Array(256).fill(0);
|
||||
|
||||
|
||||
// Iterate through each pixel
|
||||
@@ -50,15 +49,13 @@ export async function loadTerrainMap(): Promise<void> {
|
||||
const alpha = color & 0xff;
|
||||
const blue = (color >> 8) & 0xff;
|
||||
|
||||
if (alpha < 20) { // transparent
|
||||
if (alpha < 20 || blue == 106) { // transparent
|
||||
terrain[x][y] = new Terrain(TerrainType.Water);
|
||||
} else {
|
||||
terrain[x][y] = new Terrain(TerrainType.Land)
|
||||
terrain[x][y].magnitude = 0
|
||||
|
||||
|
||||
array[blue]++
|
||||
|
||||
// 140 -> 200 = 60
|
||||
const mag = Math.min(200, Math.max(140, blue)) - 140
|
||||
terrain[x][y].magnitude = mag / 2
|
||||
|
||||
Reference in New Issue
Block a user