Ray Casting Game Engine Demo
Share this:Share on FacebookTweet about this on TwitterShare on TumblrPin on PinterestShare on Google+


A simple raycasting engine in Java

Use the arrow keys to move around, or use I, K, J, L.
(If the keyboard is not responding, then the applet has probably lost focus,
click inside the applet to regain the focus.)
On the right side is the overhead map.
The red line shows the direction of the player.
The yellow area on the overhead map is the player’s field-of-view,
it shows the rays being ‘shoot’ by the player.

So that the source code is easier to understand, this applet has the following limitations:

  • no collision detection (you can walk through walls).
  • no texture mapping.
  • not optimized (it’s slow).
  • not using shift operators.

The source code is here.

Read how to do Ray Casting in our Ray Casting Tutorial.

This applet programmed by F. Permadi, 1997

Share this:Share on FacebookTweet about this on TwitterShare on TumblrPin on PinterestShare on Google+