blob: 8afaf56118314b4e05b4017eac3a8421d7e28361 (
plain)
1
2
3
4
5
6
7
8
|
FF::Scn::Render.add(
FF::Sys.new('UpdateBoidSprite', priority: 98) do
FF::Cmp::Boid.each do |boid|
boid.entities[0].components[FF::Cmp::Sprite][0].props[:x] = boid.x
boid.entities[0].components[FF::Cmp::Sprite][0].props[:y] = boid.y
end
end
)
|