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

Report as inappropriate.

MrCohen
MrCohen presents ...

2020/1/14

Example of Pausing Using Worlds

In this example, an entire GameWorld (here just a bee, but could be a whole complex world) is "paused" while control is passed to a PauseWorld. PauseWorld can call methods on GameWorld. GameWorld persists, but does not continue to act, until pause world passes control back.

Press space to pause, and press up arrow to call the flipBee function while paused.

909 views / 557 in the last 7 days

1 vote | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

Blazer