pygamelib - documentation¶
- actuators
- assets
- base
- board_items
- pygamelib.board_items.BoardItem
- pygamelib.board_items.BoardItemVoid
- pygamelib.board_items.BoardComplexItem
- pygamelib.board_items.BoardItemComplexComponent
- pygamelib.board_items.Movable
- pygamelib.board_items.Projectile
- pygamelib.board_items.Immovable
- pygamelib.board_items.Actionable
- pygamelib.board_items.Character
- pygamelib.board_items.Player
- pygamelib.board_items.ComplexPlayer
- pygamelib.board_items.NPC
- pygamelib.board_items.ComplexNPC
- pygamelib.board_items.TextItem
- pygamelib.board_items.Wall
- pygamelib.board_items.ComplexWall
- pygamelib.board_items.Treasure
- pygamelib.board_items.ComplexTreasure
- pygamelib.board_items.Door
- pygamelib.board_items.ComplexDoor
- pygamelib.board_items.GenericStructure
- pygamelib.board_items.GenericActionableStructure
- pygamelib.board_items.Tile
- constants
- engine
- gfx
- Credits
- History
Forewords¶
This python3 module is a base for the programming lessons of the Hyrule Astronomy Club. It is not meant to be a comprehensive game building library.
It is however meant (and used) to teach core programming concept to kids from age 6 to 13.
Introduction¶
First of all, his module is exclusively compatible with python 3.6+ (f-string rules).
The core concept is that it revolve
around the Game
object,
the Board
object and the
derivatives of board_items.
Here is an example of what the current version allow to build:
- The base game makes use of:
- The main “game engine” (gamelib.Game.Game)
- Many different types of structures (from gamelib.Structures), like:
- Wall (well the walls…),
- Treasure (gems and money bag),
- GenericStructure (trees),
- GenericActionnableStructure (hearts and portals).
- Game()’s menu capabilities.
- Player and NPC (from gamelib.Characters)
- Inventory (from gamelib.Inventory)
- Player and Inventory stats
- Simple actuators (gamelib.SimpleActuators) like:
- RandomActuator (NPCs in level 2),
- PathActuator (NPCs in level 1).