diff options
| author | cursed22bc <admin@pixeldawn.org> | 2026-03-10 20:52:33 +0200 |
|---|---|---|
| committer | cursed22bc <admin@pixeldawn.org> | 2026-03-10 20:52:33 +0200 |
| commit | a64d77bc12cadb3989a7faf094adc1d5c581d565 (patch) | |
| tree | 86bc2a3876c3cd42b86772eaff755549590e57c8 /tilemap.lua | |
| parent | 9d95968c3e732be915f10841d1d659e37b3b5d03 (diff) | |
text triggers
Diffstat (limited to 'tilemap.lua')
| -rw-r--r-- | tilemap.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tilemap.lua b/tilemap.lua index 44d0db5..f706e55 100644 --- a/tilemap.lua +++ b/tilemap.lua @@ -2,6 +2,7 @@ local Entity = require("entity") local Liquid = require("liquid") local LiquidSurface = require("liquidSurface") local Spike = require("spike") +local TextTrigger = require("textTrigger") local Tilemap = {} Tilemap.__index = Tilemap @@ -54,6 +55,7 @@ function Tilemap:new(mapPath, tilesets) self.entitiesLiquidPolygons = {} self.entitiesLiquidSurfaces = {} self.entitiesSpikes = {} + self.entitiesTextTriggers = {} self.layerBackground = nil self.layerDecorationBackground = nil self.layerDecorationForeground = nil @@ -132,7 +134,8 @@ function Tilemap:new(mapPath, tilesets) table.insert(self.entitiesSpawns, entity) elseif name == "spikes" then table.insert(self.entitiesSpikes, Spike.new(entity)) - + elseif name == "text_trigger" then + table.insert(self.entitiesTextTriggers, TextTrigger.new(entity)) elseif name == "camera_border" then table.insert(self.entitiesCameraBorders, entity) elseif name == "liquid" then @@ -168,6 +171,10 @@ function Tilemap:getEntitiesSpikes() return self.entitiesSpikes end +function Tilemap:getEntitiesTextTriggers() + return self.entitiesTextTriggers +end + function Tilemap:getEntitiesCameraBorders() return self.entitiesCameraBorders end |
