BryceMehring / Hexel

Retro Tower Defense Game
https://brycemehring.github.io/projects/hexel/
MIT License
5 stars 2 forks source link

Load maps and other information from files #13

Closed Kioljin closed 9 years ago

Kioljin commented 9 years ago

Different levels should be stored via some file system.

JSON or Lua files could be used to store the level data.

BryceMehring commented 9 years ago

How to load/save Lua files: http://www.lua.org/pil/12.html

BryceMehring commented 9 years ago

moai can convert between Lua and JSON: http://getmoai.com/docs/class_m_o_a_i_json_parser.html

BryceMehring commented 9 years ago

MOAIGrid has methods to load and store tile data via streamTilesIn and streamTilesOut: http://getmoai.com/docs/class_m_o_a_i_grid.html