chingu 0.8rc1 → 0.8rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -3
- data/chingu.gemspec +201 -198
- data/examples/example21.yml +39 -39
- data/examples/example26_splash_screen.rb +48 -0
- data/examples/example3_parallax.rb +6 -10
- data/examples/game1.rb +4 -3
- data/examples/game_of_life.rb +11 -9
- data/examples/{example24_input_codes.rb → tool1_input_codes.rb} +1 -1
- data/lib/chingu.rb +1 -1
- data/lib/chingu/assets.rb +58 -0
- data/lib/chingu/basic_game_object.rb +15 -3
- data/lib/chingu/classic_game_object.rb +267 -0
- data/lib/chingu/game_object.rb +6 -234
- data/lib/chingu/game_states/debug.rb +1 -1
- data/lib/chingu/game_states/pause.rb +1 -1
- data/lib/chingu/helpers/rotation_center.rb +1 -2
- data/lib/chingu/inflector.rb +7 -0
- data/lib/chingu/named_resource.rb +258 -254
- data/lib/chingu/parallax.rb +6 -4
- data/lib/chingu/text.rb +4 -2
- data/lib/chingu/traits/sprite.rb +22 -19
- data/lib/chingu/window.rb +17 -0
- data/spec/chingu/game_object_spec.rb +69 -1
- data/spec/chingu/parallax_spec.rb +34 -0
- metadata +25 -21
- data/.gitignore +0 -6
data/Rakefile
CHANGED
@@ -14,8 +14,8 @@ begin
|
|
14
14
|
gemspec.rubyforge_project = "chingu"
|
15
15
|
gemspec.version = Chingu::VERSION
|
16
16
|
|
17
|
-
gemspec.add_dependency 'gosu', '>= 0.7.
|
18
|
-
gemspec.add_development_dependency 'rspec', '>= 2.
|
17
|
+
gemspec.add_dependency 'gosu', '>= 0.7.25'
|
18
|
+
gemspec.add_development_dependency 'rspec', '>= 2.1.0'
|
19
19
|
gemspec.add_development_dependency 'watchr'
|
20
20
|
gemspec.add_development_dependency 'rcov'
|
21
21
|
gemspec.add_development_dependency 'rest_client'
|
@@ -27,7 +27,7 @@ rescue LoadError
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Rake RSpec2 task stuff
|
30
|
-
gem 'rspec', '>= 2.
|
30
|
+
gem 'rspec', '>= 2.1.0'
|
31
31
|
|
32
32
|
require 'rspec/core/rake_task'
|
33
33
|
|
data/chingu.gemspec
CHANGED
@@ -1,218 +1,221 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{chingu}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.8rc2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["ippa"]
|
12
|
-
s.date = %q{2010-11-
|
12
|
+
s.date = %q{2010-11-17}
|
13
13
|
s.description = %q{OpenGL accelerated 2D game framework for Ruby. Builds on Gosu (Ruby/C++) which provides all the core functionality. Chingu adds simple yet powerful game states, prettier input handling, deployment safe asset-handling, a basic re-usable game object and stackable game logic.}
|
14
14
|
s.email = %q{ippa@rubylicio.us}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
".
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
20
|
+
".rspec",
|
21
|
+
"History.txt",
|
22
|
+
"LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"benchmarks/README.txt",
|
26
|
+
"benchmarks/benchmark.rb",
|
27
|
+
"benchmarks/benchmark3.rb",
|
28
|
+
"benchmarks/benchmark4.rb",
|
29
|
+
"benchmarks/benchmark5.rb",
|
30
|
+
"benchmarks/benchmark6.rb",
|
31
|
+
"benchmarks/game_objects_benchmark.rb",
|
32
|
+
"benchmarks/meta_benchmark.rb",
|
33
|
+
"benchmarks/meta_benchmark2.rb",
|
34
|
+
"chingu.gemspec",
|
35
|
+
"examples/example10_traits_retrofy.rb",
|
36
|
+
"examples/example11_animation.rb",
|
37
|
+
"examples/example12_trait_timer.rb",
|
38
|
+
"examples/example13_high_scores.rb",
|
39
|
+
"examples/example14_bounding_box_circle.rb",
|
40
|
+
"examples/example15_trait_timer2.rb",
|
41
|
+
"examples/example16_online_high_scores.rb",
|
42
|
+
"examples/example17_gosu_tutorial.rb",
|
43
|
+
"examples/example18_animation_trait.rb",
|
44
|
+
"examples/example19.yml",
|
45
|
+
"examples/example19_edit_viewport.rb",
|
46
|
+
"examples/example1_basics.rb",
|
47
|
+
"examples/example20_trait_inheritence_test.rb",
|
48
|
+
"examples/example21.yml",
|
49
|
+
"examples/example21_sidescroller_with_edit.rb",
|
50
|
+
"examples/example22_text.rb",
|
51
|
+
"examples/example23_chipmunk.rb",
|
52
|
+
"examples/example24_enter_name.rb",
|
53
|
+
"examples/example25.yml",
|
54
|
+
"examples/example25_fibers_state_machine.rb",
|
55
|
+
"examples/example26_splash_screen.rb",
|
56
|
+
"examples/example2_gamestate_basics.rb",
|
57
|
+
"examples/example3_parallax.rb",
|
58
|
+
"examples/example4_gamestates.rb",
|
59
|
+
"examples/example5_gamestates_in_pure_gosu.rb",
|
60
|
+
"examples/example6_transitional_game_state.rb",
|
61
|
+
"examples/example7_gfx_helpers.rb",
|
62
|
+
"examples/example8_traits.rb",
|
63
|
+
"examples/example9_collision_detection.rb",
|
64
|
+
"examples/game1.rb",
|
65
|
+
"examples/game_of_life.rb",
|
66
|
+
"examples/high_score_list.yml",
|
67
|
+
"examples/media/Parallax-scroll-example-layer-0.png",
|
68
|
+
"examples/media/Parallax-scroll-example-layer-1.png",
|
69
|
+
"examples/media/Parallax-scroll-example-layer-2.png",
|
70
|
+
"examples/media/Parallax-scroll-example-layer-3.png",
|
71
|
+
"examples/media/Star.png",
|
72
|
+
"examples/media/Starfighter.bmp",
|
73
|
+
"examples/media/background1.png",
|
74
|
+
"examples/media/battery.png",
|
75
|
+
"examples/media/big_star.png",
|
76
|
+
"examples/media/big_stone_wall.bmp",
|
77
|
+
"examples/media/black_block.png",
|
78
|
+
"examples/media/bullet.png",
|
79
|
+
"examples/media/bullet_hit.wav",
|
80
|
+
"examples/media/circle.png",
|
81
|
+
"examples/media/city1.png",
|
82
|
+
"examples/media/city2.png",
|
83
|
+
"examples/media/cog_wheel.png",
|
84
|
+
"examples/media/droid.bmp",
|
85
|
+
"examples/media/droid_11x15.bmp",
|
86
|
+
"examples/media/droid_11x15.gal",
|
87
|
+
"examples/media/enemy_bullet.png",
|
88
|
+
"examples/media/explosion.wav",
|
89
|
+
"examples/media/fire_bullet.png",
|
90
|
+
"examples/media/fireball.png",
|
91
|
+
"examples/media/heli.bmp",
|
92
|
+
"examples/media/heli.gal",
|
93
|
+
"examples/media/laser.wav",
|
94
|
+
"examples/media/particle.png",
|
95
|
+
"examples/media/plane.png",
|
96
|
+
"examples/media/rect.png",
|
97
|
+
"examples/media/ruby.png",
|
98
|
+
"examples/media/saucer.gal",
|
99
|
+
"examples/media/saucer.png",
|
100
|
+
"examples/media/saw.png",
|
101
|
+
"examples/media/spaceship.png",
|
102
|
+
"examples/media/star_25x25_default.png",
|
103
|
+
"examples/media/star_25x25_explode.gal",
|
104
|
+
"examples/media/star_25x25_explode.png",
|
105
|
+
"examples/media/stone_wall.bmp",
|
106
|
+
"examples/media/talk_bubble.png",
|
107
|
+
"examples/media/tube.png",
|
108
|
+
"examples/media/video_games.png",
|
109
|
+
"examples/media/wood.png",
|
110
|
+
"examples/tool1_input_codes.rb",
|
111
|
+
"lib/chingu.rb",
|
112
|
+
"lib/chingu/animation.rb",
|
113
|
+
"lib/chingu/assets.rb",
|
114
|
+
"lib/chingu/basic_game_object.rb",
|
115
|
+
"lib/chingu/classic_game_object.rb",
|
116
|
+
"lib/chingu/core_ext/array.rb",
|
117
|
+
"lib/chingu/fpscounter.rb",
|
118
|
+
"lib/chingu/game_object.rb",
|
119
|
+
"lib/chingu/game_object_list.rb",
|
120
|
+
"lib/chingu/game_object_map.rb",
|
121
|
+
"lib/chingu/game_state.rb",
|
122
|
+
"lib/chingu/game_state_manager.rb",
|
123
|
+
"lib/chingu/game_states/debug.rb",
|
124
|
+
"lib/chingu/game_states/edit.rb",
|
125
|
+
"lib/chingu/game_states/enter_name.rb",
|
126
|
+
"lib/chingu/game_states/fade_to.rb",
|
127
|
+
"lib/chingu/game_states/pause.rb",
|
128
|
+
"lib/chingu/game_states/popup.rb",
|
129
|
+
"lib/chingu/gosu_ext/image.rb",
|
130
|
+
"lib/chingu/helpers/class_inheritable_accessor.rb",
|
131
|
+
"lib/chingu/helpers/game_object.rb",
|
132
|
+
"lib/chingu/helpers/game_state.rb",
|
133
|
+
"lib/chingu/helpers/gfx.rb",
|
134
|
+
"lib/chingu/helpers/input_client.rb",
|
135
|
+
"lib/chingu/helpers/input_dispatcher.rb",
|
136
|
+
"lib/chingu/helpers/options_setter.rb",
|
137
|
+
"lib/chingu/helpers/rotation_center.rb",
|
138
|
+
"lib/chingu/high_score_list.rb",
|
139
|
+
"lib/chingu/inflector.rb",
|
140
|
+
"lib/chingu/input.rb",
|
141
|
+
"lib/chingu/named_resource.rb",
|
142
|
+
"lib/chingu/online_high_score_list.rb",
|
143
|
+
"lib/chingu/parallax.rb",
|
144
|
+
"lib/chingu/particle.rb",
|
145
|
+
"lib/chingu/rect.rb",
|
146
|
+
"lib/chingu/require_all.rb",
|
147
|
+
"lib/chingu/simple_menu.rb",
|
148
|
+
"lib/chingu/text.rb",
|
149
|
+
"lib/chingu/traits/animation.rb",
|
150
|
+
"lib/chingu/traits/bounding_box.rb",
|
151
|
+
"lib/chingu/traits/bounding_circle.rb",
|
152
|
+
"lib/chingu/traits/collision_detection.rb",
|
153
|
+
"lib/chingu/traits/effect.rb",
|
154
|
+
"lib/chingu/traits/retrofy.rb",
|
155
|
+
"lib/chingu/traits/sprite.rb",
|
156
|
+
"lib/chingu/traits/timer.rb",
|
157
|
+
"lib/chingu/traits/velocity.rb",
|
158
|
+
"lib/chingu/traits/viewport.rb",
|
159
|
+
"lib/chingu/viewport.rb",
|
160
|
+
"lib/chingu/window.rb",
|
161
|
+
"spec/chingu/fpscounter_spec.rb",
|
162
|
+
"spec/chingu/game_object_spec.rb",
|
163
|
+
"spec/chingu/helpers/input_client_spec.rb",
|
164
|
+
"spec/chingu/helpers/input_dispatcher_spec.rb",
|
165
|
+
"spec/chingu/helpers/options_setter_spec.rb",
|
166
|
+
"spec/chingu/images/rect_20x20.png",
|
167
|
+
"spec/chingu/inflector_spec.rb",
|
168
|
+
"spec/chingu/input_spec.rb",
|
169
|
+
"spec/chingu/parallax_spec.rb",
|
170
|
+
"spec/chingu/text_spec.rb",
|
171
|
+
"spec/spec_helper.rb",
|
172
|
+
"specs.watchr"
|
171
173
|
]
|
172
174
|
s.homepage = %q{http://github.com/ippa/chingu}
|
173
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
174
175
|
s.require_paths = ["lib"]
|
175
176
|
s.rubyforge_project = %q{chingu}
|
176
177
|
s.rubygems_version = %q{1.3.7}
|
177
178
|
s.summary = %q{OpenGL accelerated 2D game framework for Ruby}
|
178
179
|
s.test_files = [
|
180
|
+
"examples/example10_traits_retrofy.rb",
|
181
|
+
"examples/example11_animation.rb",
|
182
|
+
"examples/example12_trait_timer.rb",
|
183
|
+
"examples/example13_high_scores.rb",
|
184
|
+
"examples/example14_bounding_box_circle.rb",
|
185
|
+
"examples/example15_trait_timer2.rb",
|
186
|
+
"examples/example16_online_high_scores.rb",
|
187
|
+
"examples/example17_gosu_tutorial.rb",
|
188
|
+
"examples/example18_animation_trait.rb",
|
189
|
+
"examples/example19_edit_viewport.rb",
|
190
|
+
"examples/example1_basics.rb",
|
191
|
+
"examples/example20_trait_inheritence_test.rb",
|
192
|
+
"examples/example21_sidescroller_with_edit.rb",
|
193
|
+
"examples/example22_text.rb",
|
194
|
+
"examples/example23_chipmunk.rb",
|
195
|
+
"examples/example24_enter_name.rb",
|
196
|
+
"examples/example25_fibers_state_machine.rb",
|
197
|
+
"examples/example26_splash_screen.rb",
|
198
|
+
"examples/example2_gamestate_basics.rb",
|
199
|
+
"examples/example3_parallax.rb",
|
200
|
+
"examples/example4_gamestates.rb",
|
201
|
+
"examples/example5_gamestates_in_pure_gosu.rb",
|
202
|
+
"examples/example6_transitional_game_state.rb",
|
203
|
+
"examples/example7_gfx_helpers.rb",
|
204
|
+
"examples/example8_traits.rb",
|
205
|
+
"examples/example9_collision_detection.rb",
|
206
|
+
"examples/game1.rb",
|
207
|
+
"examples/game_of_life.rb",
|
208
|
+
"examples/tool1_input_codes.rb",
|
179
209
|
"spec/chingu/fpscounter_spec.rb",
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
"examples/example11_animation.rb",
|
190
|
-
"examples/example12_trait_timer.rb",
|
191
|
-
"examples/example13_high_scores.rb",
|
192
|
-
"examples/example14_bounding_box_circle.rb",
|
193
|
-
"examples/example15_trait_timer2.rb",
|
194
|
-
"examples/example16_online_high_scores.rb",
|
195
|
-
"examples/example17_gosu_tutorial.rb",
|
196
|
-
"examples/example18_animation_trait.rb",
|
197
|
-
"examples/example19_edit_viewport.rb",
|
198
|
-
"examples/example1_basics.rb",
|
199
|
-
"examples/example20_trait_inheritence_test.rb",
|
200
|
-
"examples/example21_sidescroller_with_edit.rb",
|
201
|
-
"examples/example22_text.rb",
|
202
|
-
"examples/example23_chipmunk.rb",
|
203
|
-
"examples/example24_enter_name.rb",
|
204
|
-
"examples/example24_input_codes.rb",
|
205
|
-
"examples/example25_fibers_state_machine.rb",
|
206
|
-
"examples/example2_gamestate_basics.rb",
|
207
|
-
"examples/example3_parallax.rb",
|
208
|
-
"examples/example4_gamestates.rb",
|
209
|
-
"examples/example5_gamestates_in_pure_gosu.rb",
|
210
|
-
"examples/example6_transitional_game_state.rb",
|
211
|
-
"examples/example7_gfx_helpers.rb",
|
212
|
-
"examples/example8_traits.rb",
|
213
|
-
"examples/example9_collision_detection.rb",
|
214
|
-
"examples/game1.rb",
|
215
|
-
"examples/game_of_life.rb"
|
210
|
+
"spec/chingu/game_object_spec.rb",
|
211
|
+
"spec/chingu/helpers/input_client_spec.rb",
|
212
|
+
"spec/chingu/helpers/input_dispatcher_spec.rb",
|
213
|
+
"spec/chingu/helpers/options_setter_spec.rb",
|
214
|
+
"spec/chingu/inflector_spec.rb",
|
215
|
+
"spec/chingu/input_spec.rb",
|
216
|
+
"spec/chingu/parallax_spec.rb",
|
217
|
+
"spec/chingu/text_spec.rb",
|
218
|
+
"spec/spec_helper.rb"
|
216
219
|
]
|
217
220
|
|
218
221
|
if s.respond_to? :specification_version then
|
@@ -220,23 +223,23 @@ Gem::Specification.new do |s|
|
|
220
223
|
s.specification_version = 3
|
221
224
|
|
222
225
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
223
|
-
s.add_runtime_dependency(%q<gosu>, [">= 0.7.
|
224
|
-
s.add_development_dependency(%q<rspec>, [">= 2.
|
226
|
+
s.add_runtime_dependency(%q<gosu>, [">= 0.7.25"])
|
227
|
+
s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
|
225
228
|
s.add_development_dependency(%q<watchr>, [">= 0"])
|
226
229
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
227
230
|
s.add_development_dependency(%q<rest_client>, [">= 0"])
|
228
231
|
s.add_development_dependency(%q<crack>, [">= 0"])
|
229
232
|
else
|
230
|
-
s.add_dependency(%q<gosu>, [">= 0.7.
|
231
|
-
s.add_dependency(%q<rspec>, [">= 2.
|
233
|
+
s.add_dependency(%q<gosu>, [">= 0.7.25"])
|
234
|
+
s.add_dependency(%q<rspec>, [">= 2.1.0"])
|
232
235
|
s.add_dependency(%q<watchr>, [">= 0"])
|
233
236
|
s.add_dependency(%q<rcov>, [">= 0"])
|
234
237
|
s.add_dependency(%q<rest_client>, [">= 0"])
|
235
238
|
s.add_dependency(%q<crack>, [">= 0"])
|
236
239
|
end
|
237
240
|
else
|
238
|
-
s.add_dependency(%q<gosu>, [">= 0.7.
|
239
|
-
s.add_dependency(%q<rspec>, [">= 2.
|
241
|
+
s.add_dependency(%q<gosu>, [">= 0.7.25"])
|
242
|
+
s.add_dependency(%q<rspec>, [">= 2.1.0"])
|
240
243
|
s.add_dependency(%q<watchr>, [">= 0"])
|
241
244
|
s.add_dependency(%q<rcov>, [">= 0"])
|
242
245
|
s.add_dependency(%q<rest_client>, [">= 0"])
|