Chapter 1. Sharing your scenarios

In this section, we will not introduce new programming techniques, but rather go on a quick detour to discuss how you can share what you have created with others. The “others” may be your friend sitting next to you, or another Greenfoot programmer on the other side of the world. In these times of the global Internet this does not make much difference anymore.

Exporting your scenario

When you have finished writing a scenario—maybe a game or a simulation—you may want to enable others to use it. Those users should have the opportunity to start (and restart) the game, but they do not need access to the class diagram or the source code. They should not modify the game, instead they just use it.

In Greenfoot, this is done ...

Get Introduction to Programming with Greenfoot: Object–Oriented Programming in Java™ with Games and Simulations, First Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.