Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Alien = class()
- 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
- function Alien:draw()
- self.position.x = self.position.x + 1.66
- sprite("Small World:Base Large",self.position.x,self.position.y)
- end
- function Alien:touched(touch)
- -- Codify does not automatically call this method
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement