Skip to content

Instantly share code, notes, and snippets.

View pootsieMopeyMoop's full-sized avatar
💭

Pootsie Mopey Moop pootsieMopeyMoop

💭
View GitHub Profile
@pootsieMopeyMoop
pootsieMopeyMoop / state_engine.py
Created June 19, 2017 07:26 — forked from iminurnamez/state_engine.py
Simple state engine example
import sys
import pygame as pg
class Game(object):
"""
A single instance of this class is responsible for
managing which individual game state is active
and keeping it updated. It also handles many of
pygame's nuts and bolts (managing the event