I want to know that whether or not using Java specific code breaks cross platform utility. For example, does it matter I use Java ArrayList
or Libgdx Array
?
Using general java
collections such as the ArrayList
will not break your code, and will work properly from a functional point of view. However, usually when developing games, you want to consider the performance as well, since wasteful programming will affect your game experience. libgdx
developed their own collections exactly for that reason: to have collections that are better, performance wise. In general it is better to use libgdx
collections than the standard java
ones. Take a look at the docs for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With