Created
March 21, 2009 19:04
-
-
Save ShadowBelmolve/82945 to your computer and use it in GitHub Desktop.
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
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