fysplane/entities/bigballpowerup.lua

20 lines
572 B
Lua
Raw Permalink Normal View History

2014-10-19 03:19:01 +00:00
Class = require 'hump.class'
require 'entities/powerup'
require 'bigballmode'
local BIGBALLPOWERUP_IMG = love.graphics.newImage("resources/graphics/bigballpowerup.png")
local BIGBALLPOWERUP_QUAD = love.graphics.newQuad(0, 0, 32, 32, 32, 32)
BigBallPowerUp = Class{
__includes = PowerUp,
init = function(self, x, y, level)
PowerUp.init(self, x, y, level, 20, 16)
2014-10-19 03:19:01 +00:00
self.mode = BigBallMode()
end;
draw = function(self)
love.graphics.draw(BIGBALLPOWERUP_IMG, BIGBALLPOWERUP_QUAD, self.x, self.y, self.angle, 1, 1, 16, 16)
end;
}