Package pajammin :: Package entity
[show private | hide private]
[frames | no frames]

Package pajammin.entity

Game objects, such as turtles, platforms, doors, and the player. Each type of game level object is defined using a subclass of Entity; and each individual game-level object is represented by a single instance of one of those subclasses.

Each entity has a list of bodies, specifying what space is taken up by that entity. (Most entities have exactly one body, but there are some exceptions.) Each entity also has a list of sprites, defining how the entity should be displayed on-screen.
Submodules
  • agent: Characters in the world, such as turtles, snakes, and the player's avatar.
    • agent: Characters in the world, such as turtles, snakes, and the player's avatar.
    • avatar: The main character's avatar.
    • flyer: Agents that can fly.
    • walker: Agents that can walk and jump.
  • entity: The base class for game objects, such as turtles, platforms, doors, and the player.
  • environ: Entities that make up the environment, such as the ground, walls, and platforms.
  • mark: Short-lived entities that consist of a single sprite, whose purpose is to show that some event occured (e.g., an explosion or an attack).
  • projectile: Entities that represent 'projectiles,' such as fireballs or bullets.