Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aermoss/forge
A simple 2D game engine written in Python with PyGame.
https://github.com/aermoss/forge
2d engine game game-engine game-engine-2d pygame python sdl
Last synced: 3 months ago
JSON representation
A simple 2D game engine written in Python with PyGame.
- Host: GitHub
- URL: https://github.com/aermoss/forge
- Owner: Aermoss
- License: mit
- Created: 2021-09-23T20:28:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T14:47:08.000Z (12 months ago)
- Last Synced: 2024-10-31T22:04:42.785Z (3 months ago)
- Topics: 2d, engine, game, game-engine, game-engine-2d, pygame, python, sdl
- Language: Python
- Homepage:
- Size: 169 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Forge Engine
A simple 2D game engine written in Python with PyGame.## Getting Started
1) Install Python
2) Open cmd/terminal and type:```
pip install aerforge
```## Examples
# Creating a window
```python
from aerforge import *forge = Forge()
@forge.event
def update():
passforge.run()
```# Creating a rect
```python
from aerforge import *forge = Forge()
class Rect(Entity):
def __init__(self):
super().__init__(
window = forge,
shape = shape.Rect,
width = 20,
height = 20,
x = 0, y = 0,
color = color.Color(0, 255, 255)
)self.center()
rect = Rect()
@forge.event
def update():
passforge.run()
```