This site requires JavaScript, please enable it in your browser!
Greenfoot back
zakiprasasti
zakiprasasti wrote ...

2014/4/29

How to create messages "You Win / You Lose"

zakiprasasti zakiprasasti

2014/4/29

#
I tried to make a game, the rats eat the frog, and the snake eat the rat. if it takes a rat to the first three frogs mean a win and displays the message "You Win" but if the rat ingested by the snake first, then the dead rat and displays the message "Game Over" ==== Sorry for my english bad :(
danpost danpost

2014/4/29

#
Sounds like this: if no frogs are in the world, show win message; if no rats are in the world, show lose message. Both of these can be done in the world act method. What have you tried?
zakiprasasti zakiprasasti

2014/4/30

#
I can not describe his code, I am very newbie here, and I learned from google, can you tell me what his code? thank you.
danpost danpost

2014/4/30

#
Maybe better places to start are the Java trails Getting Started and Learning the Java language; plus the Greenfoot tutorials on the left of this page.
You need to login to post a reply.