Example for students Example method whereby a sprite interacts with a wall in a game. Sprite move +3 oriented to directionality. If wall touched, then move -4 steps (so directly opposite to their current direction)
The bumping in the wall is an illusion. It feels to the player like the sprite is bumping into a wall.