A simple 2D game engine written in Python with SDL2.
- Install Python
- Open cmd/terminal and type:
pip install forges
from forges import *
class Window(forges.Window):
def __init__(self):
super().__init__()
def update(self):
pass
def on_quit(self):
pass
def run(self):
forges.run()
if __name__ == "__main__":
window = Window()
window.run()
from forges import *
class Cube(Entity):
def __init__(self):
super().__init__()
self.center()
def update(self):
pass
class Window(Window):
def __init__(self):
super().__init__()
self.cube = Cube()
def update(self):
pass
def on_quit(self):
pass
def run(self):
forges.run()
if __name__ == "__main__":
window = Window()
window.run()