Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

A template script to setup a window

Justus edited this page Apr 18, 2025 · 10 revisions

from data.modules.log import LOG from data.modules.constants import * from data.modules.ui.ui_element import UIM from data.modules.app import Application LOG.tobash = False

`class App(Application): def init(self): super().init()

def run(self):
    while self.is_running:
        GLOBAL_DELTA_TIME.before()
        self.CLK.tick(60)
        self.window.surface.fill((0,0,0))
        UIM.render_queue(self)
        self.update()
        GLOBAL_DELTA_TIME.after()`

if __name__ == "__main__": APP = App() APP.run()

Clone this wiki locally