I have a problem with my pygame script in which the way I check for collisions doesn’t seem to work with the x axis and presents some very frustrating and downright stupid errors. The way it works is I first check for movement in the axis of choice, here is an example in the y axis. I then get a
Tag: game-physics
how to control snake with only two keys i.e left and right
currently, i’m using all four keys to steer the snake left, right, up and down. I’m wondering how can i only use left and right key to move the snake around. can anyone guide me how to do that? Answer Define the directions as follows: 0: move up 1: move right 2: move down 3: move right When right is