219 Commits

Author SHA1 Message Date
Martin Berg Alstad
949c10f9f3 Started with ActionService tests 2023-07-11 20:58:22 +02:00
Martin Berg Alstad
dfd8bbfc10 Added check to see if all players are ready before setting to inGame 2023-07-11 14:31:50 +02:00
Martin Berg Alstad
5db0af5841 GameGroup tests 2023-07-11 14:23:41 +02:00
Martin Berg Alstad
b2f9573fd5
Create dotnet.yml With backend CI 2023-07-09 22:44:54 +02:00
martin
31196886fd Tests, finished for extensions 2023-07-09 19:58:32 +02:00
martin
0cb4367999 Fixed bugs, sending players instead of characters 2023-07-09 19:10:36 +02:00
martin
c0a35fc298 Updated deps, find spawnpoints, other refactoring 2023-07-09 17:10:39 +02:00
martin
920a941156 Persist the player in sessionStorage, fixed typo in BoxProps 2023-07-08 15:39:34 +02:00
martin
d6fa74455e Split doAction into multiple functions 2023-07-08 14:18:09 +02:00
martin
1116942031 Updated jotai states and some backend cleanup 2023-07-08 11:51:26 +02:00
martin
5be200cc56 Implemented Jotai state management 2023-07-07 23:06:14 +02:00
martin
35295b9705 Moved some files 2023-07-07 22:19:17 +02:00
martin
45131efb37 Refactored ActionService, players state in frontend 2023-07-04 22:42:44 +02:00
martin
eed4f50313 Moved actions to a Service 2023-07-03 22:24:56 +02:00
martin
ead816849f Removed unused packages 2023-07-02 20:47:16 +02:00
martin
35089e40d1 Moved game to it's own page 2023-07-02 18:16:26 +02:00
martin
dd21f82734 Created "sign-up" form 2023-07-02 17:59:39 +02:00
martin
d6a49dee6a Updated frontend and more .Ready implementations 2023-07-02 16:44:30 +02:00
martin
eaf17ef484 Added some playerstates 2023-07-01 18:54:59 +02:00
martin
49b8d05f97 Refactored names 2023-06-25 22:21:47 +02:00
martin
c469b92739 Added groups in backend, refactored property names 2023-06-24 19:43:03 +02:00
martin
fbe9594192 Adde player class and updated character classes 2023-06-18 17:20:11 +02:00
martin
7ccb15707e Started with player class 2023-06-15 22:53:07 +02:00
martin
f000e0effc Pac-Man can't walk through another characters, and ghosts can't walk through other ghosts 2023-06-12 19:13:49 +02:00
martin
ce611447ce Position is updated on all clients 2023-06-08 19:48:27 +02:00
martin
58ab8d68ee Ghost can eat a pacman and send it back to spawn 2023-06-08 19:12:10 +02:00
martin
9353c4f825 Character can not land on a different characters spawn 2023-06-08 16:18:09 +02:00
Martin Berg Alstad
287d8ebe5e Fixed tests 2023-06-02 18:03:42 +02:00
martin
209a33830d Fixed Ghost being mistaken for Pac-Man on receive message 2023-06-02 09:55:26 +02:00
martin
63c531635e Score and pellets should update on other clients 2023-05-29 23:17:36 +02:00
martin
2543581211 Updated dependencies 2023-05-29 19:51:30 +02:00
martin
5cffdf1762 PacMan has a box containing pellets, pellets will be removed from map, when picked up, info and counter at top 2023-05-29 19:14:48 +02:00
martin
69ec14c04c Updated Service to use events 2023-05-29 00:24:03 +02:00
martin
3d95ff71d6 Fixed bug in teleportation, moved some state and functions 2023-05-28 23:54:34 +02:00
martin
ee00611c33 Path will now be shown on hover, moved some components 2023-05-28 19:39:43 +02:00
martin
1a5505fe3f Each possible position now contains the path the character takes to reach it 2023-05-28 18:22:44 +02:00
martin
a14a54c279 TS doc, refactored a bit, added a failed test 2023-05-28 14:39:53 +02:00
martin
a473d8ce66 Refactor 2023-05-28 14:10:08 +02:00
martin
161b232176 Fixed bug in findMovesAlgo, added dummies to show direction of possible moves, changed direction to enum 2023-05-28 13:44:27 +02:00
Martin Berg Alstad
1a2e8e7846 Rewritten algorithm to use Direction as well as position 2023-05-24 20:14:23 +02:00
Martin Berg Alstad
dc0e5a342e Ghosts can't teleport 2023-05-24 18:11:41 +02:00
Martin Berg Alstad
76eca2d9ca Updated build dir 2023-05-23 22:18:48 +02:00
Martin Berg Alstad
54c2539b2a Added vitest | added dockerfile | wrote some tests 2023-05-23 22:01:41 +02:00
Martin Berg Alstad
1fd30f1a16 Added some box and pellet logic 2023-05-22 22:57:45 +02:00
Martin Berg Alstad
485014d28d Comments 2023-05-22 22:13:21 +02:00
Martin Berg Alstad
a16de14d54 Refactored 2023-05-21 21:42:21 +02:00
Martin Berg Alstad
44192ea3fe Added movement to characters, and remove used dice 2023-05-21 19:18:21 +02:00
Martin Berg Alstad
c5d8ecc362 Finished the possibleMovesAlgorithm 2023-05-21 11:38:16 +02:00
Martin Berg Alstad
89df373d45 Can click a player to select it. Started implementing algorithm to find paths 2023-05-20 23:57:20 +02:00
Martin Berg Alstad
74f69c6f6c Replaced the canvas map with a react component 2023-05-20 18:05:23 +02:00