Commit Graph

25 Commits

Author SHA1 Message Date
MaciejkaG
ef23080666 Added an option for secure cookies 2024-03-10 16:13:27 +01:00
MaciejkaG
0c4448404c Major changes
- Fixed a bug causing players to be able to shoot one field multiple times and lose turn
- Enhanced ship placing animation
2024-03-10 11:59:18 +01:00
MaciejkaG
44f13469cf Minor changes
- Fixed critical error (undefined value causing a crash when player leaves)
- Fixed hit registration ghosting problem causing fake ships to appear to the opponent
2024-03-09 22:12:36 +01:00
MaciejkaG
284c74b746 Update index.js 2024-03-09 01:11:46 +01:00
MaciejkaG
425fdc621a Minor changes
- Fixed leaving a lobby
- Improved CSS compatibility/clarity
- Optimised game finishing
2024-03-09 01:11:03 +01:00
MaciejkaG
ec036c76d7 Timer overhaul
- Redis-based timers now work
- They should be independent from each other so resetting them shouldn't break parallel rounds.
2024-03-08 23:32:55 +01:00
MaciejkaG
bd7229e17b Minor fixes
- Fixed prep phase duration
2024-03-08 21:42:11 +01:00
MaciejkaG
e28db82339 Major changes
- Improved game end dialog

To-do:
- Remake timers
- Code optimisations
- Minor changes and improvements
2024-03-08 21:35:01 +01:00
MaciejkaG
f844bba23e Minor changes
- Fixed prep phase length
2024-03-08 19:53:22 +01:00
MaciejkaG
a027313139 Major changes
- Multiple visual improvements to animation
- Added ship color dimming when they sunk
- Added game ending (looks and works primitvely for now)
- Added socket.io client error handling and alerts
- Finished and improved hit registration and client hit display

To-do:
- Fix timers (currently resetting the timer is global, which by mistake affects other independent lobbies, critical bug)
- Post-match stats
- Improve many mechanics
- Improve overall quality of the game
2024-03-08 19:18:53 +01:00
MaciejkaG
6021305f4a Major changes
- Hit registration works perfectly now
- Multiple color tweaks
- Enhanced timer animation

To-do:
- Detecting game end
- Multiple fixes
- Revamp round timers (they are global now, so resetting a timer resets it for all games)
2024-03-07 21:56:44 +01:00
MaciejkaG
0663b2c891 Minor changes
- Added .env config
- Improved board formatting when aiming
2024-03-04 20:34:45 +01:00
Maciej Gomoła
4629484a15 Fixed many bugs, placing ships now works 2024-03-04 12:23:47 +01:00
MaciejkaG
ee0b172067 Major changes
- Added ship removing, after changing their mind or missclicking, a player can rightclick a ship to remove it
- Multiple bug fixes and stability improvements
2024-03-03 22:59:52 +01:00
MaciejkaG
bb17dc47ba Major changes
- Fully working ship placement system
- Validating ship positions works too
- Client side ship data display works as well
- Changes to field colors to dark grey instead of light. This improves comfort of use and ensures proper contrast on lower quality displays and ease of use.
2024-03-03 16:55:38 +01:00
MaciejkaG
7c4801db2d Major update
- Improved frontend
- Server-client toasting framework
- Huge improvements to server side utils
- Working ship placement validation
2024-03-03 01:29:11 +01:00
MaciejkaG
018e03aa6e Minor improvements and fixes 2024-03-02 18:36:40 +01:00
MaciejkaG
72da84c3d6 Major changes
- Huge improvements in UI design and animations
- Improvements in code organisation (separated multiple functions into an util file)
- Multiple bug fixes and improvements to stability
- Client side events improved
2024-03-02 18:28:33 +01:00
MaciejkaG
dbb3ad0f1d Major changes
- Players can now successfully get into a game
- None of the game view features don't work yet
- Optimisation changes
- Improved file naming
- A game will automatically end if either of the players disconnect
- Players will start the game synchronously as the server will wait for both of them to connect
- Timer and game state updating works really well
2024-03-02 13:56:01 +01:00
MaciejkaG
302fe3d328 Major changes
- Functioning lobbies with redirection to the board view
- Partly working game mechanics
2024-03-01 22:24:30 +01:00
MaciejkaG
a6d6d6b570 Added proper room system, need to split menu and game into two separate pages and after that we can proceed to connecting menu and the game view 2024-02-29 21:55:56 +01:00
MaciejkaG
e85f36dfb6 added lobbies and more backend stuff 2024-01-08 16:53:12 +01:00
MaciejkaG
4018569f7b Fixes 2024-01-07 00:59:08 +01:00
MaciejkaG
c2975bedc9 Multiple cool changes, added own SPA framework 2024-01-06 21:09:41 +01:00
MaciejkaG
c6275be106 A lot of changes including design, backend setup etc. 2024-01-05 23:35:11 +01:00