cyross-ruby-miyako 2.0.5.1.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +1092 -929
- data/Rakefile +7 -7
- data/defines.h +144 -144
- data/extern.h +29 -29
- data/install_miyako.rb +87 -87
- data/lib/Miyako/API/audio.rb +572 -198
- data/lib/Miyako/API/basic_data.rb +825 -573
- data/lib/Miyako/API/bitmap.rb +534 -507
- data/lib/Miyako/API/choices.rb +481 -475
- data/lib/Miyako/API/collision.rb +486 -460
- data/lib/Miyako/API/diagram.rb +586 -561
- data/lib/Miyako/API/drawing.rb +151 -151
- data/lib/Miyako/API/exceptions.rb +105 -0
- data/lib/Miyako/API/fixedmap.rb +462 -428
- data/lib/Miyako/API/font.rb +430 -403
- data/lib/Miyako/API/input.rb +456 -447
- data/lib/Miyako/API/layout.rb +636 -433
- data/lib/Miyako/API/map.rb +583 -529
- data/lib/Miyako/API/map_event.rb +222 -198
- data/lib/Miyako/API/modules.rb +357 -109
- data/lib/Miyako/API/movie.rb +166 -154
- data/lib/Miyako/API/parts.rb +276 -189
- data/lib/Miyako/API/plane.rb +205 -166
- data/lib/Miyako/API/screen.rb +341 -325
- data/lib/Miyako/API/shape.rb +443 -443
- data/lib/Miyako/API/sprite.rb +771 -752
- data/lib/Miyako/API/sprite_animation.rb +490 -481
- data/lib/Miyako/API/sprite_list.rb +1135 -0
- data/lib/Miyako/API/spriteunit.rb +168 -147
- data/lib/Miyako/API/story.rb +350 -300
- data/lib/Miyako/API/textbox.rb +770 -725
- data/lib/Miyako/API/utility.rb +419 -388
- data/lib/Miyako/API/viewport.rb +189 -139
- data/lib/Miyako/API/yuki.rb +1226 -996
- data/lib/Miyako/EXT/miyako_cairo.rb +62 -62
- data/lib/Miyako/EXT/raster_scroll.rb +138 -138
- data/lib/Miyako/EXT/slides.rb +157 -157
- data/lib/Miyako/miyako.rb +201 -171
- data/lib/Miyako/miyako_require_only.rb +35 -0
- data/miyako_basicdata.c +590 -590
- data/miyako_bitmap.c +1225 -1225
- data/miyako_collision.c +403 -403
- data/miyako_drawing.c +187 -187
- data/miyako_font.c +334 -334
- data/miyako_hsv.c +830 -830
- data/miyako_input_audio.c +254 -0
- data/miyako_layout.c +191 -191
- data/miyako_no_katana.c +1078 -1074
- data/miyako_sprite2.c +431 -0
- data/miyako_transform.c +438 -438
- data/miyako_utility.c +288 -288
- data/sample/Animation1/m1ku.rb +68 -68
- data/sample/Animation2/lex.rb +96 -96
- data/sample/Diagram_sample/diagram_sample_yuki2.rb +328 -386
- data/sample/Room3/blue.rb +297 -297
- data/sample/Room3/ending.rb +180 -180
- data/sample/Room3/green.rb +220 -220
- data/sample/Room3/main.rb +119 -119
- data/sample/Room3/main_component.rb +59 -59
- data/sample/Room3/red.rb +227 -227
- data/sample/Room3/room3.rb +25 -27
- data/sample/Room3/title.rb +184 -184
- data/sample/ball_action_sample.rb +204 -204
- data/sample/blit_rop.rb +70 -70
- data/sample/cairo_sample.rb +25 -25
- data/sample/circle_collision_test.rb +66 -66
- data/sample/collision_test.rb +33 -33
- data/sample/collision_test2.rb +108 -108
- data/sample/fixed_map_test/fixed_map_sample.rb +140 -140
- data/sample/fixed_map_test/readme.txt +72 -72
- data/sample/map_test/chara.rb +58 -58
- data/sample/map_test/main_parts.rb +69 -69
- data/sample/map_test/main_scene.rb +153 -153
- data/sample/map_test/map_manager.rb +75 -75
- data/sample/map_test/map_test.rb +23 -23
- data/sample/map_test/oasis.rb +71 -71
- data/sample/map_test/readme.txt +89 -89
- data/sample/map_test/route.rb +157 -157
- data/sample/map_test/town.rb +74 -74
- data/sample/polygon_test.rb +35 -35
- data/sample/rasterscroll.rb +24 -24
- data/sample/takahashi.rb +42 -42
- data/sample/textbox_sample.rb +189 -189
- data/sample/transform.rb +54 -54
- data/sample/utility_test.rb +73 -73
- data/sample/utility_test2.rb +61 -61
- data/sample/utility_test3.rb +64 -64
- data/sample/utility_test4.rb +73 -73
- data/uninstall_miyako.rb +19 -19
- data/win/miyako_no_katana.so +0 -0
- metadata +7 -2
data/sample/Room3/ending.rb
CHANGED
@@ -1,180 +1,180 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
# エンディング定義
|
3
|
-
class Ending
|
4
|
-
include Story::Scene
|
5
|
-
include MainComponent
|
6
|
-
|
7
|
-
def init
|
8
|
-
@yuki = Yuki.new
|
9
|
-
|
10
|
-
def @yuki.text_wait(*txt)
|
11
|
-
txt.each{|t|
|
12
|
-
text t
|
13
|
-
wait 0.3
|
14
|
-
}
|
15
|
-
end
|
16
|
-
|
17
|
-
@yuki.select_textbox(message_box[:box])
|
18
|
-
@bg = Sprite.new(:file => "image/congratulation_bg.png", :type => :as)
|
19
|
-
@bg.oh = @bg.h / 2
|
20
|
-
@anim = SpriteAnimation.new(:sprite=>@bg, :wait=>0.5)
|
21
|
-
@cong_text = Sprite.new(:file=>"image/congra.png", :type => :ck)
|
22
|
-
@cong_text.centering
|
23
|
-
@visible_cong_text = false
|
24
|
-
@cong_man = Sprite.new(:file=>"image/congratulation.png", :type => :ck)
|
25
|
-
@cong_man.center
|
26
|
-
@visible_cong_man = false
|
27
|
-
@timer = WaitCounter.new(3)
|
28
|
-
@staff_roll = [Shape.text(:font=>message_box[:box].font, :align=>:center){
|
29
|
-
text "シナリオ・グラフィック・"
|
30
|
-
cr
|
31
|
-
text "スクリプティング・その他雑用"
|
32
|
-
cr.cr
|
33
|
-
text "サイロス 誠"
|
34
|
-
},
|
35
|
-
Shape.text(:font=>message_box[:box].font){ text "Powerd By Miyako 2.0" }
|
36
|
-
]
|
37
|
-
@staff_roll.each{|st|
|
38
|
-
st.snap(message_box)
|
39
|
-
st.centering
|
40
|
-
}
|
41
|
-
@index = -1
|
42
|
-
|
43
|
-
@end_roll = Shape.text(:font=>message_box[:box].font){ text "T H E E N D" }
|
44
|
-
@end_roll.snap(message_box)
|
45
|
-
@end_roll.centering
|
46
|
-
@yuki.regist_parts(:end_roll, @end_roll)
|
47
|
-
@yuki.vars[:staff_roll] = self.method(:staff_roll)
|
48
|
-
|
49
|
-
@exec = self.method(:view_in1)
|
50
|
-
end
|
51
|
-
|
52
|
-
def setup
|
53
|
-
@yuki.setup
|
54
|
-
@anim.start
|
55
|
-
@timer.start
|
56
|
-
end
|
57
|
-
|
58
|
-
def update
|
59
|
-
return nil if Input.quit_or_escape?
|
60
|
-
@anim.update_animation
|
61
|
-
return @exec.call
|
62
|
-
end
|
63
|
-
|
64
|
-
def render
|
65
|
-
@anim.render
|
66
|
-
@cong_text.render
|
67
|
-
@cong_man.render if @visible_cong_man
|
68
|
-
if @exec == self.method(:plot_executing)
|
69
|
-
@yuki.render
|
70
|
-
message_box.render
|
71
|
-
@staff_roll[@index].render if @index >= 0
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
def view_in1
|
76
|
-
if @timer.finish?
|
77
|
-
@visible_cong_man = true
|
78
|
-
@timer.start
|
79
|
-
@exec = self.method(:view_in2)
|
80
|
-
end
|
81
|
-
return @now
|
82
|
-
end
|
83
|
-
|
84
|
-
def view_in2
|
85
|
-
if @timer.finish?
|
86
|
-
@exec = self.method(:plot_executing)
|
87
|
-
@yuki.start_plot(plot)
|
88
|
-
end
|
89
|
-
return @now
|
90
|
-
end
|
91
|
-
|
92
|
-
def plot_executing
|
93
|
-
message_box.update_animation
|
94
|
-
command_box.update_animation
|
95
|
-
@yuki.update
|
96
|
-
r = @yuki.executing? ? @now : @yuki.result
|
97
|
-
if @yuki.is_scenario?(r)
|
98
|
-
@yuki.exec_plot(r)
|
99
|
-
r = @now
|
100
|
-
end
|
101
|
-
return r
|
102
|
-
end
|
103
|
-
|
104
|
-
def plot
|
105
|
-
yuki_plot do
|
106
|
-
text "「コ〜ン "
|
107
|
-
wait 0.3
|
108
|
-
text "グラッチュ "
|
109
|
-
wait 0.3
|
110
|
-
text "レ〜ショ〜ン♪」"
|
111
|
-
pause.cr
|
112
|
-
text "「いやぁ、"
|
113
|
-
wait 0.2
|
114
|
-
text "見事難関をクリアしたとはオドロキだ!"
|
115
|
-
pause.cr
|
116
|
-
text " 君には全くもって、感服だ!」"
|
117
|
-
pause.clear
|
118
|
-
text "「勿論、クリアしたんだから"
|
119
|
-
wait 0.5
|
120
|
-
cr
|
121
|
-
text " 商品をプレゼントしなくちゃね!」"
|
122
|
-
pause.clear
|
123
|
-
text_wait "「まずは", "・", "・", "・"
|
124
|
-
text "「青いはいからうどん」1年分!"
|
125
|
-
wait 0.5
|
126
|
-
cr
|
127
|
-
text_wait " 次に", "・", "・", "・"
|
128
|
-
text "いつも真っ赤「炎天下ツアー」!"
|
129
|
-
wait 0.5
|
130
|
-
cr
|
131
|
-
text_wait " 最後に", "・", "・", "・"
|
132
|
-
text "「緑のバルーン」提供の沖縄旅行!"
|
133
|
-
wait 0.5
|
134
|
-
cr
|
135
|
-
text " 現地集合現地解散!"
|
136
|
-
wait 0.5
|
137
|
-
cr
|
138
|
-
text " さ、遠慮せずにうけとってくれ!」"
|
139
|
-
pause.clear
|
140
|
-
text "「今日は見事クリアされたけど、"
|
141
|
-
cr
|
142
|
-
text " 次回はもっと"
|
143
|
-
color(:red){ "ヒィヒィ"}
|
144
|
-
text "言わせる"
|
145
|
-
cr
|
146
|
-
text " 仕掛けを用意するから覚悟しとけよ〜!」"
|
147
|
-
pause.clear
|
148
|
-
text "「次回の挑戦者はキミだ!"
|
149
|
-
wait 0.5
|
150
|
-
cr
|
151
|
-
text " じゃ、また来週! "
|
152
|
-
wait 0.5
|
153
|
-
text "バイバ〜イ!」"
|
154
|
-
pause.clear
|
155
|
-
vars[:staff_roll].call
|
156
|
-
show :end_roll
|
157
|
-
pause.clear
|
158
|
-
hide :end_roll
|
159
|
-
nil
|
160
|
-
end
|
161
|
-
end
|
162
|
-
|
163
|
-
def staff_roll
|
164
|
-
@staff_roll.length.times{|idx|
|
165
|
-
@index = idx
|
166
|
-
@yuki.wait 2.0
|
167
|
-
}
|
168
|
-
@index = -1
|
169
|
-
end
|
170
|
-
|
171
|
-
def final
|
172
|
-
@anim.stop
|
173
|
-
end
|
174
|
-
|
175
|
-
def dispose
|
176
|
-
@cong_man.dispose
|
177
|
-
@cong_text.dispose
|
178
|
-
@anim.dispose
|
179
|
-
end
|
180
|
-
end
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
# エンディング定義
|
3
|
+
class Ending
|
4
|
+
include Story::Scene
|
5
|
+
include MainComponent
|
6
|
+
|
7
|
+
def init
|
8
|
+
@yuki = Yuki.new
|
9
|
+
|
10
|
+
def @yuki.text_wait(*txt)
|
11
|
+
txt.each{|t|
|
12
|
+
text t
|
13
|
+
wait 0.3
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
@yuki.select_textbox(message_box[:box])
|
18
|
+
@bg = Sprite.new(:file => "image/congratulation_bg.png", :type => :as)
|
19
|
+
@bg.oh = @bg.h / 2
|
20
|
+
@anim = SpriteAnimation.new(:sprite=>@bg, :wait=>0.5)
|
21
|
+
@cong_text = Sprite.new(:file=>"image/congra.png", :type => :ck)
|
22
|
+
@cong_text.centering!
|
23
|
+
@visible_cong_text = false
|
24
|
+
@cong_man = Sprite.new(:file=>"image/congratulation.png", :type => :ck)
|
25
|
+
@cong_man.center!.bottom!
|
26
|
+
@visible_cong_man = false
|
27
|
+
@timer = WaitCounter.new(3)
|
28
|
+
@staff_roll = [Shape.text(:font=>message_box[:box].font, :align=>:center){
|
29
|
+
text "シナリオ・グラフィック・"
|
30
|
+
cr
|
31
|
+
text "スクリプティング・その他雑用"
|
32
|
+
cr.cr
|
33
|
+
text "サイロス 誠"
|
34
|
+
},
|
35
|
+
Shape.text(:font=>message_box[:box].font){ text "Powerd By Miyako 2.0" }
|
36
|
+
]
|
37
|
+
@staff_roll.each{|st|
|
38
|
+
st.snap(message_box)
|
39
|
+
st.centering!
|
40
|
+
}
|
41
|
+
@index = -1
|
42
|
+
|
43
|
+
@end_roll = Shape.text(:font=>message_box[:box].font){ text "T H E E N D" }
|
44
|
+
@end_roll.snap(message_box)
|
45
|
+
@end_roll.centering!
|
46
|
+
@yuki.regist_parts(:end_roll, @end_roll)
|
47
|
+
@yuki.vars[:staff_roll] = self.method(:staff_roll)
|
48
|
+
|
49
|
+
@exec = self.method(:view_in1)
|
50
|
+
end
|
51
|
+
|
52
|
+
def setup
|
53
|
+
@yuki.setup
|
54
|
+
@anim.start
|
55
|
+
@timer.start
|
56
|
+
end
|
57
|
+
|
58
|
+
def update
|
59
|
+
return nil if Input.quit_or_escape?
|
60
|
+
@anim.update_animation
|
61
|
+
return @exec.call
|
62
|
+
end
|
63
|
+
|
64
|
+
def render
|
65
|
+
@anim.render
|
66
|
+
@cong_text.render
|
67
|
+
@cong_man.render if @visible_cong_man
|
68
|
+
if @exec == self.method(:plot_executing)
|
69
|
+
@yuki.render
|
70
|
+
message_box.render
|
71
|
+
@staff_roll[@index].render if @index >= 0
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
def view_in1
|
76
|
+
if @timer.finish?
|
77
|
+
@visible_cong_man = true
|
78
|
+
@timer.start
|
79
|
+
@exec = self.method(:view_in2)
|
80
|
+
end
|
81
|
+
return @now
|
82
|
+
end
|
83
|
+
|
84
|
+
def view_in2
|
85
|
+
if @timer.finish?
|
86
|
+
@exec = self.method(:plot_executing)
|
87
|
+
@yuki.start_plot(plot)
|
88
|
+
end
|
89
|
+
return @now
|
90
|
+
end
|
91
|
+
|
92
|
+
def plot_executing
|
93
|
+
message_box.update_animation
|
94
|
+
command_box.update_animation
|
95
|
+
@yuki.update
|
96
|
+
r = @yuki.executing? ? @now : @yuki.result
|
97
|
+
if @yuki.is_scenario?(r)
|
98
|
+
@yuki.exec_plot(r)
|
99
|
+
r = @now
|
100
|
+
end
|
101
|
+
return r
|
102
|
+
end
|
103
|
+
|
104
|
+
def plot
|
105
|
+
yuki_plot do
|
106
|
+
text "「コ〜ン "
|
107
|
+
wait 0.3
|
108
|
+
text "グラッチュ "
|
109
|
+
wait 0.3
|
110
|
+
text "レ〜ショ〜ン♪」"
|
111
|
+
pause.cr
|
112
|
+
text "「いやぁ、"
|
113
|
+
wait 0.2
|
114
|
+
text "見事難関をクリアしたとはオドロキだ!"
|
115
|
+
pause.cr
|
116
|
+
text " 君には全くもって、感服だ!」"
|
117
|
+
pause.clear
|
118
|
+
text "「勿論、クリアしたんだから"
|
119
|
+
wait 0.5
|
120
|
+
cr
|
121
|
+
text " 商品をプレゼントしなくちゃね!」"
|
122
|
+
pause.clear
|
123
|
+
text_wait "「まずは", "・", "・", "・"
|
124
|
+
text "「青いはいからうどん」1年分!"
|
125
|
+
wait 0.5
|
126
|
+
cr
|
127
|
+
text_wait " 次に", "・", "・", "・"
|
128
|
+
text "いつも真っ赤「炎天下ツアー」!"
|
129
|
+
wait 0.5
|
130
|
+
cr
|
131
|
+
text_wait " 最後に", "・", "・", "・"
|
132
|
+
text "「緑のバルーン」提供の沖縄旅行!"
|
133
|
+
wait 0.5
|
134
|
+
cr
|
135
|
+
text " 現地集合現地解散!"
|
136
|
+
wait 0.5
|
137
|
+
cr
|
138
|
+
text " さ、遠慮せずにうけとってくれ!」"
|
139
|
+
pause.clear
|
140
|
+
text "「今日は見事クリアされたけど、"
|
141
|
+
cr
|
142
|
+
text " 次回はもっと"
|
143
|
+
color(:red){ "ヒィヒィ"}
|
144
|
+
text "言わせる"
|
145
|
+
cr
|
146
|
+
text " 仕掛けを用意するから覚悟しとけよ〜!」"
|
147
|
+
pause.clear
|
148
|
+
text "「次回の挑戦者はキミだ!"
|
149
|
+
wait 0.5
|
150
|
+
cr
|
151
|
+
text " じゃ、また来週! "
|
152
|
+
wait 0.5
|
153
|
+
text "バイバ〜イ!」"
|
154
|
+
pause.clear
|
155
|
+
vars[:staff_roll].call
|
156
|
+
show :end_roll
|
157
|
+
pause.clear
|
158
|
+
hide :end_roll
|
159
|
+
nil
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
def staff_roll
|
164
|
+
@staff_roll.length.times{|idx|
|
165
|
+
@index = idx
|
166
|
+
@yuki.wait 2.0
|
167
|
+
}
|
168
|
+
@index = -1
|
169
|
+
end
|
170
|
+
|
171
|
+
def final
|
172
|
+
@anim.stop
|
173
|
+
end
|
174
|
+
|
175
|
+
def dispose
|
176
|
+
@cong_man.dispose
|
177
|
+
@cong_text.dispose
|
178
|
+
@anim.dispose
|
179
|
+
end
|
180
|
+
end
|