Aermoss / ForgeS

A simple 2D game engine written in Python with SDL2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ForgeS[DL] Engine

A simple 2D game engine written in Python with SDL2.

Getting Started

  1. Install Python
  2. Open cmd/terminal and type:
pip install forges

Examples

Creating a window

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()

Creating a cube

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()

About

A simple 2D game engine written in Python with SDL2.

License:MIT License


Languages

Language:Python 100.0%Language:Batchfile 0.0%