Skip to content

Commit 9a64c88

Browse files
authored
Merge pull request #16 from Moros1138/develop
update readme and remove makefile from previous build
2 parents 9d57d2a + 8bf0fd6 commit 9a64c88

File tree

3 files changed

+19
-73
lines changed

3 files changed

+19
-73
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -110,16 +110,33 @@ Then use them in your OnUserUpdate, like so
110110
if(GetKey(olc::SPACE).bPressed)
111111
ma.Toggle(song1);
112112
```
113-
# Building
113+
# Building In Your Projects
114114

115-
For Windows MSVC and Emscripten the instructions match any other olcPixelGameEngine!
115+
For Windows MSVC the instructions match any other olcPixelGameEngine!
116+
117+
For Emscripten, add ``-sSTACK_SIZE=131072`` to the build command. This doubles the default stack size used by emscripten. Without it, emscripten runs out of stack space causing it enter a forever loop with "index out of bounds" errors and exception!
116118

117119
For Linux, add ``-ldl`` to the build command..
118120

119121
TODO: instructions for MacOS, I'm not a Mac user and have no way to test it!
120122

121123
That's it!
122124

125+
# Building The Demos
126+
127+
To build the demos for Linux, MacOS, or Windows:
128+
```
129+
cmake . -B build
130+
cmake --build build
131+
```
132+
133+
To build the demos for emscripten:
134+
135+
```
136+
cmake . -B emscripten-build
137+
cmake --build emscripten-build
138+
```
139+
123140
# Acknowledgements
124141

125142
I'd like to give a special thanks for JavidX9 (aka OneLoneCoder), AniCator, JustinRichardsMusic, and everybody else who was a part of that audiophile conversation when I asked for help! Your patience and feedback made this project possible. Thank you!

demo/Makefile

-47
This file was deleted.

demo/README.md

-24
This file was deleted.

0 commit comments

Comments
 (0)