chroma_solstice/generic_player_blocker.lua

22 lines
536 B
Lua
Raw Normal View History

2026-08-11 20:29:35 -04:00
require "entity"
-- A visual boundary that only affects player movement. It deliberately stays
-- out of the ordinary collidable matrix, so moveable blocks can occupy and
-- pass through the same cell.
GenericPlayerBlocker = class("GenericPlayerBlocker", Entity)
function GenericPlayerBlocker:initialize(x, y, color, sprite, cellShape)
Entity.initialize(self, {
x = x,
y = y,
color = color,
collision = "none",
sprite = sprite,
cellShape = cellShape
})
end
function GenericPlayerBlocker:blocksPlayer()
return true
end