Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ghosts with primitive chase AI
Added a set of four semi-transparent ghost snakes that chase Pacsnake's position with random mistakes. ? The ghost snakes themselves were pretty easy to put in - they're just another kind of snake that moves through the space. Thinking about how they would choose their movement involved me reading an in-depth article about Pacman ghost AI from here: http://gameinternals.com/post/2072558330/understanding-pac-man-ghost-behavior And eventually deciding (I think?) that it's overkill to try to replicate the actual AIs from Pacman. But that's not settled yet and I think I'll need to write some stuff about that. ? One issue that actually playing around in the level with the ghosts is that I'm much less clear on the dynamics between Pacsnake and the ghosts. Does Pacsnake eat them by eating a powerpill and changing the mode? Or do they dies on contact with Pacsnake's body? (and each other's?) in which case the 'power' of the power pellet is about being longer and thus potentially more dangerous to the ghosts (but then also to yourself). ? The fact the ghost snakes are semitransparent (and known as ghosts) makes it seem impossible that they could crash into the Pacsnake's body. But then on the other hand in Pacman he can EAT them and they can KILL him, so they clearly have SOME kind of tangibility and connection to the physical realm right? They can't even pass through walls. Are those things EVEN GHOSTS AT ALL? So there's some decision making involved in that. If everyone can collide with everyone's body I think it will lead to utter carnage? But that may be funny... it may be that pulling the gameplay _away_ from Pacman original is a good solution to the issues around Ghost AI? (Although I may be shooting myself in the foot massively? Although I guess ghosts would just respawn in their little closet so it would be fine? Actually it seems complicated.)
- Loading branch information
Showing with 96 additions and 23 deletions.