Share your repls and programming experiences

← Back to all posts
Online 3D FPS, csgo based
h
pepelaugh (429)

A pretty scuffed version of CSGO for the browser, online.
App is live at: https://3dfps.glitch.me/
Server is hosted on http://herokuapp.com/
Original: https://github.com/TheCoder5550/3dshooter
Feel free to fork and make changes, i can see potential, like maybe you can make it Like minecraft. :D
[note you'll need a new server]

Edit: i noticed that people said the join button wasn't working. To solve this issue, enable Javascript in settings.

Commentshotnewtop
pepelaugh (429)

now this is epic.
whoever was online, gg lol

elipie (97)

@pepelaugh were u the dev guy? gg bro

pepelaugh (429)

@elipie yeah, gg. and btw here's a secret:
press x to use a dev "cheat" :D

dominicl645 (30)

it is a little laggy. and you should add more of a variety of weapons @pepelaugh

pepelaugh (429)

@dominicl645 Maybe, but this is just for demo. Currently i'm learning 3js, but i usually use c#/c++ so idk.

StanleyGuo1 (9)

Holy that was loud. Big props to you though for making this. Very cool

elipie (97)

@StanleyGuo1 yeah it scared the crap outta me the first time i joined

PlaySoccer (40)

This is cool, but you can't turn 360 degrees. And the noises are very loud.

pepelaugh (429)

@PlaySoccer Sorry for the sound, but if you can't turn 360 degrees that's your dpi.

brogen (42)

what does switching guns do? I just put down the gun.

pepelaugh (429)

@brogen It switches it to the awp, a one shot one kill gun.
(your hitmarkers will be orange, and the sound will be different)
It's empty because im too lazy to find a model, lul

brogen (42)

@pepelaugh
oh OK why is x a super high jump?

pepelaugh (429)

@brogen lol you know too? dev "cheat" i added.

ArnavGhosh (21)

All I see is Guest258 [profanity] the ground and I can't even shoot him without him going back into the ground..

pepelaugh (429)

@ArnavGhosh lmao, it's just lag or they're afk.

ArnavGhosh (21)

@pepelaugh lmao, but either way, nice job on this!

ArnavGhosh (21)

@pepelaugh lmao, but either way, nice job on this!

[deleted]

@moderation please remove this comment for NSFW swearing @ArnavGhosh

pepelaugh (429)

@HyperGamerStuds It's fine calm down, you'll say that a lot ltr in life lmao

[deleted]

It's against the rules, and tbh I heard that the more u follow the rules/make other people follow them the more likely u r to be chosen to be a mod ;) @pepelaugh

pepelaugh (429)

@HyperGamerStuds :D okay. anyways how old are you, that's a factor to consider in mods apps.

[deleted]

I'm 15, and using this for school, lol @pepelaugh

pepelaugh (429)

@HyperGamerStuds K just asking, nice to have someone around that's roughly my age. :D

pepelaugh (429)

@elipie This is made with 3d css transformations, and pure js.
If you want to make 3d games, either use Unity, Unreal, or godot.
And three js is for rendering, so you need to know some js first.
So if you want it browser based - ThreeJs.
Better Graphics, Better gameplay - use a game engine.

elipie (97)

@pepelaugh yeah.. okay ill take that into consideration! Thank you!

pepelaugh (429)

@ZDev1 Ye, collision issues, sorry. It'll be better when I learn 3JS, lol

adamtheweeb (6)

extremly scuffed but still :pogChamp:

pepelaugh (429)

@ironblockhd Thanks, you're too nice! :D

Jeydin21 (37)

I enabled JavaScript the Join button still didn't work, I went back to repl.it, and I saw an error in the console:

ReferenceError: SimpleFPS is not defined
   at window.onload (/main.js:75:3)
pepelaugh (429)

@Jeydin21 Can you give me a screenshot because it seems to work fine for me and mostly everyone.

pepelaugh (429)

@ridark Debug duty, ay? I appreciate it, fixed it :D

JackFranzel (14)

if you hide in the 2x box, ur invincible

pepelaugh (429)

@JackFranzel Na, you can shoot through it I think, lol.

ZANECALDWELL (7)

Pretty good but super scuffed

ridark (91)

join btn doesnt wrk

pepelaugh (429)

@ridark Hm... could be because servers are full.

ridark (91)

@pepelaugh button brought me to 3fps.glitch.me/#

pepelaugh (429)

@ridark Ahhh that's the problem. you have to go to https://3dfps.glitch.me/ then.

ridark (91)

@pepelaugh even after going there it still brings me to 3dfps.glitch.me/#

pepelaugh (429)

@ridark It's supposed to. Are you not in game?

Code1Tech (65)

omg so loud that scared me xD

pepelaugh (429)

@Code1Tech Yep, had to download the mp3s from yt and not from the CSGO files.

ethanshaozz1928 (24)

it says connection error

EpicGamer007 (591)

The join match button does not work

pepelaugh (429)

@EpicGamer007 Weird. It worked fine for me. If it says "connecting" for too long that's your internet, or repl isn't cooperating. try https://3dfps.glitch.me.

EpicGamer007 (591)

@pepelaugh that website is what i ma trying to use. the repl.co link does not work.

pepelaugh (429)

@EpicGamer007 Weird! it seems too work for me

pepelaugh (429)

@EpicGamer007 This is a weird issue, did you try going to https://3dfps.glitch.me without the #? maybe it's a variable thing

pepelaugh (429)

@pepelaugh If it's not that then you have JS turned off. most unusual

pepelaugh (429)

@gwynethwingell Thanks, better if you play it with friends :D

Vandesm14 (2414)

This might've already been said, but why not host this on repl.it?
(you linked heroku and glitch in the description)

pepelaugh (429)

@Vandesm14 Heroku has a faster server, glitch because i didn't join repl yet when i started this.

ZDev1 (653)

Why all comments have 6 or 7 upvotes?

pepelaugh (429)

@ZDev1 ¯(ツ)/¯ weird. are these bots?

pepelaugh (429)

@ZDev1 lol, not mine I swear. if they are, anyways

Axrevyn (223)

Holding F makes the game go down to 7 FPS
Please don't try it

GerardoMontero (1)

The game doesn't work for me :/

pepelaugh (429)

@GerardoMontero enable Javascript, if you're using IE, it might not work.

[deleted]

Nah, u're totes asleep

SwaroopBappanad (40)

Hey, uh, I had a question. I wanted to make a multiplayer game in p5.js, but I am having trouble making it multiplayer. Can you help me, seeing as you successfully built a server that tracks the players?

pepelaugh (429)

@SwaroopBappanad Sorry, i'm working on something right now and I don't have time. What you'll need is socket.io,which you can find a tutorial for easily, but I suggest watching these videos since you're using p5.js:
https://www.youtube.com/watch?v=i6eP1Lw4gZk
https://www.youtube.com/watch?v=ZjVyKXp9hec

SwaroopBappanad (40)

PROOF THAT @pepelaugh IS A BOT: No one human could code something this godly. (btw my ears are bleeding from the sound. I was doing something and hear a huge CRACK lol)