Skip to content

What is the lifecycle of gamee session? #16

@kirillbunin

Description

@kirillbunin

I'm trying to figure out how to implement replays and ghost mode and I'm having trouble understanding it.

I imagine I will listen to event "start" for event.detail.opt_replay or event.detail.opt_ghostMod but then I have trouble figuring out, where I would store the data necessary for replication moves of the player/ghost.
In the docs, there is:

    var saveState = data.saveState;  // contains data you previously saved
    var replayData = data.replayData;
    var ghostData = data.ghostData;
    var socialData = data.socialData;

for gamee.gameInit but for gamee.gameOver there is only mentioning of storing one object. I need to store some user personalisations/progress like in game Basketball Bunny and I want to avoid conflicts/confusion in Ghost Mode between data of the user playing, and data of the ghost player.

Any additional docs would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions