o
odin.langpkg.dev
packages / library / solitrouble

solitrouble

2c5c847library

A Sawayama Solitaire clone written in Odin and Raylib

No license · updated 1 year ago

A Sawayama Solitaire clone written in Odin and Raylib

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.

Compiling and playing

This game compiles to both a desktop build, and a web wasm build! Based on:

https://github.com/karl-zylinski/odin-raylib-web

Desktop build

build_desktop.sh

WASM Web build

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:

  1. Get Odin and compile it on mac: https://odin-lang.org/docs/install/#macos
  2. Get emscript: https://emscripten.org/docs/getting_started/downloads.html
  3. 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 the files= 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
Screen Shot 2024-06-07 at 2 44 48 PM Screenshot 2025-03-07 at 1 19 47 PM