Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port Cytopia to emscripten #114

Open
SimplyLiz opened this issue Apr 14, 2019 · 1 comment · May be fixed by #359
Open

Port Cytopia to emscripten #114

SimplyLiz opened this issue Apr 14, 2019 · 1 comment · May be fixed by #359
Assignees
Labels
build Build related
Milestone

Comments

@SimplyLiz
Copy link
Contributor

SimplyLiz commented Apr 14, 2019

Port Cytopia to emscripten and host the build on our website.

I've already started working on this and pretty much is already done, but haven't commited the code changes yet.

Notes: I've started working on this on linux, but i couldn't get emscripten to work. On Windows, it worked instantly, but stopped working after a time because of a bug in emscripten in latest release.
I'll continue working on this once i have my new laptop set up.

See:
https://game.cytopia.net

SDL_mixer support is still missing.
The game crashes when save / load game is called. (Find out how we can open a browser save / load dialog)

@SimplyLiz SimplyLiz added the build Build related label Apr 14, 2019
@SimplyLiz SimplyLiz self-assigned this Apr 14, 2019
@SimplyLiz
Copy link
Contributor Author

SimplyLiz commented Feb 17, 2020

I created a branch "emscripten" for the port.

To build it:

Activate emscripten SDK

~/.conan/data/emsdk_installer/1.39.6/bincrafters/stable/package/1492a59deb6efdf29776a5734de63fc5f5c58650/emsdk_env.shemsdk activate latest
source ~/.conan/data/emsdk_installer/1.39.6/bincrafters/stable/package/1492a59deb6efdf29776a5734de63fc5f5c58650/emsdk_env.sh
export PATH=~/.conan/data/emsdk_installer/1.39.6/bincrafters/stable/package/1492a59deb6efdf29776a5734de63fc5f5c58650:~/.conan/data/emsdk_installer/1.39.6/bincrafters/stable/package/1492a59deb6efdf29776a5734de63fc5f5c58650/node/12.9.1_64bit/bin:~/.conan/data/emsdk_installer/1.39.6/bincrafters/stable/package/1492a59deb6efdf29776a5734de63fc5f5c58650/upstream/emscripten:$PATH

emcmake cmake -DCROSSBUILD_EMSCRIPTEN=ON -DENABLE_AUDIO=OFF -DENABLE_ANGELSCRIPT=OFF -DENABLE_MOFILEREADER=OFF ../Cytopia

@SimplyLiz SimplyLiz linked a pull request Feb 24, 2020 that will close this issue
@Bogi79 Bogi79 added this to the Backlog milestone May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants