Legend of the Gold Box... A game written for the LOWREZJAM 2018 game jam
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

1234567891011121314151617181920212223242526272829303132
  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. gmap = NodeGameMap("gm", root)
  14. gmap.set_resources("environment.json", "walls.json")
  15. gmap.set_render_mode(1)
  16. gmap.load_map("main", False)
  17. mwalker = NodeMapWalker("MapWalker", gmap)
  18. menu = NodeOptions("Options", root)
  19. #menu.add_option("IttyBitty.ttf", 4, "Game", "SCENECHANGE", {"scene":"Game", "hold":False})
  20. menu.add_option("IttyBitty.ttf", 4, "Editor", "SCENECHANGE", {"scene":"Editor", "hold":False})
  21. menu.add_option("IttyBitty.ttf", 4, "Quit", "QUIT")
  22. menu.position = (10, 14)
  23. overlay = gbe.nodes.NodeSprite("Overlay", root)
  24. overlay.image = "MainMenu_Logo.png"
  25. _TREE = root
  26. return _TREE