0
The purpose of loops
I know loops is to loops our code but what is it for ?
3 Réponses
+ 3
In a real-world game application development context, loops are actually useful.
For example if you were to make a game that spawn monsters, and you want to spawn 5 of them, instead of making 5 line of codes over again, you can simply just make a loop that loops itself 5 times. The good thing about it is that, you can reuse the loop and you can modify it too! Meaning that if you suddenly want to spawn 10 of them, you can just change certain values.
0
love u k2 shape
0
oh I never thought about that thanks :D