csivitu / ArcadeGames

MIT License
7 stars 38 forks source link

Movement ( Snake - Python ) #28 #70

Closed RupaakSrinivas closed 2 years ago

RupaakSrinivas commented 2 years ago

@mekken2 @Subham-Panda @ashikka @nimishjn @3xpl0itk1t

fix: When both W and S are pressed together the games stops, Since W and S are "UP" and "DOWN", the opposite directions cannot be pressed together, To remove this error a simple if statement is added when changing thee direction, to check if the current direction is either "UP" or "DOWN"