how to make a game endless | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to make a game endless

plz let me know

1st Mar 2020, 6:41 AM
BRAINIE
BRAINIE - avatar
1 Answer
0
Use a loop to make it keep going. OK, seriously there are few ways depending on the type of game. You can use an algorithm to set up each level, ie function setupLevel(int level); Then increase the level each the player passes 1. This strategy would work well for a space invaders style game (and others).
1st Mar 2020, 6:57 AM
Jared Bird
Jared Bird - avatar