So I'm FINALLY almost done my ping pong game (kinda fun too :D), and I want to make it so that a full screen image saying "defeated" shows up when you lose. Would Greenfoot.setWorld() to a new world with a new image be the best way to do this? If it is, how can I make a reference to LoseScreen.class? Because
doesn't work and
doesn't either.
I'm sure it's not that difficult, I just need to know the syntax for what I need to do. Thanks :D!
Greenfoot.setWorld(LoseScreen);
World losescreen = LoseScreen; Greenfoot.setWorld(losescreen);