Thor
Gosu
Thor | Gosu | |
---|---|---|
10 | 15 | |
5,087 | 1,975 | |
0.2% | 0.5% | |
6.9 | 6.8 | |
about 1 month ago | 15 days ago | |
Ruby | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Thor
-
CLI tools at Aha!
Ruby has always been a great general-purpose scripting language and is often used to create command-line utilities. Many of these use the excellent Thor gem to parse command-line options, but there's no escaping one fact: command-line utilities just aren't interesting. Never have been, never will be.
-
How to Build Your Own Rails Generator
All public methods in the generator will be called one after the other. Private methods will not be called but are available in your public methods like regular Ruby classes.
-
Any opinionated tool / framework for creating binary CLI tools?
ruby: http://whatisthor.com
-
Seeking recommendations or suggestions for learning Ruby to maintain the home directory?
I will add that if you want to develop a CLI tool that gives you various commands that you can run, I would have a look at something like thor to keep it organised and documented. But this is completely unnecessary as a first step - you can simply create a Ruby file that does a thing you want and invoke it directly.
- A more ruby-ish command line parsing - design idea
-
Bootstrapping with Ruby on Rails Generators and Templates
Not to be confused with generator functions (which you might be familiar with from Python or Javascript), Rails generators are custom Thor commands that focus on, well, generating things.
- Don't make me think, or why I switched to Rails from JavaScript SPAs
-
Building a Dot Matrix Animator
I wanted to provide a command-line interface for the user that was easy to use, and I also wanted to provide the flexibility with the options used to render the animation. After looking around online I found that Thor was a good tool to utilize. It allowed me to easily create a number of options that make this program much more versatile. An example below shows how a user can select which folder the source images are in, as well as what the background and foreground colors should be:
-
Move over Rake, Thor is the new King
I've used Thor a lot, but it's kind of terrible. It uses a custom non-POSIX-compliant option parser (ex: method_option :list, type: :array -> --list one two three, where as the POSIX way is --list one,two,three or --item one -- item two --item three) and will not error on unknown options or exit with -1 when not enough args are given. If you want a better CLI library, checkout dry-rb, command_kit, or cmdparse.
-
Ruby for replacing Unix shell scripts? (eg. a better Perl)
And Thor might be worth looking at if you have complex scripts: https://github.com/erikhuda/thor
Gosu
-
Crystal2Day: A simple 2D game framework in Crystal
For the beginning, it will be a simple 2D game library (or glorified SDL wrapper :D), similar to Ruby libraries like https://www.ruby2d.com/ or https://www.libgosu.org/ , albeit with some additional functions typical to 2D games (like scenes, maps, entities, ...) available. This is something I'm still missing in Crystal (there are some bindings for C libraries and some early or abandoned approaches, but that's about it).
-
My Ruby game library, MiniGL, has surpassed 100,000 total downloads
Sorry, I just realized that I only linked to Gosu's Linux instructions, but in their wiki there's also a page for Windows and another one for Mac OS.
-
ruby2d vs pygame
I didn't use these frameworks but if you want to go with Ruby, I would recommend Gosu, which is more active than Ruby2D (they have a pretty active Discord server). Since it's a bit low-level, you could also use my gem MiniGL which builds on Gosu to make a lot of things easier, and I also actively maintain.
- Don't make me think, or why I switched to Rails from JavaScript SPAs
-
My solo-developed, Ruby powered, platformer game Super Bombinhas will be available soon on Steam!
By the way, it's worth mentioning that there's a .deb for Debian-based distros that you can get for free on https://victords.itch.io/super-bombinhas. Also, if you're willing to do a bit more work, you should also be able to run it on Mac - you'd just have to install Ruby and the Gosu and MiniGL gems, then clone the game's repo and follow the Readme.
- Video-sources for learning Ruby from scratch
-
Started working on an isometric RPG project
Hi! I've wanted to create an RPG inspired by the first Paper Mario games for a long time, but having to deal with 3D graphics was always a blocker for me... So I finally managed to create an isometric 3D "engine" using only 2D libraries (Gosu and MiniGL) and I'm happy with the results so far.
-
Libraries for other languages similar to Ebiten?
Gosu (Ruby)
-
What game engine is good for ruby?
I've not used it myself in about 5 years but it looks like they have a pretty good tutorial on getting started on their wiki https://github.com/gosu/gosu/wiki/Ruby-Tutorial
-
A small sample of the large amount of content from the free and open source 2D platformer Super Bombinhas, written in Ruby. Download on https://victords.itch.io/super-bombinhas
Neither, I use Gosu and my own little library, MiniGL.
What are some alternatives?
TTY - Toolkit for developing sleek command line apps.
ruby2d - 🎨 The Ruby 2D gem
Rake - A make-like build utility for Ruby.
Gamebox - A game template for building and distributing Gosu apps.
GLI - Make awesome command-line applications the easy way
Yeah - Ruby video game framework
Commander - The complete solution for Ruby command-line executables
ocra - One-Click Ruby Application Builder
dry-cli - General purpose Command Line Interface (CLI) framework for Ruby
Phaser - Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser]
Trollop - Optimist is a commandline option parser for Ruby that just gets out of your way.
minigl - A minimal Game Library built on top of the Gosu gem.