Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player is stuck on top of ladders (Monster Kong) #56

Open
snumumrik opened this issue Sep 13, 2018 · 2 comments
Open

player is stuck on top of ladders (Monster Kong) #56

snumumrik opened this issue Sep 13, 2018 · 2 comments

Comments

@snumumrik
Copy link

# pseudocode of event handler from MonsterKong
if event.key == "up":
    player.y -= player.getSpeed() / 2
    if not player.checkCollision(ladderGroup):  # why?
         player.y += player.getSpeed() / 2
@psusmit
Copy link

psusmit commented Oct 27, 2018

r u running it on linux ,mac or windows ??

@snumumrik
Copy link
Author

windows, python3.6, after testing with "keyboard agent" i removed this condition

if len(self.newGame.Players[0].checkCollision(self.ladderGroup)) == 0 or len(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants