mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2025-12-14 20:11:27 +07:00
first chunk tree impl
This commit is contained in:
@@ -1 +1,14 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user