Share your repls and programming experiences

← Back to all posts
First Person view [FPS Engine] in the console (C++)
h
SPQR (451)

This code was largely written by Javidx9 / OneLoneCoder 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

Commentshotnewtop
SPQR (451)

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

mamamia5x (43)

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

mwilki7 (519)

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

CodingAndMemes (3)

Is this supposed to happen?

nt998302 (5)

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

SPQR (451)

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