development:player:web
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:player:web [2017/08/30 18:48] – Improve formatting fdelapena | development:player:web [2021/11/11 09:38] (current) – outdated ghabry | ||
---|---|---|---|
Line 5: | Line 5: | ||
If you want to test it you can play with a [[https:// | If you want to test it you can play with a [[https:// | ||
- | ===== How does it work ===== | + | ===== THIS GUIDE IS OUTDATED ===== |
+ | |||
+ | **Please do not follow this guide anymore!** | ||
+ | |||
+ | **[[https:// | ||
+ | |||
+ | ===== How it works ===== | ||
Web request are asynchronous. This means that all assets like pictures and music must be fetched asynchronously. When the Player wants to display a new graphic it will appear on the desktop versions (Windows, Linux, Android, ...) immediately but on the web it will be invisible while the file is downloaded. Once the downloaded finishes it is replaced with the real image. | Web request are asynchronous. This means that all assets like pictures and music must be fetched asynchronously. When the Player wants to display a new graphic it will appear on the desktop versions (Windows, Linux, Android, ...) immediately but on the web it will be invisible while the file is downloaded. Once the downloaded finishes it is replaced with the real image. | ||
Line 13: | Line 19: | ||
===== Hosting your own games ===== | ===== Hosting your own games ===== | ||
- | Hosting your own games is quite simple. Just follow these three steps. | + | Hosting your own games is quite simple. Just follow these steps. |
==== Deploying the Player on your server ==== | ==== Deploying the Player on your server ==== | ||
Line 22: | Line 28: | ||
* index.html | * index.html | ||
- | * index.html.mem | + | * index.wasm |
* index.js | * index.js | ||
* games/ | * games/ | ||
- | Note: if you want to try it locally you need a HTTP server, using '' | + | If you want to //try it locally// you need a HTTP server. Just opening the '' |
==== Deploying a game on your server ==== | ==== Deploying a game on your server ==== | ||
Line 35: | Line 40: | ||
You can get the tool here: | You can get the tool here: | ||
- | * {{https:// | + | * {{https:// |
* {{https:// | * {{https:// | ||
Line 42: | Line 47: | ||
Your games are expected in subdirectories of the '' | Your games are expected in subdirectories of the '' | ||
- | Now open the '' | + | Now access |
development/player/web.1504118898.txt.gz · Last modified: 2017/08/30 18:48 by fdelapena