
In this video we'll install the Ruby programming language onto your Windows computer.
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
To write Ruby code, you need a text editor...
Let's create our first Ruby program!
What are Variables?
Adding comments to your code
Doing Math With Ruby is Easy!
What Is the Order of Operations?
Comparing Things With Ruby
What are the assignment operators?
How to get user input
How to create an If Else Statement
Testing for different things using AND and OR
Let's do some stringy things!
What is an Array?
Arrays of Arrays
What is a While Loop?
What is an Until Loop?
Learn about For Loops and Each Loops
Let's build a Fizz Buzz game!
What is a Hash?
How to manipulate a Hash
What is a Method?
More about Methods
How to generate Random Numbers
Let's talk about Classes
How to Create a Class
Creating a Class Getter
Creating a Class Setter
How to Add additional Methods to your Class.
Adding Getters and Setters automatically.
Let's draw our box
Using things from other Classes in your Class.
What is Gosu?
How to create a Window
How To Add A Background Image
How to create a Player Class
More on Player Classes
A bit more about our Player Class
Lets add some stars
More on Stars...
How to keep track of score and add sound
Build a simple whack a mole game in Ruby for game development, featuring a hammer, moving mouse, mole pop-ups, hit and miss feedback, a score, and a 100-second countdown.
Download mole and hammer images, save them in the project's images folder, create a whack a mole Ruby file, define the class with an 800 by 600 window, and show.
Set velocity x and velocity y to 5; update x and y in the update method to move the mole, and reverse velocity at screen bounds 0, 800, and 600.
draw and center a hammer sprite that follows the mouse, stays visible, and uses image assets and coordinates to build a basic whack-a-mole game in Ruby.
Detect left mouse clicks and determine if the hammer hits the mole within 60 pixels. Update the hit state and draw screen colors to signal hits or misses.
Set a 60-second countdown, manage the game state with a playing state, and draw the timer and a game over message when time runs out.
Finish implementing replay prompt for the whack a mole game by drawing a 'press space bar to play again' message after game over and reset time and score on restart.
Package your Ruby game into a Windows executable using the Ocra gem, by installing it and running a command from your game directory, naming the output file, and including images.
Enjoy lifetime access to 60-plus courses, including Ruby and game development topics, with a $200 discount for three days, progress tracking, discussion-based first lessons, and a 30-day money-back guarantee.
Game design and development with the Ruby programming language is great fun...learn how in this course.
We'll be using the Gosu library for Ruby to create a simple 2D spaceship game. Follow along and build your own copy!
We'll start out by learning Ruby. You don't need any prior knowledge of programming to take this course, we'll start from the beginning and teach you everything you need.
After we have a solid understanding of Ruby, we'll move into Game programming using the Ruby Gosu Library. Gosu does most of the heavy lifting for us, allowing us to create games quickly and relatively easily!