Player class

class rapidpg.types.player.Player(surfs, interval)

Bases: rapidpg.types.animation.Animated

An instance is compatible with the level manager. Note that if rapidpg.levelmgr.collision.Level.update() is not used, a player instance doesn’t have to be passed to the level manager

Parameters:
  • surfs – A list of surfaces for animation
  • interval – The interval between animation updates
move(x, y)

Alias for plr.rect.move_ip

start_jump()

This method is used by the level manager to start the jump

Previous topic

Animation helpers

Next topic

Level format

This Page