Skip to content

Instantly share code, notes, and snippets.

@ShadowBelmolve
Created March 21, 2009 19:04
Show Gist options
  • Save ShadowBelmolve/82945 to your computer and use it in GitHub Desktop.
Save ShadowBelmolve/82945 to your computer and use it in GitHub Desktop.
class CharTeste
attr_reader :sprites, :actions
def initialize
@sprites = {}
#@charDir = $CONF["root"] + '/sprites/teste/'
@charDir = '../sprites/teste/'
@actions = ["walk"]
for i in @actions
if File.directory? @charDir + i
@sprites[i] = (Dir.new(@charDir + i).entries - ['.','..']).sort
end
end
end
def to_s
puts "Char Teste!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment