Skip to content
This repository has been archived by the owner on Dec 22, 2020. It is now read-only.

Super simple game sync #47

Merged
merged 2 commits into from
Apr 5, 2017
Merged

Conversation

rocketinventor
Copy link
Contributor

The demo server now injects the game data into the HTML.

By the time the page has loaded, the game data has already been downloaded and synced. This opens up the possibility of continuing game play across devices and browser sessions. A demo /sync has also been added (but doesn't do anything useful, yet).

Thanks to @macfergus for helping out with #45.

Game data from the server will now be parsed and injected into the HTML via the python server. Once the HTML loads, the game data will automatically be rendered.
This works as many times as you refresh the page!
@maxpumperla
Copy link
Owner

LGTM, thanks for this!

@maxpumperla maxpumperla merged commit 3504a14 into maxpumperla:master Apr 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants