Implement first enemy, bullet damage and collision.
This commit is contained in:
parent
032cc0a2ed
commit
4aa4c129dc
7 changed files with 82 additions and 26 deletions
14
src/ika.lua
Normal file
14
src/ika.lua
Normal file
|
@ -0,0 +1,14 @@
|
|||
-- A squid-like enemy unit
|
||||
import "CoreLibs/object"
|
||||
import "CoreLibs/graphics"
|
||||
import "CoreLibs/sprites"
|
||||
import "entity"
|
||||
|
||||
local gfx <const> = playdate.graphics
|
||||
|
||||
class("Ika").extends(Entity)
|
||||
|
||||
function Ika:init()
|
||||
local img = gfx.image.new(30, 30, gfx.kColorBlack)
|
||||
Ika.super.init(self, img, 25)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue