Warning: Undefined array key 0 in /home/permad6/public_html/wp-content/themes/maskitto-light/single-activity.php on line 13

Warning: Attempt to read property "term_id" on null in /home/permad6/public_html/wp-content/themes/maskitto-light/single-activity.php on line 13
Ray Casting Game Engine Demo
[device]This applet requires a desktop browser and Java plug in.[/device]

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