Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

StackHack: Massively Multiplayer WebGL Game

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
2,210
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

StackHack is a multiplayer WebGL game that exemplifies the integration of PubNub with the three.js library, reflecting the evolving landscape of browser-based 3D technologies. Originally inspired by a desire to combine mrdoob's three.js project "voxels" with PubNub, StackHack employs an authoritative server model using Node.js and Express, which helps maintain game integrity by authorizing player actions before they take effect. This contrasts with non-authoritative servers where actions are accepted without verification, leading to potential game manipulation. The server manages player connections via UUIDs and ensures communication through separate "from_server" and "from_client" channels, providing a structured approach to multiplayer interactions. The game features periodic server-initiated wipes to reset the environment, and client-side operations are contingent upon server acknowledgment, demonstrating a robust system designed to prevent unauthorized player actions.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.