mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2026-07-21 23:56:50 -06:00
Update version to 0.0.2
Add System addition and removal Changed implementation for Entity removal Change README and example code
This commit is contained in:
@@ -51,7 +51,7 @@ local talkingSystem = System(
|
||||
print("Talking system has started.")
|
||||
end,
|
||||
function (p, delta)
|
||||
print(p.name .. ", who weighs " .. p.mass .. "pounds, says, " .. p.phrase)
|
||||
print(p.name .. ", who weighs " .. p.mass .. " pounds, says, \"" .. p.phrase .. "\"")
|
||||
end,
|
||||
personAspect
|
||||
)
|
||||
@@ -61,7 +61,7 @@ local world = World(talkingSystem)
|
||||
local joe = {
|
||||
name = "Joe",
|
||||
phrase = "I'm a plumber.",
|
||||
mass = 150,
|
||||
mass = 250,
|
||||
hairColor = "brown"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user