Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- import pygameui as ui
- from pygameui import scene
- class Home(scene.Scene):
- """ Welcome screen of the game, the first one to be loaded."""
- def __init__(self):
- scene.Scene.__init__(self)
- def on_update(self):
- pass
- def on_event(self):
- pass
- def on_draw(self):
- pass
- ui.init('Hello, Pygameui', (800, 480))
- pygame.mouse.set_visible(True)
- ui.scene.push(Home())
- ui.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement