Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Does Java main class run multiple times

$
0
0
Hi guys, Can I see Javas Main class as a main loop in which everything inside will be run continuously ? This is confusing because at the start of the main class in my code sample two class objects are created and one array object. I'm not sure about the process. In GML there's a section where code is only run once, and then there are sections where scripts are continuously run. And of course if I only want code thats in the section which runs continuously to only run once I'd use a boolean.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>