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

Report as inappropriate.

bourne
bourne presents ...

2013/9/26

Interior

Raycasting with thin walls, windows, multiple floors, elevators, trees, outside, wandering sprite, editor, and fading darkness

Most likely will run with better performance when downloaded.

W and S keys to move forward and back
A and D keys to turn
Q and E keys to strafe

N key to toggle wandering sprite display
M key to toggle mini map
ESCAPE key to toggle map editor

Hotkeys for Map Editor:
Q key to switch between modes.
WASD keys to scroll view.
'-' key to move down a floor.
'=' key to move up a floor.
1-4 keys to switch between Wall types.
E key to toggle between editing North or West wall of a Tile.
R and F keys to toggle NW and SE options respectively.

When editing Walls, right-click to have a delete effect


Extended from nccb's tutorial and demo found here:
http://www.greenfoot.org/scenarios/5619

The FastImage class is from Builderboy2005's scenario found here:
http://www.greenfoot.org/scenarios/1001

Demo for path finding:
http://www.greenfoot.org/scenarios/8226

Reusable GUI can be found here:
http://www.greenfoot.org/scenarios/7578

8349 views / 1162 in the last 7 days

21 votes | 0 in the last 7 days

Tags: demo with-source ray map thread path-finding bourne map-editor raycasting casting elevator

This scenario is a member of: 3D, Ray Casting


open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

SPowerSPower

2013/11/23

It's about 30 fps average; sometimes it goes up to 40 and sometimes down to 20. When I download it it's faster, of course. And great job btw!
FlicknFlackFlicknFlack

2013/11/23

i got contently 30fps and 40-50 in the elevators
bournebourne

2013/11/23

I appreciate it, and thanks!
PointifixPointifix

2014/2/27

Perfect work, i had 50 fps all the time, it took a time that i noticed the spire looks like my profil pic ;D
drhorriblejrdrhorriblejr

2014/10/5

I love the elevators! (Especially the music) What is the little white dot that moves around on floor two? Is... is it a ghost?!
NikZNikZ

2014/10/5

Press N to see it
NikZNikZ

2014/10/5

Is that Darth Vader's theme?
drhorriblejrdrhorriblejr

2014/12/30

I got 15-20 Fps. And NikZ, it's from one of the Family Guy star wars movies. (When they are in an elevator on the death star)
RidicolasRidicolas

2016/11/26

its Brocken
RidicolasRidicolas

2016/11/26

it wont work :( I open in Green Foot it Sayed Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

See all comments

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

Who likes this?

Nosson1459 darkmist255 Pointifix FireChick MrHam tbpatj Super_Hippo DoctorProfessorYoshi erdelf Zamoht Mckey RUMMAKER Busch2207 Entity1037 Builderboy2005 FlyingRabidUnicornPig JetLennit Kartoffelbrot SPower Gevater_Tod4711