mirror of
https://github.com/maddievision/Celestial.git
synced 2024-08-14 23:55:37 +00:00
map2xml
This commit is contained in:
parent
ca3c5efbfe
commit
2e8d97a0da
1 changed files with 9 additions and 0 deletions
9
map2xml.rb
Normal file
9
map2xml.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
require "./celeste_map_reader"
|
||||
require 'ruby2d'
|
||||
|
||||
# fn = 'app/Content/Maps/1-ForsakenCity.bin'
|
||||
|
||||
fn = ARGV[0]
|
||||
|
||||
a = CelesteMapReader.new(fn)
|
||||
File.open("#{File.basename(fn)}.xml", "wb") { |f| f.write a.root.inspect }
|
Loading…
Reference in a new issue