evanpelle
7d79c299f4
Merge pull request #143 from ilan-schemoul/warship-target
...
feat: WarShips red color outside if target current player
2025-03-04 15:53:47 -08:00
ilan schemoul
d2208755c4
feat: WarShips red color outside if target current player
...
Hard to know when warship captures your trade so if they target one of
your trade or war ship they are highlighted in red.
Known limitation: doesn't work well if the WarShip is already in red
(player's color)
2025-03-05 00:45:35 +01: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
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
Evan
1ebafd0b88
highlight nukes
2025-02-19 19:57:33 -08:00
Evan
40966ca3b9
format all files with prettier
2025-02-12 08:28:15 -08:00
Evan
1b6172ee4b
bugfix: units not getting removed from screen when getting destroyed
2025-02-09 10:35:03 -08:00
Evan
1594a45dac
have buildings take time to construct
2025-02-08 13:53:58 -08:00
Evan
b643a6357b
implement mirv
2025-02-04 11:53:41 -08:00
Evan
c109d23f9f
combine battleship + destroyer => warship.
2025-02-02 14:31:30 -08:00
Evan
4ee37323f9
format codebase with prettier
2025-02-01 12:05:11 -08:00
evanpelle
4bbb63fd48
move Game updates to GameUpdate.ts
2025-02-01 12:05:11 -08:00
evanpelle
4034d11015
split Player/Unit from its Views for better separation
2025-02-01 12:05:11 -08:00
Evan
f0f5bae79f
thread_split: convert all tile to tileref
2025-02-01 12:05:11 -08:00
Evan
3da6008e9f
thread split: get units working
2025-02-01 12:05:11 -08:00
Evan
e395619abc
update unitlayer to use new api
2025-02-01 12:05:11 -08:00
Evan
459fc50dae
builds
2025-02-01 12:05:11 -08:00
evanpelle
162b6dc349
in progress
2025-02-01 12:05:11 -08:00
Evan
7d04d25e6f
thread_split: get units working
2025-02-01 12:05:11 -08:00
Evan
3e8517363f
use GameView in renderers
2025-02-01 12:05:11 -08:00
evanpelle
fbdf26cff8
alt-r to redraw graphics
2024-12-25 17:07:11 -08:00
Evan
5307285d8b
give Battleships & Destroyers health, make shells more frequent & larger
2024-12-20 20:31:41 -08:00
Evan
17d75324f8
hit space bar for alternate view
2024-12-20 20:31:24 -08:00
evanpelle
0d3d49fdd0
use consolex in client folder
2024-12-18 14:01:34 -08:00
Evan
e7039d3e07
add defense post unit (no execution)
2024-11-30 20:54:42 -08:00
Evan
5d4befb117
Created mini map for a star search
2024-11-29 20:35:08 -08:00
Evan
982caa3b23
use drawRect instead of putimagedata for units (25% cpu usage reduction)
2024-11-26 13:16:23 -08:00
Evan
8abc5e4aed
implement battleship
2024-11-26 10:15:54 -08:00
Evan
45e7170c2a
create battleship render
2024-11-25 20:25:08 -08:00
Evan
98367ac966
spawn fewer tradeships, change destroyer, tradeship graphic
2024-11-25 20:16:08 -08:00
Evan
c96e1c6a02
fix bug hydrogen bomb not rendering
2024-11-22 20:50:49 -08:00
evanpelle
bc3cf09960
npcs build ports
2024-11-21 19:53:02 -08:00
Evan
18ac34ae45
Created hydrogen bomb
2024-11-20 19:55:42 -08:00
Evan
371a33b406
fixed units() returning empty when no units specified, moved canBuild logic to PlayerImpl
2024-11-17 12:38:54 -08:00
Evan
05a3bed093
nukes spawn from missile silos
2024-11-16 13:48:33 -08:00
Evan
b1e1d7263c
Created TradeShips
2024-11-15 20:43:15 -08:00
Evan
5456988709
Create StructureLayer
2024-11-15 20:43:15 -08:00
evanpelle
09ead3791d
add port
2024-11-15 20:43:15 -08:00
Evan
4236a580e3
working on port
2024-11-15 20:43:15 -08:00
Evan
975750b294
destroyer moves upwards
2024-11-15 20:43:15 -08:00
evanpelle
c7951d77c0
adding destroyer
2024-11-15 20:43:15 -08:00
Evan
6a1a09c335
Create Unit class
2024-11-15 20:43:15 -08:00