Created
October 24, 2012 11:35
-
-
Save aim-up/3945589 to your computer and use it in GitHub Desktop.
Trying to figure out the path to the images directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "jewel_thief/version" | |
require "rubygems" | |
require "rubygame" | |
require "jewel_thief/game" | |
require "jewel_thief/player" | |
module JewelThief | |
Game.new | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygame" | |
module JewelThief | |
class Player | |
include Rubygame::Sprites::Sprite | |
def initialize | |
super() | |
@image = Surface.load 'jewel_thief/images/player.png' | |
@rect = @image.make_rect | |
end | |
def draw(on_surface) | |
@image.blit on_surface, @rect | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment