Skip to content
← Back to Community
First Person view [FPS Engine] in the console (C++)
Profile icon
SPQR

This code was largely written by [Javidx9 / OneLoneCoder] (http://onelonecoder.com) for Windows. As of this post I have ported it to Unix/repl.it and, as a bonus, added strafing. For high FPS run this in a small window, and for high resolution run this zoomed out.

I don't think this runs on repl.run and it doesn't work well on this post. Try opening it in the IDE.

I'm planning on adding colors, some more features, perhaps integrating it with my procedural generation system, or even making this the gameplay style of my Dungeon Crawler repl rather than top-down.

Controls:
W,A,S,D - Movement
<,> - Look left and right
Shift - Move faster

Voters
Profile icon
HBthePencil
Profile icon
OscarJacobson
Profile icon
programmeruser
Profile icon
DynamicSquid
Profile icon
Navinor
Profile icon
Kai_Justice
Profile icon
Highwayman
Profile icon
Alishahid1
Profile icon
SenpaiOof
Profile icon
mkhoi
Comments
hotnewtop
Profile icon
mamamia5x

C++ Doom?

Profile icon
SPQR

@mamamia5x perhaps..
The original doom is written in C soooo....

Profile icon
mamamia5x

@SPQR That means it's defiantly possible. It'll take a long time tho.

Profile icon
N3rdL0rd

Dude how?

Profile icon
mwilki7

this is amazing are the walls the actual shape of the #?

Profile icon
SPQR

@mwilki7 they are not lol

Profile icon
HBthePencil

Looks really cool! I love the (probably unintentional) glitch effect!

Profile icon
SeamusDonahue

its really twitchy but really cool tech

Profile icon
DynamicSquid

You make amazing things in C++, some that I didn't even think was possible! I've never seen this before! Well done!

Profile icon
thedankboi

EFB40231-C636-4E55-90A5-36CD11DE0C37

Is this supposed to happen?

Profile icon
AphixDev

This is awesome! Did you use this guy for reference?:
https://www.youtube.com/watch?v=xW8skO7MFYw

Profile icon
SPQR

@nt998302 I actually specifically said it's mostly his code haha

Profile icon
AphixDev

@SPQR Oops! My bad.