This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Project RPG Tab Order Version: 0.0.5 | |
------------------------------ | |
This file should not be included in the Codea project. | |
#Main | |
#Characters | |
#Events | |
#Images | |
#Items | |
#Map1 | |
#Map2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Proj Firecracker Tab Order Version: 0.0.1 | |
------------------------------ | |
This file should not be included in the Codea project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- GenerateMap | |
-- generates the current map if it has not already been generated | |
function generateMap(map, tilesheet, tileWidth, tileHeight, animation) | |
local mm = {} -- table to store our meshes | |
local maxy,maxx = #map,#map[1] -- size of 2D map | |
for y,_ in ipairs(map) do | |
for x,t in ipairs(map[y]) do | |
local sheet = tilesheet[t] | |
if t ~= 0 then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- GenerateMap | |
-- generates the current map if it has not already been generated | |
function generateMap(map, tilesheet, tileWidth, tileHeight, animation) | |
local mm = {} -- table to store our meshes | |
local maxy,maxx = #map,#map[1] -- size of 2D map | |
for y,_ in ipairs(map) do | |
for x,t in ipairs(map[y]) do | |
local sheet = tilesheet[t] | |
if t ~= 0 then |