2019-02-03 20:20:01 +01:00
|
|
|
local folder = "scenes.subgame.sonicboost.actors."
|
2019-02-03 20:10:35 +01:00
|
|
|
|
|
|
|
local Entity = require(folder .. "parent")
|
2019-02-03 19:54:02 +01:00
|
|
|
|
|
|
|
function Block:new(level, x, y, z, w, h, d) -- On enregistre une nouvelle entité, avec par défaut sa hitbox.
|
|
|
|
Block.super.new(self, level, "block", x-16, y-10, 0, 31, 20, d)
|
|
|
|
self.name = "block"
|
|
|
|
|
|
|
|
self:setDebugColor(255, 0, 0)
|
|
|
|
end
|
|
|
|
|
|
|
|
return Block
|