tiny-ecs-love-template/scenarios.lua

23 lines
474 B
Lua

local scenarios = {}
---@param world World
function scenarios.default(world)
-- TODO: Add default entities
end
---@param world World
function scenarios.textTestScenario(world)
world:addEntity({
position = { x = 0, y = 600 },
drawAsText = {
text = "Hello, world!",
style = TextStyle.Inverted,
},
velocity = { x = 240, y = -500 },
mass = 1,
decayAfterSeconds = 10,
})
end
return scenarios