Advertisement
cwchen

Hello Pygameui

Nov 4th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. import pygame
  2. import pygameui as ui
  3. from pygameui import scene
  4.  
  5. class Home(scene.Scene):
  6.         """ Welcome screen of the game, the first one to be loaded."""
  7.         def __init__(self):
  8.             scene.Scene.__init__(self)
  9.  
  10.         def on_update(self):
  11.             pass
  12.  
  13.         def on_event(self):
  14.             pass
  15.  
  16.         def on_draw(self):
  17.             pass
  18.  
  19. ui.init('Hello, Pygameui', (800, 480))
  20. pygame.mouse.set_visible(True)
  21. ui.scene.push(Home())
  22. ui.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement