Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8587041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:28:10+00:00 2026-06-11T22:28:10+00:00

If you look at websocket games like browserquest , where is the player data

  • 0

If you look at websocket games like browserquest, where is the player data stored? Is it in the websocket server .js file?

Because if, for example, a new player joins the game, the game has to be rendered in its current state, with all players, items etc. Where is this data stored?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T22:28:11+00:00Added an answer on June 11, 2026 at 10:28 pm

    Online games usually have a central server component which manages the world state. Each client communicates directly with the server. The server sends each client data about the surrounding (that’s how the map looks, there is a mob A, and there is an item B) and the clients sends the server information about what it is doing (I walk to x:y; I attack mob A; I pick up item B).

    In Mozilla Browserquest, this server component is programmed in NodeJS.

    Regarding persisting the game state of players which are currently logged out: This should also be done on the server by storing this data in some kind of database. A possible but much worse alternative would be to store the players progress in the local Webstorage of the client (another new HTML5 feature). That would relieve the server of the responsibility, but would give players an easy opportunity to cheat, because they were able to edit their game state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Look I have like this code. <MediaElement Source=Wildlife.wmv/> It didn't work.This file wildlife has
Look at this example class Player { ChessEngine* ce; public: makeMove() { ce.addMove(); }
Using geolocation data of websocket users on a specific server, I'm trying to restrict
localhost not work and IIS server stop apache error log look like this [Thu
Look the code below. I'd like to replace USERNAME by the field name received
Look at this example: int i; for
Some claim eval is evil. Any regular HTML page may look like: <script src=some-trendy-js-library.js></script>
look at this code please : var data = { cell: [ 1, text1,
Look at the line THIS LINE #### in following example. <ListBox Grid.Row=0 x:Name=listBoxServers> <ListBoxItem
Look at the following example: string foo(int i) { string a; ... Process i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.