development:player:web
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
development:player:web [2017/08/30 17:12] – [Preprocessing steps for games] remove vorbis steps, better suggest opusenc once deployed (and maybe png2xyz and xyzcrush) fdelapena | development:player:web [2019/03/09 01:49] – fix gencache link carstene1ns | ||
---|---|---|---|
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 ===== | + | ===== 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 13: | ||
===== 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 31: | Line 31: | ||
==== Deploying a game on your server ==== | ==== Deploying a game on your server ==== | ||
- | Because RPG Maker games refer to files without extension and querying the server for every supported extension would be slow, you need to run a small tool to generate a file called ' | + | Because RPG Maker games refer to files without extension and querying the server for every supported extension would be slow, you need to run a small tool to generate a file called |
- | If you use Windows you can get the tool in .exe format | + | You can get the tool here: |
- | Unpack '' | + | |
- | If you use other operating system, install php-cli and run [[https://github.com/EasyRPG/Player/blob/master/resources/emscripten/ | + | * {{https://ci.easyrpg.org/job/tools-win32/lastSuccessfulBuild/artifact/bin/gencache.exe|gencache for Windows}} |
+ | * {{https://ci.easyrpg.org/job/ | ||
+ | |||
+ | Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) | ||
Your games are expected in subdirectories of the '' | Your games are expected in subdirectories of the '' | ||
Now open the '' | Now open the '' |
development/player/web.txt · Last modified: 2021/11/11 09:38 by ghabry