diff options
| author | cursed22bc <admin@pixeldawn.org> | 2026-03-10 21:26:24 +0200 |
|---|---|---|
| committer | cursed22bc <admin@pixeldawn.org> | 2026-03-10 21:26:24 +0200 |
| commit | 70b6d2a335a40ae60e990cc5f37b828ed9dbf526 (patch) | |
| tree | 025b946feae41782f2cddb57e444e05cc6f9ac39 /tilemap.lua | |
| parent | a64d77bc12cadb3989a7faf094adc1d5c581d565 (diff) | |
pickups
Diffstat (limited to 'tilemap.lua')
| -rw-r--r-- | tilemap.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tilemap.lua b/tilemap.lua index f706e55..72a186e 100644 --- a/tilemap.lua +++ b/tilemap.lua @@ -3,6 +3,7 @@ local Liquid = require("liquid") local LiquidSurface = require("liquidSurface") local Spike = require("spike") local TextTrigger = require("textTrigger") +local Pickup = require("pickup") local Tilemap = {} Tilemap.__index = Tilemap @@ -56,6 +57,7 @@ function Tilemap:new(mapPath, tilesets) self.entitiesLiquidSurfaces = {} self.entitiesSpikes = {} self.entitiesTextTriggers = {} + self.entitiesPickups = {} self.layerBackground = nil self.layerDecorationBackground = nil self.layerDecorationForeground = nil @@ -142,6 +144,8 @@ function Tilemap:new(mapPath, tilesets) table.insert(self.entitiesLiquidPolygons, Liquid:new(entity)) elseif name == "liquid_surface" then table.insert(self.entitiesLiquidSurfaces, LiquidSurface:new(entity)) + elseif name == "pickups" then + table.insert(self.entitiesPickups, Pickup.new(entity)) end end end @@ -175,6 +179,10 @@ function Tilemap:getEntitiesTextTriggers() return self.entitiesTextTriggers end +function Tilemap:getEntitiesPickups() + return self.entitiesPickups +end + function Tilemap:getEntitiesCameraBorders() return self.entitiesCameraBorders end |
