Raycast is a very simple Javascript-based 2D application
that showcases... well, the ancient technique of ray-casting.
It's basically a web application that runs on Node.js.
- Node.js
- npm
Before being able to run the web app, the Node package needs to
(locally) install its dependencies.
In order to do that, run "npm install
" in your shell.
To start the server, run "node index.js <PORT>
" or "node . <PORT>
"
where <PORT>
is the port you want the server to listen to.
The default port is 80, and common ports usually need the program to
be run as root / administrator.
To use the application, use your web browser to visit the server.
For example, if the server has been started using the command "node . 3000
",
the application's URL is http://localhost:3000/raycast/index.html
, but
visiting http://localhost:3000/
is supposed to redirect you to the
correct page.
If you want to specify a resolution, use the "res
" query field, for
example using the URL
"http://localhost:3000/raycast/index.html?res=1600x900
".