This is a Lua implementation of the Ray Casting technique. It uses Love2D as the game engine framework.
Ray-casting is a technique that transforms a limited form of data (a very simplified map or floor plan) into a 3D projection by tracing rays from the view point into the viewing volume
- Download the Love2D executable from https://love2d.org/
- Run the following on the terminal on MacOS: ~/path/to/the/love2d/executable/ ~/path/to/unzipped/folder/
- Or drag and drop the folder with the unzipped code onto the Love2D executable
- More information here: https://love2d.org/wiki/Getting_Started
Love2D - Game Engine Framework
This RayCasting Engine is released under the MIT license.
This code is based on the following sources:
-
Creating pseudo 3D games with HTML 5 canvas and raycasting tutorial by Jacob Seidelin http://dev.opera.com/articles/view/creating-pseudo-3d-games-with-html-5-can-1/
-
Ray-Casting Tutorial For Game Development And Other Purposes by F. Permadi http://www.permadi.com/tutorial/raycast/index.html
-
Lode's Raycasting Tutorial by Lode Vandevenne http://lodev.org/cgtutor/index.html
-
https://github.com/krotik/gladiator_3d
./love.app/Contents/MacOS/love game