Book Image

Creative Greenfoot: RAW

By : Michael Haungs
Book Image

Creative Greenfoot: RAW

By: Michael Haungs

Overview of this book

Table of Contents (17 chapters)
Creative Greenfoot
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 6. Scrolling and Mapped Worlds

 

"Already know you that which you need."

 
 --Yoda

In Greenfoot, we can build worlds that are much larger than the confines of a single screen. Through scrolling techniques and dynamic actor generation, we can build side-scrolling games and map worlds that can seem endless. When you combine these large worlds with the techniques learned in the previous chapters, you will be able to create a truly compelling and immersive experience for your audience.

The techniques you will learn in this chapter are similar to the ones you learned in Chapter 2, Animation, for animation. We will use illusion. Through very simple techniques, we can give the appearance that the user is moving through an expansive world. In this chapter, you will learn to create the following types of worlds:

  • Dynamically generated

  • Mapped

  • Tile-based

As you learn more about Greenfoot and Java programming, you will notice repeating patterns and methods to accomplish specific tasks. While the content...