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 [2015/05/19 22:44] – add download link ghabry | development:player:web [2021/11/11 09:38] (current) – outdated ghabry | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====EasyRPG Player for the Web===== | + | ====== EasyRPG Player for the Web ====== |
- | EasyRPG supports running games directly inside your web browser. | + | EasyRPG |
- | If you want to test it you can play with a [[https://easy-rpg.org/play/index-pr.html|Demo of our TestGame]]. | + | If you want to test it you can play with a [[https://easyrpg.org/ |
- | ===How does it work=== | + | ===== THIS GUIDE IS OUTDATED ===== |
- | 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, ...) immedieately but on the web it will be invisible while the file is downloaded. Once the downloaded finishes it is replaced with the real image. | + | **Please do not follow this guide anymore!** |
- | In contrast to images and music some files are important to continue execution. When a map file is pending the Player will halt until the file is downloaded. The first halt is while the Logo is displayed on startup, it downloads the database and the maptree | + | **[[https:// |
- | ===Hosting your own games=== | + | ===== How it works ===== |
- | Hosting your own games is quite simple. Just follow these three steps. | + | 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. |
- | == Deploying | + | In contrast to images and music some files are important to continue execution. When a map file is pending |
- | [[https:// | + | ===== Hosting |
- | Your server needs support for PHP (most servers support this). | + | Hosting your own games is quite simple. Just follow these steps. |
- | You will get the following files: | + | ==== Deploying the Player on your server ==== |
+ | |||
+ | [[https:// | ||
+ | |||
+ | You will get the following files and folder: | ||
* index.html | * index.html | ||
+ | * index.wasm | ||
* index.js | * index.js | ||
- | | + | * games/ |
- | | + | |
- | + | ||
- | == Preprocessing steps for games == | + | |
- | + | ||
- | Because of limitations in web browser you must convert all your '' | + | |
- | + | ||
- | == Deploying a game on your server == | + | |
- | + | ||
- | The following only apply when you use our '' | + | |
- | + | ||
- | Your games are expected in subdirectories of the '' | + | |
- | + | ||
- | If your '' | + | |
- | + | ||
- | Run '' | + | |
- | + | ||
- | Now open the '' | + | |
- | + | ||
- | ===Technical details about the server side=== | + | |
- | + | ||
- | The '' | + | |
- | + | ||
- | Depending on the requested '' | + | |
- | + | ||
- | This is required because Windows is case-insensitive (and original RPG2k was for Windows) and because the file extensions are not stored. '' | + | |
- | + | ||
- | == Example == | + | |
- | The file '' | + | If you want to //try it locally// you need a HTTP server. Just opening the '' |
- | == API == | + | ==== Deploying a game on your server ==== |
- | Our file finder is stored under '' | + | 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 |
- | The directory struture of the '' | + | You can get the tool here: |
- | The only GET arguments that must be supported are '' | + | * {{https:// |
+ | * {{https:// | ||
- | '' | + | Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) to generate the '' |
- | '' | + | Your games are expected in subdirectories of the '' |
- | When a '' | + | Now access the '' |
development/player/web.1432075481.txt.gz · Last modified: 2015/05/19 22:44 by ghabry