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


