I'm making a 2d game with libgdx.
To be be clear in the question My code looks as follows:
public Class Game(){
public void Mainloop{
update();//to update some values
render();//to render the values on the screen
}
public int showmessageOnthescreen(List<String> listOfChoice){
}
}
As you know the game loop don't stp rendering.
sometimmes showmessageOnthescreen will be called to ask the user to choose a String from a list of string.
My question is how can i ask the user to choose from the list.