Skip to content

Instantly share code, notes, and snippets.

View kennex-software's full-sized avatar

Kennex kennex-software

  • Kennex Software
  • Pittsburgh, PA
View GitHub Profile
@kennex-software
kennex-software / state_engine.py
Created August 17, 2021 12:38 — forked from iminurnamez/state_engine.py
Simple state engine example
#This code is licensed as CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode).
# read:: https://gameprogrammingpatterns.com/state.html
import sys
import pygame as pg
class Game(object):
"""