/pygame_framework

This project is a first iteration of a framework for pygame development. This provide code structure and the ability to use scenes in an efficient way.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

pygame_framework

This project contain a simple frawework for pygame developement.

application_template_screenshot

Features

Feature of this framework:

  • Handle Scene (pages within an app)
  • pgame mechanics on a repetable template (update, events, draw)
  • Handle main "quit" event
  • Basic Button mechanism
  • Basic Menu mechanism

Installation

The framework requires the following libraries

  • pygame>=2.0.1
  • singleton3>=1.0

Example

The example shows: (To verify)

  • How to initialize a project
  • Handle event
  • Use mouse position on a click event
  • Separate game logic from display logic
  • Render a surface
  • Specify a "Frame Per Second" render
  • Define a Scene will all of the above
  • Define a handy color class with most commun colors defined