mirror of
https://github.com/maddievision/Celestial.git
synced 2024-08-14 23:55:37 +00:00
10 lines
277 B
Ruby
10 lines
277 B
Ruby
require "./celeste_map_reader"
|
|
require 'ruby2d'
|
|
# fn = 'app/Content/Maps/1-ForsakenCity.bin'
|
|
|
|
ARGV.each do |fn|
|
|
base = File.basename(fn, ".bin")
|
|
a = CelesteMapReader.new(fn)
|
|
File.open("#{base}.xml", "wb") { |f| f.write a.root.inspect }
|
|
a.write_json("#{base}.json")
|
|
end
|