Skip to content

LibMGE is an open-source library created for the development of 2D programs and games in Python.

License

Notifications You must be signed in to change notification settings

MonumentalGames/LibMGE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 

Repository files navigation

MGE

Version: 1.0.0

Installing

pip install MGE

Dependencies

numpy

Example of use

import MGE

MGE.init()

window = MGE.Window(resolution=(500, 500), flags=MGE.WindowFlag.Shown)
window.frameRateLimit = 60

gif = MGE.Object2D([0, 0], 0, [500, 500])
gif.material = MGE.Material(MGE.Texture(MGE.LoadImage("./image.gif")))

while True:
    MGE.update()
    window.update()

    window.title = f"LibMGE OpenGif | FPS: {int(window.fps)}"

    if MGE.QuitEvent() or MGE.keyboard(MGE.KeyboardButton.F1):
        exit()

    gif.drawObject(window)

About

LibMGE is an open-source library created for the development of 2D programs and games in Python.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages