mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-13 11:38:15 +07:00
15 lines
283 B
Lua
15 lines
283 B
Lua
local evolved = require 'evolved'
|
|
|
|
local registry = evolved.registry()
|
|
|
|
local fragments = {
|
|
position = registry:entity(),
|
|
velocity = registry:entity(),
|
|
}
|
|
|
|
do
|
|
local entity = registry:entity()
|
|
entity:insert(fragments.position)
|
|
entity:insert(fragments.velocity)
|
|
end
|