map select
This commit is contained in:
11
source/scripts/MapCard.lua
Normal file
11
source/scripts/MapCard.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
local pd <const> = playdate
|
||||
local gfx <const> = Graphics
|
||||
|
||||
class('MapCard').extends(gfx.sprite)
|
||||
|
||||
function MapCard:init(x, y, map)
|
||||
self:setImage(gfx.image.new('assets/images/maps/map_' .. map.id .. '.png'))
|
||||
self:setCenter(0, 0)
|
||||
self:moveTo(x, y)
|
||||
self:add()
|
||||
end
|
Reference in New Issue
Block a user