VjiaoBlack / shape-defense

TD for shapes
1 stars 0 forks source link

ECS - get rid of unique_ptr, just use static allocation in arrays #4

Closed VjiaoBlack closed 6 years ago

VjiaoBlack commented 6 years ago

Using pointers to keep track of ents and components aren't great, and using ID's aren't great either.

Pointers:

IDs:

Both:

Alternative:

I think this alternative could be better. Of course, this depends on #3 as well.

VjiaoBlack commented 6 years ago

done!