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

Report as inappropriate.

FlyingRabidUnicornPig
FlyingRabidUnicornPig presents ...

2013/10/3

FRUP's Raycast!

My Turn with Raycasting!

I really want to make some stuff with this. I'm planning to work on Doom/Wolfenstein remakes and maybe a Slender remake with this, after I learn more and figure out how to use it.

Controls:
Arrow Keys to move
Hold "r" for seizure mode (be careful with this one!)
Press "c" for cel-shaded graphics
Press "o" to change the ceiling
Hold "[" to decrease render distance (the "render" goes farther away)
Hold "'" to increase render distance (the "render" goes closer to you)
Hold "p" to increase render distance (closer to you, not implemented in Textured World)
Hold ";" to decrease render distance (away from you, not implemented in Textured World)
"wasd" to move the barrel at the first world.
"1" to decrease FOV
"2" to increase FOV

Why do I have the render distance values reversed you may ask. If the distance is farther away, it should an Increase in render distance. Well, in the way I wrote my code, it's not. You see, I'm looking at wall height, instead of wall distance, to figure out the render distance. So, the smaller the wall, the smaller the render distance, in the way I wrote my code.
Press "l" to switch to textured/untextured worlds.

Stuff to work on:
- Better collisions (glitch especially noticeable with textured walls)
- Sprites
- Change rendering distance (currently working on)
- Guns and more.

Like most scenarios, faster if you download it.

4999 views / 1112 in the last 7 days

6 votes | 0 in the last 7 days

Tags: with-source raycast

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


open in greenfoot
Your browser is ignoring the <APPLET> tag.
A new version of this scenario was uploaded on Sun Oct 06 16:56:17 UTC 2013 Improved render distance and the render limit. Change the distance with "[" and "'", change the limit with "p" and ";".
KartoffelbrotKartoffelbrot

2013/10/6

your updates spam my notifications :D
A new version of this scenario was uploaded on Sun Oct 06 19:21:08 UTC 2013 Added sprites. Added a world that shows off sprites. Added a barrel to the first world (to implement sprites with both Camera classes).
A new version of this scenario was uploaded on Sun Oct 06 19:36:25 UTC 2013 Made sprites look better, and changed the "transparent" color for sprites. New thumbnail.
A new version of this scenario was uploaded on Sun Oct 06 19:37:22 UTC 2013 Didn't like that last thumbnail, new one.
A new version of this scenario was uploaded on Sun Oct 06 19:37:54 UTC 2013 Thumbnail back to original. (I think)
A new version of this scenario was uploaded on Sun Oct 06 19:39:03 UTC 2013 Another thumbnail update (Kartoffelbrot, this is for you :D)
A new version of this scenario was uploaded on Sun Oct 06 21:44:11 UTC 2013 Was working on a quicker method of running the scenario. Instead, use "wasd" to move the barrel in the first world!
A new version of this scenario was uploaded on Sun Oct 06 22:00:52 UTC 2013 Change FOV with "1" and "2"
A new version of this scenario was uploaded on Mon Oct 07 00:46:16 UTC 2013 Added Strafing. Hold shift and right or left to strafe.

See all comments

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

Who likes this?

TheForgottenProjects JetLennit bourne Kartoffelbrot SPower Entity1037