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.

1702 views / 4 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.

No Comments

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

Who likes this?

davemib123 askgriff