bouncing_box.menu module

A module that contains the class and functions for the Menu.

class Menu(screenDim)

Bases: object

This class contains all of the functions and variables that is used by the Menu.

draw(screen)

A function to draw the Menu to the screen.

Parameters

screen (class pygame.Surface) – The screen to draw to.

input(event)

A function to handle the Menu input.

Parameters

event (class Event) – The input event.

Returns

A true/False value for if the game should continue.

Return type

bool