|
|
|
|
|
by Matheus28
1469 days ago
|
|
You can extend it to practical use by imagining these terms as: entity[123].active = true
entity[123].x = 4
entity[123].y = 8
Then later... entity[123].active = false
And with special rules such that if `active = false`, no other properties of the entity needs to be encoded. And if `active = true` is decoded, it sets all properties to their default value. Then you get a fairly simple way to transmit an entity system. Of course you'd want to encode these properties in a much smarter way for efficiency. But the basic idea is there |
|