Skip to content

Instantly share code, notes, and snippets.

@aim-up
Created October 24, 2012 11:35
Show Gist options
  • Save aim-up/3945589 to your computer and use it in GitHub Desktop.
Save aim-up/3945589 to your computer and use it in GitHub Desktop.
Trying to figure out the path to the images directory
require "jewel_thief/version"
require "rubygems"
require "rubygame"
require "jewel_thief/game"
require "jewel_thief/player"
module JewelThief
Game.new
end
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