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.

24 lines
580B

  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("Editor")
  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. gamemap = NodeGameMap("GameMap", root)
  14. gamemap.set_resources("environment.json", "walls.json")
  15. gamemap.add_layer("main", 10, 10)
  16. editor = NodeMapEditor("Editor", gamemap)
  17. _TREE = root
  18. return _TREE