This is my first game!
Its just a clone of one of the solitaire games from Zachtonics Last Call BBS.
Theres still a lot of TODOS here to make it a full fledge game. I have to finish the winning states. And also include things like a title screen/etc. This was mostly a fun project just to learn Odin and Raylib.
This game compiles to both a desktop build, and a web wasm build! Based on:
https://github.com/karl-zylinski/odin-raylib-web
build_desktop.sh
I programmed this game on a mac. The wasm build will not work for you because its setup for my computer. You will have to do some changes if you want to build it for wasm:
- Get Odin and compile it on mac: https://odin-lang.org/docs/install/#macos
- Get emscript: https://emscripten.org/docs/getting_started/downloads.html
- You will have to modify the ./build_web.sh script as its setup for my environment! Specifically the
EMSCRIPTEN_SDK_DIR(point it to where you cloned and built emsdk). Also thefiles=will be different on your system. (Point it to where you cloned and built Odin and find the vendor/raylib/wasm files)
Compile:
./build_web.sh
cd build/web
python3 -m http.server
Then you can load the game at localhost:8000