awk-raycaster

Games

terminal game

SHOW HN2016

Legend

awk-raycaster

3D shooter in your terminal using raycasting in Awk

github.com

#awk#raycasting#terminal game#3d shooter

350points
55comments
#43of 2,264 in 2016
Top 2%of 2016 by points

How HN took it

MixedNo clear lean

16 positive, 8 neutral or asking, 0 mixed, 3 critical, out of 27 comments about the project. Thread score +0.44.

Execution: 5 for, 1 againstIdea: 4 for, 1 againstDocs: 2 for, 0 againstDesign: 2 for, 0 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Readable, clean Awk code

    From 3 comments
    • 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…
      __jal on HN
    • Very cool! And easily modifiable, thanks to readable code as bliti said. Seems well thought/laid out.
      mysterydip on HN
    • This is very cool. The code is very readable. I honestly expected a bit of mess. It's easy to follow and managed to learn a bit about awk. Nice job!
      bliti on HN
  • Impressive what fits in few lines of code

    From 2 comments
    • 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.
      n0us on HN
    • Having never looked at awk aside from its usage in shell one-liners, that code looks really nice. I might have to go learn awk for a bit.
      quacker on HN
  • Fun, cool project

    From 3 comments

Objections

  • Needs gawk and bash, not portable

    From 2 comments
    • Needs bash and gawk, bash you can avoid by changing cmd = "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…
      myztic on HN
    • Great work! PS: You need gawk to run this.
      Gnouc on HN
  • Awk is an odd choice for this kind of program

    From 1 comment
    • Like a sculpture made out of snot,you can applaud the elegance of the sculpture, and the elegance of the construction, but you have to wonder about the building material...
      qwertyuiop924 on HN

Requests

  • Write a tutorial on how it works

    From 1 comment
    • 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.
      n0us on HN
  • Build a file explorer in this style

    From 2 comments
    • This could actually be used to build a file explorer, not sure for what, but it would be fun to explore directories this way.
      pacomerh on HN
    • I want this and I don't know how to make it.
      dawnbreez on HN

Questions

  • How to read a key in raw mode in awk

    From 1 comment
    • I was wondering how you'd read a key in raw mode in awk. The answer, I found with a mix of horror and admiration is 3 forks. Two stty and one bash (presuming read and echo are…
      emmelaich on HN

Alternatives named

  • Doom-like games and Flash games

    From 2 comments
    • I guess 20 years ago CS students weren't told to "write a Doom-like game" as an awk homework =)
      TheMozg on HN
    • That's exactly how I felt about cool games made with Flash.
      executesorder66 on HN
  • Raycasting tutorials in C++ and JS

    From 1 comment
    • 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…
      TheMozg on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/10896901)