-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathedit.rb
35 lines (32 loc) · 1008 Bytes
/
edit.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 譜面作成用のアプリケーション起動ファイル
#
# 楽曲データ用のディレクトリ、または楽曲データ番号を引数に指定して起動すること
#
# $ ruby ./edit.rb ./data/music/012_hoge/ #=> OK!
# $ ruby ./edit.rb 012_hoge #=> OK!
# $ ruby ./edit.rb 12 #=> OK!
# $ ruby ./edit.rb hoge #=> BAD!
#
if ARGV.size != 1
puts <<-EOS
Usage:
ruby ./edit.rb ./data/music/012_music_data_dir/
ruby ./edit.rb 012_music_data_dir
ruby ./edit.rb 12
EOS
exit
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'app'))
REINO_OTOGE_EDIT = true
require 'dxruby'
require 'ayame'
require 'reino_otoge'
ReinoOtoge.demo_mode! if ENV['DEMO']
ReinoOtoge.debug_mode! if ENV['DEBUG']
EDIT_SCENE = ReinoOtoge::EditScene.new(ARGV[0])
ReinoOtoge.init
ReinoOtoge.instance_variable_set(:@current_scene, EDIT_SCENE)
Window.loop do
ReinoOtoge.play
Window.caption = "ReinoOtoge EDIT #{Window.real_fps}(fps)"
end