Better instructions for http server

This commit is contained in:
Joseph Ferano 2023-08-14 17:19:37 +07:00
parent 3887d96193
commit 78d4c2d258

View File

@ -58,9 +58,11 @@ actually wants to build this.
In order to be able to load the textures and models, the files must be served by In order to be able to load the textures and models, the files must be served by
an HTTP server because of browser security, see [[https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy][SOP]] and [[https://developer.mozilla.org/en-US/docs/Glossary/CORS][CORS]] if curious. an HTTP server because of browser security, see [[https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy][SOP]] and [[https://developer.mozilla.org/en-US/docs/Glossary/CORS][CORS]] if curious.
If you have Python 3 installed, simply run =python3 -m http.server=. If you would You can use ~elm-reactor~, run the command and open up your browser to
like to use =elm-reactor=, run the command and then click on =index.html= in the ~https://localhost:8000~ and then click on ~Scene.elm~ in the nice project webview
nice project webview provided. provided. If you don't want to do that and have Python 3 installed, run =python3
-m http.server=, but make sure to compile with the ~elm make Scene.elm~ command
first.
** How to Play ** How to Play
You can walk around the scene and also control the robot which I have named You can walk around the scene and also control the robot which I have named