FPS.cob: A first person shooter in COBOL

66 points - today at 3:13 PM

Source

Comments

localhoster today at 5:19 PM
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.

cml123 today at 6:12 PM
This was posted on hackaday[0] last week with a link to a youtube video. In the video, the author of the project goes into depth about some of the challenges they encountered and changes they made in good technical detail.

I think the complaints in this thread are not in the spirit of HN. Let's do better.

0) https://hackaday.com/2026/06/06/a-raycast-fps-in-cobol/

ltheanine today at 3:48 PM
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 today at 4:08 PM
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.
bottlepalm today at 4:09 PM
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

omoikane today at 5:14 PM
Looks like it outputs PPM and use ffplay as a display driver:

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

tlb today at 4:13 PM
They should compile it to WASM and host it.
spzb today at 4:03 PM
Doesn't run for me. Just I/O errors and quits.
rroriz today at 3:47 PM
Come on, we need screenshots!