Commit Graph

48 Commits

Author SHA1 Message Date
a8e4d2526e Fix (again) and simplify ghost capture logic
Spawn ghosts inside their house
Start a new game by pressing 'n'
2019-12-28 00:47:18 +04:00
e38c7a2dea Implement PInky, Inky, and Clyde's chase behaviours 2019-12-27 17:58:12 +04:00
933f696fe8 Add fix for ghosts getting stuck, Fixes #1 2019-12-27 16:57:04 +04:00
8f13d9295c Remove redundant checks 2019-12-27 16:11:46 +04:00
5eef40f767 Do the flashy thing 2019-12-27 15:45:34 +04:00
cd2b968631 Ghosts can get inside their house now
Add Path object for defining  apath an entity should take at a given speed.

Fix some issues with ghost capturing logic
2019-12-27 14:35:47 +04:00
2a65084363 Rudimentary ghost capturing 2019-12-27 00:51:41 +04:00
0bd4d7f042 Implement BinkyScatterBehaviour 2019-12-26 16:26:37 +04:00
afad1017a5 Implement FrightBehaviour
This took way too long.
2019-12-26 16:13:29 +04:00
75d0c41bb5 Ghosts can chase!
Refactor position to be a Vector2 for convenience sake.
2019-12-26 03:38:14 +04:00
d10148ace1 Refactor N/E/S/W to U/D/L/R 2019-12-26 01:54:58 +04:00
0177090ea3 Paccy should start off to the left 2019-12-26 01:52:34 +04:00
1153205ddd There's a ghost! And death. And a game over sequence. 2019-12-26 01:50:26 +04:00
6073c6c84a Ready! 2019-12-25 20:27:20 +04:00
e2f601c8be Refactor MovableEntity.Direction outside of MovableEntity 2019-12-25 19:35:41 +04:00
f43840979b Now the tunnel works
Also don't allow setting next direction to the current direction.
2019-12-25 19:22:56 +04:00
f5ba40255a Pacman null check since he might arrive at a null tile 2019-12-25 19:12:26 +04:00
347f8f5dba Bounds check on getTile 2019-12-25 19:11:33 +04:00
7bece08683 Implement pause 2019-12-25 17:50:52 +04:00
437ae39a9e Remove ghost's eyes, move eye sprites to ghosts sprites 2019-12-25 16:55:28 +04:00
1a74c9aae3 Load in the rest of the sound assets. 2019-12-25 16:26:25 +04:00
0b2b7fac0f Allow resizing 2019-12-25 16:26:13 +04:00
fbd7715b5a Reset on win, play the alternate music. 2019-12-25 01:56:05 +04:00
fd30774746 Eat power pellets. 2019-12-25 01:33:27 +04:00
e038db9500 Draw lives, add intro music, background siren
Move score to original position
2019-12-25 01:24:30 +04:00
67cf7ff7c5 Correct 8-bit wavs to 16-bit 2019-12-25 01:23:02 +04:00
5382e4896d Wakka Wakka 2019-12-24 23:39:27 +04:00
a23e9169b7 Remove pellets where there shouldn't be any 2019-12-24 23:38:46 +04:00
ea4426f0a0 Dot eater 2019-12-24 22:56:31 +04:00
124f665232 LevelTile.HALLWAY -> LevelTile.TUNNEL 2019-12-24 22:39:39 +04:00
d8319148b9 LevelComponent -> LevelTile 2019-12-24 22:38:32 +04:00
961b4469c5 Add pacman controls.
Changed coordinates such that the center of a tile is now
tile_coordinate + 0.5 rather than tile_coordinate, which makes math make
more sense.
2019-12-24 22:35:02 +04:00
e30f7af064 Fixed level data 2019-12-24 22:32:46 +04:00
76c169fe5a A PacDude is born.
And he moves!
But you can't control him.
2019-12-24 18:28:09 +04:00
765151a654 Fix pacman sprites (align whole pac to partial pac) 2019-12-24 18:27:02 +04:00
e28ca3f6b3 Add .xcf files 2019-12-24 15:36:31 +04:00
6c45eaeac5 Move a sprite 2019-12-24 15:36:18 +04:00
c7a880a6a6 Include barrier to level data file, remove added offset on render 2019-12-24 15:32:52 +04:00
9985da33e0 Move asset loading to central Assets object. Add joystix font 2019-12-24 15:32:52 +04:00
8336838fc4 Render LevelComponents with sprites instead of shapes 2019-12-24 15:32:52 +04:00
8d6a9b7f97 Add sprite sheets. 2019-12-24 15:32:42 +04:00
ae4069f9fc Match the original Pacman dimensions
Move the field up to match original Pacman
position.
2019-12-24 12:51:42 +04:00
eae226b5bb Render pellets on menu screen.
Add Level object which contains level data (in the form of
an 2D array of stateless LevelComponents), LevelLoader which loads
level data from a txt file.
2019-12-24 02:27:05 +04:00
e031cb4400 Add State + MenuState, use AssetManager 2019-12-24 00:59:13 +04:00
bb934b0d7c ASCII pacman level! 2019-12-24 00:56:25 +04:00
fd89c7d492 Add logo. 2019-12-24 00:11:18 +04:00
8d64ca7c36 Initial commit.
Basic window setup, sound and level assets.
2019-12-23 23:07:24 +04:00
75185a7f23 Root commit. 2019-12-23 23:03:59 +04:00