Skip to content

Commit

Permalink
started writing map file loading and begining to define syntax for ma…
Browse files Browse the repository at this point in the history
…p files
  • Loading branch information
jackRogers committed Apr 20, 2012
1 parent 8804e0d commit 7171ee8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions DD.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def initialize(position,sprite,range,damage,cooldown)
#class for game mapping
class GameMap

def initialize(MapFile)
def initialize(mapFile)

end

Expand All @@ -62,6 +62,10 @@ def main(map=false)
mapString = fh.gets
puts mapString
#now intialize an array and fill it using the string
else
mapString = map
puts mapString
end



Expand All @@ -86,4 +90,7 @@ def main(map=false)
#sprite
#hp
#enemy path



#Run main Function
main(map1)

0 comments on commit 7171ee8

Please sign in to comment.