I am trying to make a game using libgdx framework
problem:
Initially screen is blank,then blue ball enters the screen from top, when blue ball reaches middle red ball enters,when blue ball reaches the end of screen blue ball is discarded red ball reaches middle ,another ball that is green ball enters the screen….but i need these balls to enter the screen at random and each ball is treated as separate object ,ie red ball belong to class red,blue ball belong to class blue and balls must enter screen in random not in cycle,can you suggest algorithm to to implement this?If you have code that would be great
i have update() method to update the objects on screen
and a render() method to draw objects on screen
sorry for my bad english…my native language is malayalam