Skip to content
/ ForgeS Public

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

License

Notifications You must be signed in to change notification settings

Aermoss/ForgeS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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