Which is faster, creating an array for each game object's attributes or creating a constructor With all the attributes

后端 未结 0 1293
轻奢々
轻奢々 2020-12-19 00:59

So i have a particles in my "Falling sand" simulation game, which are stored in array(grid) and some of this particles contains information like id (Water, Sand e

相关标签:
回答
  • 消灭零回复
提交回复
热议问题