1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Embedding Images in Gosu Programs


1 of 4

Embedding Images in Gosu Programs
Embedding Images in Gosu Programs

Games can rarely run from a single file. Even if all of the game's code fits in a single file, there's bound to be image and sound data that accompanies it. Traditionally, to distribute a game, you zip the code and data up in a zip archive and distribute this file. However, sending a zip file isn't very transparent, and you often need a file hosting service to host the zip file. You can't, for example, post the game on a forum in plain text, or on a pastebin. The method outlined below allows you to embed your data files right into your Ruby script.

This article is part of a series. Read more articles about Rapid Game Prototyping in Ruby

  1. About.com
  2. Technology
  3. Ruby
  4. Tutorials
  5. Rapid Game Prototyping with Gosu
  6. Embedding Images in Gosu Programs

©2014 About.com. All rights reserved.