desbyc 2019-03-17 14:21 (Edited)
Here a new POC of Pac-Man with only one ghost.
With a much better AI.
To learn how the AI works, watch this video:
Thanks to Timo for getting it to work.
was8bit 2019-03-17 15:28
... one thing to add, when I stop pushing on the directions I ought to still keep moving in the last direction... that way, am in still moving in one direction, I can start pushing in next direction coming up, and just slide into that direction as soon as I get to it..
Example, starting from the top left corner, i push right which makes me go right.. imthen immediatly push down.. down is coming up soon and my pacman SHOULD keep going right as I'm holding the DOWN button, and then as soon as down is available my pacman should go down as I've been holding the down button as my pacman was still going right..
Pacman should only stop if it reaches a wall in it's autodirection and no button is pushed or the button you are pushing isn't avaiable
Pacman should continue going in its autodirection unless the above condition or as its moving the button you are pushing becomes available..
As is, it's rather hard to navigate your turns as i keep getting stuck short on the corners..
desbyc 2019-03-17 16:06
Yes, a lot of work to do. I think i dont want to make a clone.
Todos: better AI, some features, better collision detection.
Tinycloud778 2019-03-17 17:14
Wow really nice I like it
was8bit 2019-03-17 19:17 (Edited)
I agree about not making a clone as this game is everywhere, so a personalized one is always fun :) but seriously the movement needs to be slicker,,, you "could" try allow the diagonal buttons but that would be trickier than doing automovent of last movement moved... I only mention it as I'm always getting caught on the corners when I'm trying to make a turn...
Awesomenesspeanut 2019-03-19 10:53
I won yay
was8bit 2019-03-19 13:05
Vance 2019-03-21 23:31
YoItsSick123456 2019-04-03 02:18
Finally! A perfect Pac-Man port.
It’s not Pac-Man without a maze.
desbyc 2020-02-16 19:54
Tinycloud778 2020-02-16 23:50
was8bit 2020-02-17 04:58