Author Topic: [FF7]Snowboard minigame and Emscripten  (Read 190 times)

ergonomy_joe

  • *
  • Posts: 27
    • View Profile
[FF7]Snowboard minigame and Emscripten
« on: Yesterday at 08:39:36 »
I'm trying to port one of the mini-game from FF7, the snowboard "simulator", to Emscripten. For those who do not know what it is, it is a compiler that translates C or C++ source code to javascript, so that the resulting code can be executed directly in your, or my, favorite browser.

I had some hard time with OpenGL ES. There is no sound yet. The framerate is a little low but ... here it is :


I seem to have a problem with the Z-order, I am trying to fix that for now.
I hope I can make a playable demo soon.

(edit: fixed the image link)
« Last Edit: Today at 01:31:10 by ergonomy_joe »

ergonomy_joe

  • *
  • Posts: 27
    • View Profile
Re: [FF7]Snowboard minigame and Emscripten
« Reply #1 on: Today at 01:29:53 »
I made some progress:
.texturing works (sort of)
.depth test
.speed up (I just had to remove my debug calls to glGetError)
.some control (keyboard only for now)



there is no sound and music yet.

If someone wants to run it in her/his browser, I could release the binary somewhere.
Any idea where I could upload that ? All you will need after that is the "snowboard-us.lgp" from the original FF7 windows version.

The best would be to setup a little HTTP server, but there will be a problem with the "lgp" file that cannot be hosted without copyright issues.
« Last Edit: Today at 01:31:37 by ergonomy_joe »

mav

  • *
  • Posts: 276
  • The Sauce team
    • View Profile
Re: [FF7]Snowboard minigame and Emscripten
« Reply #2 on: Today at 07:15:05 »
I would go with https://www.netlify.com - it's super easy to upload a website there and have it hosted under a static URL by just dragging & dropping a zip file that contains an index.html and all your assets, you can even update the deployment later if you have a new version.

As for the LGP file you could have a file picker so people could upload the lgp file on their own. Similarly how Diablo Web works: https://d07riv.github.io/diabloweb/

Great work btw!
« Last Edit: Today at 07:17:00 by mav »