1. Home
  2. Computing & Technology
  3. Ruby

Make Your Sprite Move

By , About.com Guide

1 of 5

Now that we have the player sprite loaded and displayed, and the player itself is a class, it's time to make it move. There are two ways to handle input: handling the events or getting the keyboard state. In this article, only events will be discussed.

Before getting started, be sure to download the part 2 example files. This is a different file than the previous articles, so you'll need to download the file linked to above. Note that all pixel art (such as the player, aliens and bullets) were created by Pixel_Outlaw.

Explore Ruby
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Ruby
  4. Tasks & Scripts
  5. Game Programming
  6. Make Your Sprite Move

©2009 About.com, a part of The New York Times Company.

All rights reserved.