Live data from Hacker News

Show HN: 3D shooter in your terminal using raycasting in Awk

github.com

21–30 of 57 posts

Re: Show HN: 3D shooter in your terminal using raycasting in Awk

#21
This is beautiful.

I'm reminded of an administration tool I wrote using AWK and ANSI command sequences. It was the most powerful programming language available on the machines available to me for that project. It worked great, but in the end meant that I had to fly back out to that site every time it needed maintenance or new features as nobody else there knew AWK.

Re: Show HN: 3D shooter in your terminal using raycasting in Awk

#22
General greatness aside, I have to say that's the best quality awk code I've seen. Too many people treat writing awk like picking up after your dog - something to get done quickly, when you have to. Which leads to write-only line noise code, which leads to people treating awk like picking up...

Re: Show HN: 3D shooter in your terminal using raycasting in Awk

#25
post #14
post #13

It's amazing what you can do in so few lines of code. If you have the time you ought to do a tutorial on how to make this sort of game, it would be a great read.

There is a great tutorial (it's actually a series of them) which I used: http://lodev.org/cgtutor/raycasting.html It's old and C++ but explains raycasting very well. And there is also a similar project in just 265 JS lines: http://www.playfuljs.com/a-first-person-engine-in-265-lines/

Thanks, I'll check it out.

Re: Show HN: 3D shooter in your terminal using raycasting in Awk

#26
post #7

This is hilarious. Is there any technical reason it couldn't have been written twenty years ago?

I guess 20 years ago CS students weren't told to "write a Doom-like game" as an awk homework =)

Well, there were those bored days with a TI-83... shudders at TI-BASIC
Post reply on HN