ippa-movie_maker 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/History.txt +27 -0
  2. data/README.rdoc +154 -0
  3. data/Rakefile +19 -0
  4. data/examples/axe.rb +24 -0
  5. data/examples/balls.rb +20 -0
  6. data/examples/echoes.rb +30 -0
  7. data/examples/gosu_base.rb +40 -0
  8. data/examples/gosu_rain.rb +34 -0
  9. data/examples/gosu_river_of_stars.rb +35 -0
  10. data/examples/gosu_triangles.rb +34 -0
  11. data/examples/gosu_wish_upon_a_star.rb +48 -0
  12. data/examples/ippagaming_intro.rb +23 -0
  13. data/examples/media/23700__hazure__chop.wav +0 -0
  14. data/examples/media/Establo.ttf +0 -0
  15. data/examples/media/FeaturedItem.ttf +0 -0
  16. data/examples/media/FreeSans.ttf +0 -0
  17. data/examples/media/Hursheys.ttf +0 -0
  18. data/examples/media/axe.png +0 -0
  19. data/examples/media/axe.svg +136 -0
  20. data/examples/media/ball.png +0 -0
  21. data/examples/media/ball.svg +182 -0
  22. data/examples/media/black.bmp +0 -0
  23. data/examples/media/blue_triangle.png +0 -0
  24. data/examples/media/blue_triangle.svg +81 -0
  25. data/examples/media/chop.wav +0 -0
  26. data/examples/media/cloth_background.png +0 -0
  27. data/examples/media/drawing.svg +86 -0
  28. data/examples/media/drip.wav +0 -0
  29. data/examples/media/green_triangle.png +0 -0
  30. data/examples/media/green_triangle.svg +104 -0
  31. data/examples/media/hit.wav +0 -0
  32. data/examples/media/ippa_gaming.png +0 -0
  33. data/examples/media/ippa_gaming.svg +463 -0
  34. data/examples/media/oil_drip.wav +0 -0
  35. data/examples/media/outdoor_scene.bmp +0 -0
  36. data/examples/media/outdoor_scene.png +0 -0
  37. data/examples/media/outdoor_scene.svg +316 -0
  38. data/examples/media/rain-bak1.wav +0 -0
  39. data/examples/media/rain.wav +0 -0
  40. data/examples/media/rain2.wav +0 -0
  41. data/examples/media/raindrop.png +0 -0
  42. data/examples/media/raindrop.svg +87 -0
  43. data/examples/media/raindrop_small.bmp +0 -0
  44. data/examples/media/raindrop_small.png +0 -0
  45. data/examples/media/red_triangle.png +0 -0
  46. data/examples/media/red_triangle.svg +81 -0
  47. data/examples/media/spaceship_noalpha.png +0 -0
  48. data/examples/media/star_5.png +0 -0
  49. data/examples/media/star_5.svg +83 -0
  50. data/examples/media/star_6.png +0 -0
  51. data/examples/media/star_6.svg +86 -0
  52. data/examples/rain.rb +26 -0
  53. data/examples/rain_advanced.rb +26 -0
  54. data/examples/rubygame_river_of_stars.rb +28 -0
  55. data/examples/zoom.rb +27 -0
  56. data/lib/movie_maker.rb +411 -0
  57. data/lib/movie_maker/action.rb +389 -0
  58. data/lib/movie_maker/core_extensions.rb +17 -0
  59. data/lib/movie_maker/gosu_autoload.rb +38 -0
  60. data/lib/movie_maker/gosu_clock.rb +139 -0
  61. data/lib/movie_maker/named_resource.rb +254 -0
  62. data/lib/movie_maker/sprite.rb +157 -0
  63. metadata +126 -0
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/ruby
2
+ require File.join("..", "lib", "movie_maker")
3
+
4
+ include Rubygame
5
+ include MovieMaker
6
+ include MovieMaker::Rubygame
7
+
8
+ Rubygame.init()
9
+ Surface.autoload_dirs = [ "media" ]
10
+ Sound.autoload_dirs = [ "media" ]
11
+
12
+ @screen = Screen.set_mode([1024, 768], 0, [HWSURFACE, DOUBLEBUF])
13
+ movie = Movie.new(:screen => @screen, :background => Color[:white])
14
+
15
+ #
16
+ # Not finished yet
17
+ #
18
+ @ippa_gaming = Sprite.new("ippa_gaming.png")
19
+ @black = Sprite.new("black.bmp")
20
+ movie.between(1,3).fade(@ippa_gaming)
21
+ movie.between(1,3).show(@ippa_gaming)
22
+
23
+ movie.play
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,136 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+ <svg
4
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
5
+ xmlns:cc="http://creativecommons.org/ns#"
6
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
+ xmlns:svg="http://www.w3.org/2000/svg"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:xlink="http://www.w3.org/1999/xlink"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="744.09448819"
13
+ height="1052.3622047"
14
+ id="svg2"
15
+ sodipodi:version="0.32"
16
+ inkscape:version="0.46"
17
+ inkscape:export-filename="C:\Dev\projects\rubygame_movie_maker\samples\media\axe.png"
18
+ inkscape:export-xdpi="24.959341"
19
+ inkscape:export-ydpi="24.959341"
20
+ sodipodi:docname="axe.svg"
21
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
22
+ <defs
23
+ id="defs4">
24
+ <linearGradient
25
+ inkscape:collect="always"
26
+ id="linearGradient2445">
27
+ <stop
28
+ style="stop-color:#000000;stop-opacity:1;"
29
+ offset="0"
30
+ id="stop2447" />
31
+ <stop
32
+ style="stop-color:#800000;stop-opacity:1"
33
+ offset="1"
34
+ id="stop2449" />
35
+ </linearGradient>
36
+ <linearGradient
37
+ inkscape:collect="always"
38
+ id="linearGradient2433">
39
+ <stop
40
+ style="stop-color:#999999;stop-opacity:1;"
41
+ offset="0"
42
+ id="stop2435" />
43
+ <stop
44
+ style="stop-color:#f2f2f2;stop-opacity:1"
45
+ offset="1"
46
+ id="stop2437" />
47
+ </linearGradient>
48
+ <linearGradient
49
+ id="linearGradient2419">
50
+ <stop
51
+ style="stop-color:#800000;stop-opacity:1;"
52
+ offset="0"
53
+ id="stop2421" />
54
+ <stop
55
+ id="stop2427"
56
+ offset="1"
57
+ style="stop-color:#000000;stop-opacity:0.49803922;" />
58
+ <stop
59
+ style="stop-color:#800000;stop-opacity:0;"
60
+ offset="1"
61
+ id="stop2423" />
62
+ </linearGradient>
63
+ <inkscape:perspective
64
+ sodipodi:type="inkscape:persp3d"
65
+ inkscape:vp_x="0 : 526.18109 : 1"
66
+ inkscape:vp_y="0 : 1000 : 0"
67
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
68
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
69
+ id="perspective10" />
70
+ <radialGradient
71
+ inkscape:collect="always"
72
+ xlink:href="#linearGradient2433"
73
+ id="radialGradient2443"
74
+ cx="458.22412"
75
+ cy="343.49725"
76
+ fx="458.22412"
77
+ fy="343.49725"
78
+ r="138.35556"
79
+ gradientTransform="matrix(-2.4137804,-2.147142,0.5853527,-0.6580424,1312.7272,1594.3504)"
80
+ gradientUnits="userSpaceOnUse" />
81
+ <linearGradient
82
+ inkscape:collect="always"
83
+ xlink:href="#linearGradient2445"
84
+ id="linearGradient2453"
85
+ x1="132.03069"
86
+ y1="677.62805"
87
+ x2="366.96762"
88
+ y2="665.97827"
89
+ gradientUnits="userSpaceOnUse" />
90
+ </defs>
91
+ <sodipodi:namedview
92
+ id="base"
93
+ pagecolor="#ffffff"
94
+ bordercolor="#666666"
95
+ borderopacity="1.0"
96
+ gridtolerance="10000"
97
+ guidetolerance="10"
98
+ objecttolerance="10"
99
+ inkscape:pageopacity="0.0"
100
+ inkscape:pageshadow="2"
101
+ inkscape:zoom="0.51503181"
102
+ inkscape:cx="372.04724"
103
+ inkscape:cy="470.7654"
104
+ inkscape:document-units="px"
105
+ inkscape:current-layer="layer1"
106
+ showgrid="false"
107
+ inkscape:window-width="1105"
108
+ inkscape:window-height="747"
109
+ inkscape:window-x="23"
110
+ inkscape:window-y="57" />
111
+ <metadata
112
+ id="metadata7">
113
+ <rdf:RDF>
114
+ <cc:Work
115
+ rdf:about="">
116
+ <dc:format>image/svg+xml</dc:format>
117
+ <dc:type
118
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
119
+ </cc:Work>
120
+ </rdf:RDF>
121
+ </metadata>
122
+ <g
123
+ inkscape:label="Layer 1"
124
+ inkscape:groupmode="layer"
125
+ id="layer1">
126
+ <path
127
+ style="fill:url(#linearGradient2453);fill-opacity:1;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.65152049000000000px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
128
+ d="M 236.83368,437.2071 C 265.33941,884.05768 150.38775,846.672 150.38775,846.672 L 393.93552,845.92282 C 296.64454,792.51321 316.58316,665.42834 308.11624,304.09004 C 305.92169,210.43486 242.28363,396.9189 242.28363,396.9189"
129
+ id="path2414"
130
+ sodipodi:nodetypes="cccsc" />
131
+ <path
132
+ style="fill:url(#radialGradient2443);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
133
+ d="M 232.99532,289.30252 C 508.70645,223.28718 508.70645,221.34555 508.70645,221.34555 L 506.76482,464.04901 L 238.8202,396.09204 L 232.99532,289.30252 z"
134
+ id="path2431" />
135
+ </g>
136
+ </svg>
Binary file
@@ -0,0 +1,182 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+ <svg
4
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
5
+ xmlns:cc="http://creativecommons.org/ns#"
6
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
+ xmlns:svg="http://www.w3.org/2000/svg"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:xlink="http://www.w3.org/1999/xlink"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="744.09448819"
13
+ height="1052.3622047"
14
+ id="svg2"
15
+ sodipodi:version="0.32"
16
+ inkscape:version="0.46"
17
+ inkscape:export-filename="C:\Dev\projects\RubygameMovieMaker\media\ball.png"
18
+ inkscape:export-xdpi="32.57497"
19
+ inkscape:export-ydpi="32.57497"
20
+ sodipodi:docname="ball.svg"
21
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
22
+ <defs
23
+ id="defs4">
24
+ <marker
25
+ inkscape:stockid="Tail"
26
+ orient="auto"
27
+ refY="0.0"
28
+ refX="0.0"
29
+ id="Tail"
30
+ style="overflow:visible">
31
+ <g
32
+ id="g3706"
33
+ transform="scale(-1.2)">
34
+ <path
35
+ id="path3708"
36
+ d="M -3.8048674,-3.9585227 L 0.54352094,0"
37
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.8;marker-start:none;marker-end:none;stroke-linecap:round" />
38
+ <path
39
+ id="path3710"
40
+ d="M -1.2866832,-3.9585227 L 3.0617053,0"
41
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.8;marker-start:none;marker-end:none;stroke-linecap:round" />
42
+ <path
43
+ id="path3712"
44
+ d="M 1.3053582,-3.9585227 L 5.6537466,0"
45
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.8;marker-start:none;marker-end:none;stroke-linecap:round" />
46
+ <path
47
+ id="path3714"
48
+ d="M -3.8048674,4.1775838 L 0.54352094,0.21974226"
49
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.8;marker-start:none;marker-end:none;stroke-linecap:round" />
50
+ <path
51
+ id="path3716"
52
+ d="M -1.2866832,4.1775838 L 3.0617053,0.21974226"
53
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.8;marker-start:none;marker-end:none;stroke-linecap:round" />
54
+ <path
55
+ id="path3718"
56
+ d="M 1.3053582,4.1775838 L 5.6537466,0.21974226"
57
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.8;marker-start:none;marker-end:none;stroke-linecap:round" />
58
+ </g>
59
+ </marker>
60
+ <marker
61
+ inkscape:stockid="Arrow1Lstart"
62
+ orient="auto"
63
+ refY="0.0"
64
+ refX="0.0"
65
+ id="Arrow1Lstart"
66
+ style="overflow:visible">
67
+ <path
68
+ id="path3670"
69
+ d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
70
+ style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none"
71
+ transform="scale(0.8) translate(12.5,0)" />
72
+ </marker>
73
+ <linearGradient
74
+ id="linearGradient3163">
75
+ <stop
76
+ id="stop3171"
77
+ offset="0"
78
+ style="stop-color:#191919;stop-opacity:1;" />
79
+ <stop
80
+ style="stop-color:#ff0000;stop-opacity:1;"
81
+ offset="0"
82
+ id="stop3175" />
83
+ <stop
84
+ id="stop3177"
85
+ offset="1"
86
+ style="stop-color:#000000;stop-opacity:1;" />
87
+ <stop
88
+ style="stop-color:#191919;stop-opacity:1;"
89
+ offset="1"
90
+ id="stop3179" />
91
+ <stop
92
+ id="stop3167"
93
+ offset="1"
94
+ style="stop-color:#333333;stop-opacity:0;" />
95
+ </linearGradient>
96
+ <inkscape:perspective
97
+ sodipodi:type="inkscape:persp3d"
98
+ inkscape:vp_x="0 : 526.18109 : 1"
99
+ inkscape:vp_y="0 : 1000 : 0"
100
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
101
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
102
+ id="perspective10" />
103
+ <linearGradient
104
+ inkscape:collect="always"
105
+ xlink:href="#linearGradient3163"
106
+ id="linearGradient3181"
107
+ x1="240"
108
+ y1="523.79077"
109
+ x2="514.28571"
110
+ y2="523.79077"
111
+ gradientUnits="userSpaceOnUse" />
112
+ <filter
113
+ inkscape:collect="always"
114
+ id="filter5531">
115
+ <feGaussianBlur
116
+ inkscape:collect="always"
117
+ stdDeviation="1.3814285"
118
+ id="feGaussianBlur5533" />
119
+ </filter>
120
+ <filter
121
+ inkscape:collect="always"
122
+ id="filter5789"
123
+ x="-0.23621115"
124
+ width="1.4724223"
125
+ y="-0.44640053"
126
+ height="1.8928011">
127
+ <feGaussianBlur
128
+ inkscape:collect="always"
129
+ stdDeviation="37.763028"
130
+ id="feGaussianBlur5791" />
131
+ </filter>
132
+ </defs>
133
+ <sodipodi:namedview
134
+ id="base"
135
+ pagecolor="#ffffff"
136
+ bordercolor="#666666"
137
+ borderopacity="1.0"
138
+ gridtolerance="10000"
139
+ guidetolerance="10"
140
+ objecttolerance="10"
141
+ inkscape:pageopacity="0.0"
142
+ inkscape:pageshadow="2"
143
+ inkscape:zoom="0.35"
144
+ inkscape:cx="375"
145
+ inkscape:cy="520"
146
+ inkscape:document-units="px"
147
+ inkscape:current-layer="layer1"
148
+ showgrid="false" />
149
+ <metadata
150
+ id="metadata7">
151
+ <rdf:RDF>
152
+ <cc:Work
153
+ rdf:about="">
154
+ <dc:format>image/svg+xml</dc:format>
155
+ <dc:type
156
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
157
+ </cc:Work>
158
+ </rdf:RDF>
159
+ </metadata>
160
+ <g
161
+ inkscape:label="Layer 1"
162
+ inkscape:groupmode="layer"
163
+ id="layer1">
164
+ <path
165
+ sodipodi:type="arc"
166
+ style="opacity:1;fill:url(#linearGradient3181);fill-opacity:1;fill-rule:evenodd;stroke:#3f0404;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter5531);stroke-linejoin:round;stroke-linecap:square;marker-start:none"
167
+ id="path2383"
168
+ sodipodi:cx="377.14285"
169
+ sodipodi:cy="523.79077"
170
+ sodipodi:rx="137.14285"
171
+ sodipodi:ry="137.14285"
172
+ d="M 514.28571,523.7908 A 137.14285,137.14285 0 1 1 514.28571,523.7908"
173
+ sodipodi:start="2.1669345e-07"
174
+ sodipodi:end="6.2831855"
175
+ sodipodi:open="true" />
176
+ <path
177
+ style="opacity:0.52892558000000001;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:square;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter5789)"
178
+ d="M 567.03571,435.04463 C 553.70788,519.95286 473.71433,585.2586 377.12946,585.25858 C 281.53041,585.25854 202.22548,521.27339 187.69196,437.63214 C 186.40069,445.84048 185.72321,454.23471 185.72321,462.76791 C 185.72319,559.54274 271.66431,638.07142 377.56696,638.07142 C 483.4696,638.07143 569.41072,559.54277 569.41071,462.76791 C 569.41071,453.3382 568.60675,444.07232 567.03571,435.04463 z"
179
+ id="path5535"
180
+ transform="matrix(0.7021385,0,0,0.4230177,112.46264,356.72732)" />
181
+ </g>
182
+ </svg>
Binary file
Binary file
@@ -0,0 +1,81 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+ <svg
4
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
5
+ xmlns:cc="http://creativecommons.org/ns#"
6
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7
+ xmlns:svg="http://www.w3.org/2000/svg"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ width="210mm"
12
+ height="297mm"
13
+ id="svg4476"
14
+ sodipodi:version="0.32"
15
+ inkscape:version="0.46"
16
+ sodipodi:docname="blue_triangle.svg"
17
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
18
+ <defs
19
+ id="defs3">
20
+ <inkscape:perspective
21
+ sodipodi:type="inkscape:persp3d"
22
+ inkscape:vp_x="0 : 526.18109 : 1"
23
+ inkscape:vp_y="0 : 1000 : 0"
24
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
25
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
26
+ id="perspective4482" />
27
+ </defs>
28
+ <sodipodi:namedview
29
+ inkscape:document-units="mm"
30
+ id="base"
31
+ pagecolor="#ffffff"
32
+ bordercolor="#666666"
33
+ borderopacity="1.0"
34
+ inkscape:pageopacity="0.0"
35
+ inkscape:pageshadow="2"
36
+ inkscape:zoom="0.46181819"
37
+ inkscape:cx="372.04724"
38
+ inkscape:cy="526.18109"
39
+ inkscape:current-layer="layer1"
40
+ showgrid="false"
41
+ inkscape:window-width="1280"
42
+ inkscape:window-height="938"
43
+ inkscape:window-x="-4"
44
+ inkscape:window-y="-4" />
45
+ <metadata
46
+ id="metadata4">
47
+ <rdf:RDF>
48
+ <cc:Work
49
+ rdf:about="">
50
+ <dc:format>image/svg+xml</dc:format>
51
+ <dc:type
52
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
53
+ </cc:Work>
54
+ </rdf:RDF>
55
+ </metadata>
56
+ <g
57
+ inkscape:label="Layer 1"
58
+ inkscape:groupmode="layer"
59
+ id="layer1">
60
+ <path
61
+ sodipodi:type="star"
62
+ style="opacity:0.9;fill:#0000ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:18.17716598999999900;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
63
+ id="path4484"
64
+ sodipodi:sides="3"
65
+ sodipodi:cx="214.28571"
66
+ sodipodi:cy="412.36218"
67
+ sodipodi:r1="305.83441"
68
+ sodipodi:r2="152.91721"
69
+ sodipodi:arg1="0.51798737"
70
+ sodipodi:arg2="1.5651849"
71
+ inkscape:flatsided="true"
72
+ inkscape:rounded="0"
73
+ inkscape:randomized="0"
74
+ d="M 479.99998,563.79075 L -49.712418,566.76321 L 212.56955,106.53259 L 479.99998,563.79075 z"
75
+ transform="translate(153.50393,152.72216)"
76
+ inkscape:transform-center-y="-48.571429"
77
+ inkscape:export-filename="C:\Dev\projects\rubygame_movie_maker\samples\media\blue_triangle.png"
78
+ inkscape:export-xdpi="33.980701"
79
+ inkscape:export-ydpi="33.980701" />
80
+ </g>
81
+ </svg>
Binary file