Remix.run Logo
romperstomper 4 days ago

Just curios, why everything is in a single large file (doom.go ~46K LOC)? Is it because of how Go handle modules?

donatj 4 days ago | parent | next [-]

Nah, I suspect it's just because it's a machine translated port of the original C to Go

> The original C code was converted to Go using (modernc.org/ccgo/v4), by cznic (https://gitlab.com/cznic/doomgeneric.git). This was then manually cleaned up to remove a lot of manual pointer manipulation, and make things more Go-ish, whilst still maintaining compatibility with the original Doom, and its overall structure.

EstIgnavus 4 days ago | parent | next [-]

Yes, that's exactly correct. I had intended to break it apart back to the original Doom source layout, but I haven't completed that yet. I'm not 100% sure if that's a good idea anyway.

romperstomper 4 days ago | parent | prev [-]

Ah, I see, thanks!

nasretdinov 4 days ago | parent | prev [-]

I must say I'm really surprised it's so small too, for a reasonably complicated game