Skip to content

Instantly share code, notes, and snippets.

View chumutt's full-sized avatar
🐕
arf arf arf

Chu chumutt

🐕
arf arf arf
  • TN
View GitHub Profile
@chumutt
chumutt / state_engine.py
Created May 28, 2021 20:44 — forked from NabilMak/state_engine.py
Simple state engine example
#This code is licensed as CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/legalcode).
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