Skip to content

LeonardoFerrisi/simplepygamemenus-gitrepo

Repository files navigation

simplepygamemenus

A package for making simple menus for your python games!

  • By Leonardo Ferrisi

Installation

Install using

pip install simplepygamemenus


Documentation / API

local

webpage

Demo / Example:

See our Demo File


Features:

  • Make simple pygame menus

Usage:

Create a main menu using the 'Menu()' construtor

Example:
    myMenu = Menu(title="MyMainMenu")

Add buttons using:

myMenu.add_button(label='button text', x, y, fontsize, function=<function to perform>)

Example:
    if you have added a second menu, you can switch to it using your new button using the:
        
    `menuName.run_menu` function

Example2:

   myMenu = Menu(title="MyMainMenu")
   myOtherMenu = Menu(title="myOtherMenu")
   myMenu.add_button(label='button text', x, y, fontsize, function=myOtherMenu.run_main)

I'll add more soon, see the example below!

  • Leonardo

Extra Info:

About

A package for making simple menus for your python games!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages