What does this line likely do in a game loop?
player.position += velocity;
- Move the player object
- Render a sprite
- Load a texture
- Pause the game
Updating a player's position is a common movement step in a game loop.
Play Game Dev ▸
player.position += velocity;