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.
Show HN: 3D shooter in your terminal using raycasting in Awk
21–30 of 57 posts
Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#22Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#23Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#24PS: You need gawk to run this.
Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#25It'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/
Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#26Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#27Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#28cmd = "bash -c 'read -n 1 input; echo $input'"
to
cmd = "saved=$(stty -g); stty raw; var=$(dd bs=1 count=1 2>/dev/null); stty \"$saved\"; echo \"$var\""
all credit to izabera from #bash on freenode
Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#29Re: Show HN: 3D shooter in your terminal using raycasting in Awk
#30This could actually be used to build a file explorer, not sure for what, but it would be fun to explore directories this way.