New answers tagged

1

This is obvious from the semantics of Java. Unlike C# structs, Java class instances are reference types. When you write: Vector2 a = new Vector2(0, 0); Vector2 b = a; ...you have not copied the vector a into b, creating two zero vectors. You have copied a reference to the same vector into b, so now you have two aliases that refer to the same logical object /...


1

Stumbled on this old question and the short answer is “no”. Put only things in there that make sense. If you have something like a tilemap you don't need each tile to be an entity and iterate over that each frame. You could simply pass something like Tile[][] to a RenderSystem to integrate drawing entities alongside it. The same goes for Gui, just hand it ...


Top 50 recent answers are included