Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aermoss/forges

A simple 2D game engine written in Python with SDL2.
https://github.com/aermoss/forges

engine game-development game-engine ptyhon sdl sdl2

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
``` python
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
``` python
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()
```