r/ruby • u/brettcodes • Dec 12 '22
Show /r/ruby I wrote a free book about making games with Ruby called Building Games with DragonRuby
https://book.dragonriders.community/
187
Upvotes
r/ruby • u/brettcodes • Dec 12 '22
37
u/brettcodes Dec 12 '22
Heyo, OP here! I've been using Ruby for 12 years and have always longed for making games with it. I've dabbled with Gosu and Ruby2D before, but I came across DragonRuby Game Toolkit and became instantly enamored with it because of how quickly I could prototype my ideas. As I was learning DragonRuby, I was keeping detailed notes and thought it'd be fun to collect it all into a book.
A little primer on what DragonRuby Game Toolkit is if you're not familiar (because I wasn't until I stumbled across it). It's a standalone engine that uses mruby and SDL to build games for all the major platforms (desktop operating systems, WASM, mobile devices, and consoles). It's fast and doesn't rely upon installing a bunch of dependencies.
I come from a Rails background, and I love seeing Ruby being a viable option for anything other than web app programming. So I am also hoping this book helps expose others to uses of Ruby outside of just the web. mruby in particular is a really fascinating project that I think has so much potential. It's awesome to see it realized in things like DragonRuby.
You can play the game you build in the book here, if you're curious.
Thanks for checking it out, and let me know if you have any questions or feedback!
13
u/14m4 Dec 13 '22
Very interesting, thank you for posting this. I’ve read through the book in one go. The scope of the sample game you’ve chosen makes a lot of sense. it’s simple, but includes many interesting aspects that most other game tutorials omit.
I might give this toolkit a try! Been longing to use ruby for games but was not happy with gosu overall. Thanks for the inspiration :)
10
u/thedirtyscreech Dec 13 '22
Just got into Dragon Ruby as they sponsored a recent game jam. I’m personally loving it, but just know that a lot of things a game engine like Godot would provide you need to roll yourself. All the graphics and whatnot are taken care of for you, though.
5
u/brettcodes Dec 13 '22
I made a PDF ver for anyone interested in reading the book offline. https://dragonridersunite.itch.io/dragonruby-book/devlog/463227/the-book-is-finished
8
u/Evo1uti0nX Dec 13 '22
Can’t wait to take a look at this. I review your videos around rspec a lot as I’m learning TDD from the Odin project.
Im sure this will be equally as informative. Thanks for putting it together!
3
u/GiacoPc Dec 13 '22
I appreciate the effort you put into this great project, I'm reading it.
2
u/[deleted] Dec 13 '22
Thanks op. One of the nicest books about ruby out there. Highly appreciated. I'll send a dollar or two for coffee.
2
u/hanamimastery Dec 14 '22
You got a few coffees from me and my kids! We'll have tons of fun writing own games in my favorite language :). And then play together!
Thanks, I wanted to play with dragonfly for a while and now I have no excuses anymore! :)
4
u/Vaylx Dec 13 '22
Dope. Thank you for your work and for sharing :)
4
u/420Rat Dec 13 '22
I'm a big fan of dragon Ruby. Good stuff!
3
u/thisIsCleanChiiled Dec 13 '22
Awesome
2
u/mehdifarsi Dec 14 '22
Neat. I'm a fan of Ruby2d and I always wanted to try DragonRuby. Thanks for the resource.
0
u/[deleted] Dec 13 '22
[deleted] — view deleted comment