Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. learning
    L

    learning

    @learning

    Chat Follow Unfollow
    1
    Reputation
    2
    Posts
    730
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with learning
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    learning Follow

    Posts made by learning

    RE: Web Game Server

    Doesn't sound like you need a game server at all or any framework for that matter, just store the time in a DB and compare the date/time values at the time of opening.

    posted in Questions & Help •
    State management question

    So I am using the example on the documentation.. I am assuming

    onLeave (client) {
        delete this.state.players[ client.sessionId ];
    }
    

    is supposed to trigger a change.operator delete event on the client side but nothing happens. on message and onjoin seem to work as intended.

    I am using

    arena.listen("players/:id/:attribute", (change) => { })

    which makes a lot of sense but what would be the use case of

    arena.onStateChange.add((state) => { })

    ?

    posted in Questions & Help •