Settings

Theme

FPS.cob: A first person shooter in COBOL

github.com

54 points by MBCook 2 hours ago · 18 comments

Reader

localhoster 21 minutes ago

We need to start putting guardrails on hn to not allow those esoteric projects to be published. Before ai, it was impressive that a person has that much passion and dedication to go down the rabbit hole, and it usually comes back with some cool anacdotes that are nice to read.

Today, it's shallow, emptied out of the content.

It's not impressive that Claude wrote it, it was impressive if you have written it, OP.

  • qweqwe14 8 minutes ago

    We need to start putting guardrails on hn to not allow those pointless comments complaining about usage of AI.

    If you have nothing else to comment on then can you stop crying please?

    • firebot 6 minutes ago

      We need to start putting guardrails on hn to not allow those pointless comments complaining about usage of peepee poop

      Could you stop evacuating your bladder and bowels? Puuuuhfleas

  • deadbabe 14 minutes ago

    Exactly. But the damage is done. I find nothing anyone does in tech impresses or interests me anymore. The only things that interest me are things I’d like to also do myself. I imagine it’s probably the same for a lot of other people.

    Like OK someone vibecoded an FPS in COBOL or Pokémon emerald in a web browser with web assembly? Ok good for them, piss off karma farmer.

ltheanine 2 hours ago

It would be nice to have screenshots. Also it’s just a single commit, did you use AI? Quoting the readme: “FPS.cob is what you get when you decide that game development is too easy nowadays”.

petercooper 2 hours ago

As a few people have asked for screenshots, I spun it up. Here's a video of the basic gameplay: https://peterc.org/misc/fpscob.mp4 .. it's clunky, but it does play.

omoikane 26 minutes ago

Looks like it outputs PPM and use ffplay as a display driver:

https://github.com/icitry/FPS.cob/blob/497867bb6827bcfc32d50...

bottlepalm 2 hours ago

You know what, that is some pretty readable code.. COBOL might have been on to something there. I've gotten so used to syntax soup this is refreshing.

https://github.com/icitry/FPS.cob/blob/main/fps.cob

  • giraffe_lady an hour ago

    I had to get into an old tcl program for work recently and had the same thought. I wouldn't necessarily pick it today but it was kind of nice in a way that's unfamiliar to me from modern development.

    • moregrist 40 minutes ago

      The tcl syntax is fine. And modern tcl is fine.

      But tcl 7.x and before was a pure string-based language. Everything was essentially a eval(). People would hit syntax errors on production code.

      Fun, painful times.

      The flip side: the interpreter is super simple and fun to write.

      • IshKebab 23 minutes ago

        Tcl is still entirely stringly typed. That's never changed.

        There are under-the-hood optimisations to make it less insanely slow but that only affects performance.

        Tcl is a cool hack (the interpret is simple to write) but it's insane to actually use it. I wish the EDA industry would realise that.

tlb an hour ago

They should compile it to WASM and host it.

spzb 2 hours ago

Doesn't run for me. Just I/O errors and quits.

rroriz 2 hours ago

Come on, we need screenshots!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection