An open-source book by Brett Chalupa and the Dragon Rider Community that walks you through how to build games with DragonRuby Game Toolkit.
Play the game you'll be building, right in the browser.
Support the creation and expansion of this book.
The book is authored and published with
mdBook. Follow the
installation instructions to get the mdbook binary installed.
Run mdbook serve to boot up the web server that handles compiling everything.
When the code is pushed to the main branch on GitHub, an action runs that
deploys it to the gh-pages branch.
Download DragonRuby GTK for your platform, unzip it, and then clone the repository inside of the new folder:
cd dragonruby
git clone git@github.com:DragonRidersUnite/book.git
- DragonRuby Game Toolkit: v7.x; might work for previous versions
- mdBook: v0.5.x
The repository contains complete games for each separate code sample to ensure the code works and runs.
Code samples live in src/code and then are organized by chapter and then
sections within a chapter.
Clone this book repository into a DragonRuby GTK engine directory and run the samples with:
./dragonruby book/src/code/chapter_03/01_inputHow to make a release:
- Merge the
mainbranch intooffline - Generate a new PDF via printing in Firefox, turning off the header and footer
- Generate an HTML version of the book and zip it up
- Create zips and upload them on itch.io
- Create tags and releases for the offline branch and the main branch
The 3D cover file is generated with https://diybookcovers.com/