Raycaster

Hi,

I just wanted to show this raycasting example. It’s not actually written in java but in naalaa, but naalaa can compile your programs to java applets.

Normal version: http://www.naalaa.com/rcapplet/test.html

Using the 2x mode for larger view: http://www.naalaa.com/rcapplet/test2x.html

Hi

I have just tested it, it works fine. I will test it at home on a worse machine to check if it is still fast :wink:

There is a similar raycasting solution there (the ancestor of my game):
http://stahlworks.com/games/aa1/index.html

Do you plan to use hardware acceleration? What is the license of your editer?

Naalaa is a freeware basic like language. It’s meant for native games for windows (and linux), but I added the compile to java-thing because I can’t stand using java or flash myself, and I really want to be able to create browser games. Native naalaa programs don’t use hardware acceleration, so I don’t think I’ll let the applet version do so either.

Here’s some other examples written in naalaa:

http://www.naalaa.com/tm_test/tanks.html - shoot other tanks with your tank …
http://www.naalaa.com/tm_tests/BrickBonker.html - breakout
http://www.naalaa.com/raster640x480/rastertest.html - mario kart/mode7 test
http://www.naalaa.com/tm_tests/tm_platformer.html - platform game

All these things use libraries that isn’t available in the current version of naalaa, but the next one will be released real soon. There are some more examples at http://www.naalaa.com.

(sorry for all the links)

I tried your raycaster and TUER. Very nice stuff :slight_smile:

OK, maybe my last post wasn’t that interesting. But as I’m working on the documentation for the next release of the naalaa programming language, I’ve written some example programs. Here you can find an actual GAME using the raycasting library:

http://www.naalaa.com/rc_example4/raycasting4.html (Programming, graphics, music and sfx by Marcus, copyright naalaa etc.)

Shoot the badbots and pick all the golden crosses to finish a level.