fysplane/entities/chaingunpowerup.lua

20 lines
580 B
Lua
Raw Permalink Normal View History

2014-10-18 22:46:27 +00:00
Class = require 'hump.class'
require 'entities/powerup'
2014-10-19 03:19:01 +00:00
require 'chaingunmode'
2014-10-18 22:46:27 +00:00
local CHAINGUNPOWERUP_IMG = love.graphics.newImage("resources/graphics/chaingunpowerup.png")
local CHAINGUNPOWERUP_QUAD = love.graphics.newQuad(0, 0, 32, 32, 32, 32)
ChaingunPowerUp = 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 = ChaingunMode()
2014-10-18 22:46:27 +00:00
end;
draw = function(self)
love.graphics.draw(CHAINGUNPOWERUP_IMG, CHAINGUNPOWERUP_QUAD, self.x, self.y, self.angle, 1, 1, 16, 16)
end;
}