Skip to content

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.

License

Notifications You must be signed in to change notification settings

jsomville/pygame_framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages