Skip to content

Instantly share code, notes, and snippets.

@aalok74
aalok74 / 1aTabOrder
Created August 29, 2013 03:25
Project RPG Release v0.0.5 -RPG game
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
@aalok74
aalok74 / 1aTabOrder
Created August 24, 2013 20:07
Proj Firecracker Release v0.0.1 -AutoGist your Codea projects!
Proj Firecracker Tab Order Version: 0.0.1
------------------------------
This file should not be included in the Codea project.
@aalok74
aalok74 / GenerateMap
Last active December 19, 2015 23:19
2nd Rain Effect done by drawing random lines. Also added a splash animated tileset but could use some tweaks to the display and speed of the animation.
-- 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
@aalok74
aalok74 / GenerateMap
Created July 18, 2013 22:23
Added rain effect via shader to Slashin8r RPG project. This will use shaders to simulate rain.
-- 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