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
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 |