Legend of the Gold Box... A game written for the LOWREZJAM 2018 game jam
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
819B

  1. from .. import gbe
  2. from ..nodes import *
  3. _TREE = None
  4. def get():
  5. global _TREE
  6. if _TREE is None:
  7. root = gbe.nodes.NodeSurface("MAIN_MENU")
  8. root.scale_to_display = True
  9. root.keep_aspect_ratio = True
  10. root.align_center = True
  11. root.set_surface((64, 64))
  12. root.set_clear_color((0,0,0,0))
  13. menu = NodeOptions("Options", root)
  14. #menu.add_option("IttyBitty.ttf", 4, "Game", "SCENECHANGE", {"scene":"Game", "hold":False})
  15. menu.add_option("IttyBitty.ttf", 4, "Editor", "SCENECHANGE", {"scene":"Editor", "hold":False})
  16. menu.add_option("IttyBitty.ttf", 4, "Quit", "QUIT")
  17. menu.position = (10, 14)
  18. overlay = gbe.nodes.NodeSprite("Overlay", root)
  19. overlay.image = "MainMenu_Logo.png"
  20. _TREE = root
  21. return _TREE