Skip to content

Instantly share code, notes, and snippets.

@TaoCodea
TaoCodea / Alien.lua
Created June 25, 2012 22:00 — forked from juaxix/Alien.lua
Asteroides for Codea - Free Game - XixGames
Alien = class()
-- Free game by juaxix
-- http://videojuegos.ser3d.es
-- Copyright LGPL - 11/2011
function Alien:init(avoidy)
self.position = vec2(0,math.max(math.abs(math.random(HEIGHT)-avoidy)),66)
self.angle = math.pi
self.points= 500
end
@TaoCodea
TaoCodea / SimpleMath SubEd
Created June 14, 2012 01:52
Simple math game
--# Main
displayMode(FULLSCREEN)
supportedOrientations(ANY)
-- Use this function to perform your initial setup
function setup()
w,h = textSize("Simple")
tx = 0 - w*3