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

Report as inappropriate.

danpost
danpost presents ...

2013/11/5

Paired Portal World Entry Demo

This demonstration uses 'linked' portals to control the world-switching.

The portals each hold a reference to its matching paired portal. The paired portal holds a reference to the world it happens to be in, eliminating the need for a static array of worlds. The array of worlds is only needed locally when creating the worlds and adding the portals to them.

Use arrow keys to move the main actor.
Use 'space' key to leave a trail behind the main actor.
Go to a portal to transfer to another world.

2305 views / 12 in the last 7 days

2 votes | 0 in the last 7 days

Tags: demo with-source levels danpost portals transference world_changing doors

This scenario is a member of: Demos by danpost


open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2020-10-29 19:44:36 UTC

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

Who likes this?

davemib123 askgriff