Trikus - WIP WIP WIP - check back later.
This is an entry written for the Ludum Dare 33 (Jam):
But it is also an example for how to organise your Ruby/Gosu projects for easy deployment with RubyMotion.
...and maybe it will be useful as a template for future board games too (if I make progress with refactoring).
Four players have to put down as many pieces as possible, starting in their "home corner".
But you can only connect pieces diagonally. None of your pieces' sides must touch directly. I've tried to illustrate this in the screenshot above. Touching enemy pieces is fine.
(Sounds like the board game Blokus? It's similar, but this game has triangular tiles.)
Running the game as a normal Ruby/Gosu game
bundle install and then simply run
Running and packaging the game with RubyMotion (OS X)
A simple RubyMotion project lives in the
osx/ subfolder, created by following the README for this gem/pod:
osx/, again simply run
bundle install, then see
bundle exec rake -T for RubyMotion's packaging options.
Dependency: SDL 2
The OS X project statically links SDL 2 from Homebrew. This version usually only works on your current version of OS X, e.g. 10.11 (El Capitan) and later, not on earlier versions.
To install a version of SDL 2 that works all the way back to OS X 10.9 (Mavericks), find the bottle URL in the JSON version of the formula:
brew info sdl2 --json=v1 | python -mjson.tool
Then download the
.tar.gz bottle for Mavericks to your Desktop and manually install it using:
cd $(brew --prefix)/Cellar && tar xf ~/Desktop/sdl2-2.0.4.mavericks.bottle.1.tar.gz && brew link sdl2
Now your build of
Trikus.app should work on all Macs running OS X 10.9 and later, without any external dependencies.
Running and packaging the game with RubyMotion (iOS)
Thanks to @sebastianludwig for brainstorming and playtesting the original board game with me!
Further thanks to @lxsndl for dropping by and helping with refactoring the code during the Ludum Dare
Code, graphics, concept etc.: @jlnr.
All other files, including the source code and all build files, are released under the MIT license. Enjoy!