Skip to main content

A game engine made with SDL 2.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

forges-0.0.8.tar.gz (1.2 MB view details)

Uploaded Source

File details

Details for the file forges-0.0.8.tar.gz.

File metadata

  • Download URL: forges-0.0.8.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for forges-0.0.8.tar.gz
Algorithm Hash digest
SHA256 70cbb23c967a93b89489ce7a45070524cb13a1e37f80167540090f7ae3ef8902
MD5 9429bc8a703b30f1fc387e9afe7d57ff
BLAKE2b-256 6f82f5865a8646aa057d96f3612b8c6b3ca45f8c4025dc12332f628484d7fb76

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page