Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: I made a multiplayer browser game (boxfight.xyz)
14 points by andai on Feb 22, 2024 | hide | past | favorite | 15 comments



"rip headphone users" as they say. What's with the extremely loud noise?


Someone made a hacked game client and is spawning a bullet every frame


Arrow keys seem to get hijacked by the scroll bar which gets worse with longer chat


Forgot to mention "In 50 KB of WASM" :)

Sound effects are generated on the fly (with sfxr), there is Text to Speech (with Software Automatic Mouth, from the Commodore 64)


Thanks for the feedback everyone!

Update: got rid of webassembly (for my usecase it was pure overhead).

Game is now 24KB (down from 170KB)

Will ship new version tomorrow and start fixing all the bugs / complaints.

Netcode needs major overhaul.

Need to move the game logic into server for anti-cheat and for more consistent experience.

(Currently collision is done locally, which coupled with the lag is terrible. (On that note, I need more servers...))


Funny. On iPhone I’m stuck in the middle. Assume it’s beca I don’t have a mouse? Still, I played for 5 minutes or so shooting user 2 —fracking gnat— from the center of the game. hehe


When I clicked that link, I heard a lot of horrible noise and saw some racial epithet spam in a chat box. Was that supposed to happen? Anyways, 10/10 would click again.


I made it with raylib and Odin.

The game is open source https://github.com/avelican/boxfight


I have some feedback: please reduce the volume.


Update: Someone already made a hacked client!


What are even the controls... I get moving around, no concept of how to fire, or even the rules.


WASD / Arrow keys to move.

Click to shoot.

You can't move on phone yet (but you can shoot!), I'm not sure how to do the controls there. Maybe a multitouch thing where the first touch makes a joystick appear for movement, and 2nd tap shoots in the tap direction?


Front page worthy effort?


How do you fire???


You point at enemy with mouse pointer and left click to fire




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: