Skip to content
/ Forge Public

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

License

Notifications You must be signed in to change notification settings

Aermoss/Forge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

from aerforge import *

forge = Forge()

@forge.event
def update():
    pass

forge.run()

Creating a rect

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

forge.run()