tdreid / pygqs

A quick start template for `pygame` projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pygqs

A quick start template for pygame projects

  1. Imports logging and sets level to INFO
  2. Imports randint() from random because so many games need dice or similar
  3. Defines RGB values as constants for 16 basic colors
  4. Imports and initalizes pygame
  5. Provides for a configurable CAPTION
  6. Provides for a configurable frame rate FPS
  7. Provides a constant to configure the name of the game
  8. Configures surface to serve as main game window — adjust HEIGHT and WIDTH as desired
  9. Sets up main game loop

About

A quick start template for `pygame` projects


Languages

Language:Python 100.0%