Implement first enemy, bullet damage and collision.

This commit is contained in:
Anna Rose Wiggins 2023-09-30 15:19:04 -04:00
parent 032cc0a2ed
commit 4aa4c129dc
7 changed files with 82 additions and 26 deletions

14
src/ika.lua Normal file
View 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