User Tools

Site Tools


development:player:web

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:player:web [2020/09/08 18:29]
fdelapena Replace .html.mem with .wasm and mention absolute /play/games/ path seems required.
development:player:web [2020/09/20 21:54] (current)
ghabry recommend python server. improve ?game wording
Line 26: Line 26:
   * games/   * games/
  
-Note: if you want to try it locally you need a HTTP server, using ''file:'' protocol locally will not work, install Apache httpd server (or any other) on localhost instead. +If you want to //try it locally// you need a HTTP server. Just opening the ''index.html'' in your browser will not work. If you don't have a local webserver the simplest way is installing Python and running ''python -m http.server''. Then open ''http://localhost:8000/'' in your browser and navigate to your directory.
  
 ==== Deploying a game on your server ==== ==== Deploying a game on your server ====
Line 40: Line 39:
 Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) to generate the ''index.json''. Move the ''gencache'' executable to working folders for each game you want to upload and run ''gencache'' again to generate the ''index.json'' for them. Once finished you can remove (don't upload it, it's not needed) the ''gencache'' from any game folder. Place the gencache executable in a game working folder (the folder containing RPG_RT.* files) to generate the ''index.json''. Move the ''gencache'' executable to working folders for each game you want to upload and run ''gencache'' again to generate the ''index.json'' for them. Once finished you can remove (don't upload it, it's not needed) the ''gencache'' from any game folder.
  
-Your games are expected in subdirectories of the ''/play/games/'' directory. The default game executed is the one in ''/play/games/default/''. You can create further games by just by putting them in subdirectories of the ''/play/games/'' directory.+Your games are expected in subdirectories of the ''games'' directory. The default game executed is the one in ''games/default''. You can create further games by just by putting them in subdirectories of the ''games'' directory.
  
-Now open the ''index.html'' file and your default game should start. To play a different game pass ''?game=folder_name'' to your index file.+Now access the ''index.html'' file and your default game should start. To play a different game pass ''?game=folder_name'' as part of the URL (query string) to your index file.
development/player/web.1599589761.txt.gz · Last modified: 2020/09/08 18:29 by fdelapena