Share your repls and programming experiences

← Back to all posts
Online 3D Game
h
badst (667)

made using socket.io and three.js in 2 days.
click to shoot, w to move, cone faces mouse.
yes, i know collision is client side.
yes, i'm bad at networking.
yes, i'm too lazy to store player positions on the server.
yes, speed is client side.
Vectors explanation and how to make the cone face the mouse: here

yeah i had no idea how vectors work in three but it's basically just unity's system

expect a first person version maybe later idk

edit: stop camping spawn you frogs im adding random spawn positions

Comin' soon if i don't get too lazy:

bullet visualized on all clients
indicators to show nearby players

also random stuff: i might make a first person among us in three

Update Log:

Color Changes, Enemies are red and you are blue

You are now required to login through repl. This prevents multiple tabs and weird ids, experimental not sure everyone's gonna like this but ;)

Comments
hotnewtop
TsunamiOrSumth (549)

spawnkilling these nerds is fun

IntellectualGuy (364)

It's all fun and games until you get spawn camped @TsunamiOrSumth

MarcusWeinberger (678)

@TsunamiOrSumth bruh i just got killed by you 20 times pepeLaugh

BuurmenTennus (7)

@IntellectualGuy once I got killed and I killed them at the same time. LOL

brennanmcdaniel (5)

... ._. (╯‵□′)╯︵┻━┻@TsunamiOrSumth

Muffinlavania (1444)

@TsunamiOrSumth dont you hate it when W132e1ijh3u1irnnje kills you

badst (667)

@Muffinlavania @TsunamiOrSumth lol okay i'll add repl login so you can see actual usernames

Muffinlavania (1444)

@pepelaugh I mean i didnt mean to make you do that...
But everyone knows how toxic
i38uyr7wiehfuskr3298i7uwekhsFDn
really is

BuurmenTennus (7)

why don't the enemies spawn?

badst (667)

@BuurmenTennus There are probably no users online.

Blackout4344 (36)

Why does this remind me of a nerf rival?

badst (667)

@JonDoeBeep forgot map collision lol

BuurmenTennus (7)

Can you make the people you kill you red!

badst (667)

@BuurmenTennus sure! You are now blue and enemies are red

BuurmenTennus (7)

@pepelaugh now I can't kill some. Like the one that just sits at spawn.

BuurmenTennus (7)

@pepelaugh and they don't kill me or even try.

badst (667)

@BuurmenTennus alright i'll restart the server

tankerguy1917 (159)

lil glitch i think. I keep getting teleported outside the map, I think, and then i cant move

badst (667)

@tankerguy1917 that's the death screen. you'll be tp'd back in like 5 seconds :)

(yeah im bad at UIs lmao)

tankerguy1917 (159)

@pepelaugh oh. thats ok. im just starting out with GUIs in python, so, im not very good either

badst (667)

@tankerguy1917 mhm, tbh js ui's aren't hard im just too lazy to make one lmao.

IntellectualGuy (364)

Can you make a few CPUs to play with?

badst (667)

@IntellectualGuy Maybe later, i'm working on something else rn

JBloves27 (1521)

POGGERS

yes, its awesome (add it to the list! XD)

DarkswordsmanJG (43)

You should fix the fact that we can leave the map, but other wise it's a really cool game

badst (667)

@DarkswordsmanJG alright i'll add collision soon :) thx

TheCheeseCoder (61)

when u kill someone, is it supposed to show the weird names?

badst (667)

@TheCheeseCoder yep that's their socket.id

JonDoeBeep (36)

@ZDev1 forgot alt or wanted people to say you forgot alt or wanted people to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that you wanted people to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that to say that people were going to say you forgot alt or you wanted people to say that you wanted people to say that you wanted people to say that you wanted people to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that to say that people were going to say you forgot alt or you wanted people to say that you wanted people to say that you wanted people to say that you wanted people to say that you wanted people to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that to say that people were going to say you forgot alt or that you wanted people to say that you wanted people to say that you wanted people to say you wanted people to say that you wanted people to say that you wanted people to say that you wanted people to say that people were going to say you forgot alt or wanted people to say that you wanted people to say that to say that people were going to say you forgot alt or i think i should stop before i go on forever.

zplusfour (879)

@JonDoeBeep are you crazy!?
I can't read this lmao

[deleted]

that sound effect is very pog lmao

badst (667)

@YashvardhanPatt thx lol i just got it off a friend's modpack for some game

realTronsi (907)
  • fix scroll bars lol
  • why is physics on client side
  • why use socket.io
  • wheres 3D
badst (667)

@realTronsi
1. maybe
2. cause im lazy
3. cause im lazy and it's easier
4. 3d but overhead

LiamLangeweg (0)

needs walls so you stay in map

LiamLangeweg (0)

not 3d but cool if anyone is playing

elijahbernard (2)

It will not let me in because it says I am not logged in

EpicGamer007 (1506)

pog pfp, zero-two pog

Kookiez (327)

@pepelaugh why does everyone seem to like anime here

badst (667)

@Kookiez lol, anime is okay, but anime girls tho 😳

Kookiez (327)

@pepelaugh lol yeah i don't watch anime or anything but i kinda like the character designs

badst (667)

@Kookiez yeah... that's how i think basically. I've only watched like 2 animes and they were with my friends.

EpicGamer007 (1506)

@pepelaugh tbh i dont really watch anime that much now, i mostly read manga