chingu 0.9rc5 → 0.9rc6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +33 -1
- data/Rakefile +14 -29
- data/lib/chingu.rb +1 -1
- data/lib/chingu/game_states/debug.rb +1 -1
- data/lib/chingu/simple_menu.rb +2 -2
- data/lib/chingu/text.rb +1 -1
- metadata +118 -163
- data/.rspec +0 -2
- data/History.txt +0 -28
- data/chingu.gemspec +0 -290
data/README.rdoc
CHANGED
@@ -957,12 +957,44 @@ As far as possible, use correct rubyfied english game_objects, not gameobjects.
|
|
957
957
|
* (10% done) Make it possible for ppl to use the parts of Chingu they like
|
958
958
|
* (done) At least make GameStateManager really easy to use with pure Gosu / Document it!
|
959
959
|
* (50% done) Get better at styling rdocs
|
960
|
-
* (done) all
|
960
|
+
* (done) all "gamestate" -> "game state"
|
961
961
|
* (skipping) intergrate MovieMaker - solve this with traits instead.
|
962
962
|
* A more robust game state <-> game_object system to connect them together.
|
963
963
|
* FIX example4: :p => Pause.new would Change the "inside_game_state" to Pause and make @player belong to Pause.
|
964
964
|
|
965
965
|
|
966
|
+
== Old History, now deprecated:
|
967
|
+
|
968
|
+
=== 0.6 / 2009-11-21
|
969
|
+
More traits, better input, fixes
|
970
|
+
This file is deprecated -- see github commit-history instead!
|
971
|
+
|
972
|
+
=== 0.5.7 / 2009-10-15
|
973
|
+
See github commithistory.
|
974
|
+
|
975
|
+
=== 0.5 / 2009-10-7
|
976
|
+
Big refactor of GameObject. Now has BasicGameObject as base.
|
977
|
+
A first basic "trait"-system where GameObject "has_traits :visual, :velocity" etc.
|
978
|
+
Tons of enhancements and fixes. Speed optimization. More examples.
|
979
|
+
|
980
|
+
=== 0.4.5 / 2009-08-27
|
981
|
+
Tons of small fixes across the board.
|
982
|
+
Started on GFX Helpers (fill, fill_rect, fill_gradient so far).
|
983
|
+
A basic particle system (see example7.rb)
|
984
|
+
|
985
|
+
=== 0.4.0 / 2009-08-19
|
986
|
+
Alot of game state love. Now also works stand alone with pure gosu.
|
987
|
+
|
988
|
+
=== 0.3.0 / 2009-08-14
|
989
|
+
Too much to list. remade inputsystem. gamestates are better. window.rb is cleaner. lots of small bugfixes. Bigger readme.
|
990
|
+
|
991
|
+
=== 0.2.0 / 2009-08-10
|
992
|
+
tons of new stuff and fixes. complete keymap. gamestate system. moreexamples/docs. better game_object.
|
993
|
+
|
994
|
+
=== 0.0.1 / 2009-08-05
|
995
|
+
first release
|
996
|
+
|
997
|
+
|
966
998
|
|
967
999
|
"If you program and want any longevity to your work, make a game.
|
968
1000
|
All else recycles, but people rewrite architectures to keep games alive.", _why
|
data/Rakefile
CHANGED
@@ -1,43 +1,28 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'psych'
|
3
2
|
require File.dirname(__FILE__) + '/lib/chingu'
|
4
3
|
include Chingu
|
5
4
|
|
6
|
-
begin
|
7
|
-
require 'jeweler'
|
8
|
-
Jeweler::Tasks.new do |gemspec|
|
9
|
-
gemspec.name = "chingu"
|
10
|
-
gemspec.summary = "OpenGL accelerated 2D game framework for Ruby"
|
11
|
-
gemspec.description = "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."
|
12
|
-
gemspec.email = "ippa@rubylicio.us"
|
13
|
-
gemspec.homepage = "http://github.com/ippa/chingu"
|
14
|
-
gemspec.authors = ["ippa"]
|
15
|
-
gemspec.rubyforge_project = "chingu"
|
16
|
-
gemspec.version = Chingu::VERSION
|
17
|
-
|
18
|
-
gemspec.add_dependency 'gosu', '>= 0.7.27.1'
|
19
|
-
gemspec.add_development_dependency 'rspec', '>= 2.1.0'
|
20
|
-
gemspec.add_development_dependency 'watchr'
|
21
|
-
gemspec.add_development_dependency 'rcov'
|
22
|
-
end
|
23
|
-
Jeweler::GemcutterTasks.new
|
24
|
-
rescue LoadError
|
25
|
-
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
26
|
-
end
|
27
|
-
|
28
|
-
# Rake RSpec2 task stuff
|
29
5
|
gem 'rspec', '>= 2.1.0'
|
30
|
-
|
31
6
|
require 'rspec/core/rake_task'
|
32
7
|
|
33
8
|
desc "Run the specs under spec"
|
34
|
-
RSpec::Core::RakeTask.new
|
35
|
-
end
|
9
|
+
RSpec::Core::RakeTask.new { |t| }
|
36
10
|
|
37
|
-
desc "Run the specs with rcov
|
11
|
+
desc "Run the specs with rcov"
|
38
12
|
RSpec::Core::RakeTask.new(:rcov) do |t|
|
39
13
|
t.rcov = true
|
40
14
|
t.rcov_opts = ['-T', '--no-html', '--exclude spec,gem']
|
41
15
|
end
|
42
|
-
|
43
16
|
task :default => :spec
|
17
|
+
|
18
|
+
desc "Build gem"
|
19
|
+
task :build do
|
20
|
+
system "gem build chingu.gemspec"
|
21
|
+
puts "Moving into directory pkg"
|
22
|
+
system "mv chingu-#{Chingu::VERSION}.gem pkg/"
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Release new gem"
|
26
|
+
task :release => :build do
|
27
|
+
system "gem push pkg/chingu-#{Chingu::VERSION}.gem"
|
28
|
+
end
|
data/lib/chingu.rb
CHANGED
@@ -85,7 +85,7 @@ module Chingu
|
|
85
85
|
lines = text.respond_to?(:lines) ? text.lines : text
|
86
86
|
|
87
87
|
lines.each_with_index do |line,i|
|
88
|
-
@font.draw(line, @x_offset, @y_offset + height * (i+3), Z,1,1, @text_color)
|
88
|
+
@font.draw(line.strip, @x_offset, @y_offset + height * (i+3), Z,1,1, @text_color)
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
data/lib/chingu/simple_menu.rb
CHANGED
data/lib/chingu/text.rb
CHANGED
@@ -85,7 +85,7 @@ module Chingu
|
|
85
85
|
if options[:background]
|
86
86
|
@background = GameObject.new(:image => options[:background])
|
87
87
|
@background.attributes = self.attributes
|
88
|
-
@background.color = Color::WHITE
|
88
|
+
@background.color = ::Gosu::Color::WHITE
|
89
89
|
@background.zorder -= 1
|
90
90
|
@background.x -= @padding
|
91
91
|
@background.y -= @padding
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chingu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9rc6
|
5
5
|
prerelease: 3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,23 +9,33 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-06-25 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: gosu
|
17
|
-
requirement: &
|
16
|
+
requirement: &25668120 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ! '>='
|
21
20
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.7.
|
21
|
+
version: 0.7.33
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *25668120
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: gosu
|
27
|
+
requirement: &25667832 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.7.33
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *25667832
|
26
36
|
- !ruby/object:Gem::Dependency
|
27
37
|
name: rspec
|
28
|
-
requirement: &
|
38
|
+
requirement: &25667544 !ruby/object:Gem::Requirement
|
29
39
|
none: false
|
30
40
|
requirements:
|
31
41
|
- - ! '>='
|
@@ -33,10 +43,10 @@ dependencies:
|
|
33
43
|
version: 2.1.0
|
34
44
|
type: :development
|
35
45
|
prerelease: false
|
36
|
-
version_requirements: *
|
46
|
+
version_requirements: *25667544
|
37
47
|
- !ruby/object:Gem::Dependency
|
38
48
|
name: watchr
|
39
|
-
requirement: &
|
49
|
+
requirement: &25667256 !ruby/object:Gem::Requirement
|
40
50
|
none: false
|
41
51
|
requirements:
|
42
52
|
- - ! '>='
|
@@ -44,10 +54,10 @@ dependencies:
|
|
44
54
|
version: '0'
|
45
55
|
type: :development
|
46
56
|
prerelease: false
|
47
|
-
version_requirements: *
|
57
|
+
version_requirements: *25667256
|
48
58
|
- !ruby/object:Gem::Dependency
|
49
59
|
name: rcov
|
50
|
-
requirement: &
|
60
|
+
requirement: &25666968 !ruby/object:Gem::Requirement
|
51
61
|
none: false
|
52
62
|
requirements:
|
53
63
|
- - ! '>='
|
@@ -55,7 +65,7 @@ dependencies:
|
|
55
65
|
version: '0'
|
56
66
|
type: :development
|
57
67
|
prerelease: false
|
58
|
-
version_requirements: *
|
68
|
+
version_requirements: *25666968
|
59
69
|
description: OpenGL accelerated 2D game framework for Ruby. Builds on Gosu (Ruby/C++)
|
60
70
|
which provides all the core functionality. Chingu adds simple yet powerful game
|
61
71
|
states, prettier input handling, deployment safe asset-handling, a basic re-usable
|
@@ -67,108 +77,6 @@ extra_rdoc_files:
|
|
67
77
|
- LICENSE
|
68
78
|
- README.rdoc
|
69
79
|
files:
|
70
|
-
- .rspec
|
71
|
-
- History.txt
|
72
|
-
- LICENSE
|
73
|
-
- README.rdoc
|
74
|
-
- Rakefile
|
75
|
-
- benchmarks/README.txt
|
76
|
-
- benchmarks/array_vs_hash.rb
|
77
|
-
- benchmarks/arrays_bench.rb
|
78
|
-
- benchmarks/benchmark.rb
|
79
|
-
- benchmarks/benchmark3.rb
|
80
|
-
- benchmarks/benchmark4.rb
|
81
|
-
- benchmarks/benchmark5.rb
|
82
|
-
- benchmarks/benchmark6.rb
|
83
|
-
- benchmarks/benchmark_ping_localhost.rb
|
84
|
-
- benchmarks/game_object_list_benchmark.rb
|
85
|
-
- benchmarks/game_objects_benchmark.rb
|
86
|
-
- benchmarks/lookup_benchmark.rb
|
87
|
-
- benchmarks/meta_benchmark.rb
|
88
|
-
- benchmarks/meta_benchmark2.rb
|
89
|
-
- benchmarks/trait_benchmark.rb
|
90
|
-
- benchmarks/window_benchmark.rb
|
91
|
-
- chingu.gemspec
|
92
|
-
- examples/example10_traits_retrofy.rb
|
93
|
-
- examples/example11_animation.rb
|
94
|
-
- examples/example12_trait_timer.rb
|
95
|
-
- examples/example13_high_scores.rb
|
96
|
-
- examples/example14_bounding_box_circle.rb
|
97
|
-
- examples/example15_trait_timer2.rb
|
98
|
-
- examples/example16_online_high_scores.rb
|
99
|
-
- examples/example17_gosu_tutorial.rb
|
100
|
-
- examples/example18_animation_trait.rb
|
101
|
-
- examples/example19.yml
|
102
|
-
- examples/example19_edit_viewport.rb
|
103
|
-
- examples/example1_basics.rb
|
104
|
-
- examples/example20_trait_inheritence_test.rb
|
105
|
-
- examples/example21.yml
|
106
|
-
- examples/example21_sidescroller_with_edit.rb
|
107
|
-
- examples/example22_text.rb
|
108
|
-
- examples/example23_chipmunk.rb
|
109
|
-
- examples/example24_enter_name.rb
|
110
|
-
- examples/example25.yml
|
111
|
-
- examples/example25_fibers_state_machine.rb
|
112
|
-
- examples/example26_splash_screen.rb
|
113
|
-
- examples/example27_console.rb
|
114
|
-
- examples/example28_networking.rb
|
115
|
-
- examples/example29_asynchronous.rb
|
116
|
-
- examples/example2_gamestate_basics.rb
|
117
|
-
- examples/example3_parallax.rb
|
118
|
-
- examples/example4_gamestates.rb
|
119
|
-
- examples/example5_gamestates_in_pure_gosu.rb
|
120
|
-
- examples/example6_transitional_game_state.rb
|
121
|
-
- examples/example7_gfx_helpers.rb
|
122
|
-
- examples/example8_traits.rb
|
123
|
-
- examples/example9_collision_detection.rb
|
124
|
-
- examples/game1.rb
|
125
|
-
- examples/game_of_life.rb
|
126
|
-
- examples/high_score_list.yml
|
127
|
-
- examples/media/Parallax-scroll-example-layer-0.png
|
128
|
-
- examples/media/Parallax-scroll-example-layer-1.png
|
129
|
-
- examples/media/Parallax-scroll-example-layer-2.png
|
130
|
-
- examples/media/Parallax-scroll-example-layer-3.png
|
131
|
-
- examples/media/Star.png
|
132
|
-
- examples/media/Starfighter.bmp
|
133
|
-
- examples/media/background1.png
|
134
|
-
- examples/media/battery.png
|
135
|
-
- examples/media/big_star.png
|
136
|
-
- examples/media/big_stone_wall.bmp
|
137
|
-
- examples/media/black_block.png
|
138
|
-
- examples/media/bullet.png
|
139
|
-
- examples/media/bullet_hit.wav
|
140
|
-
- examples/media/circle.png
|
141
|
-
- examples/media/city1.png
|
142
|
-
- examples/media/city2.png
|
143
|
-
- examples/media/cog_wheel.png
|
144
|
-
- examples/media/droid.bmp
|
145
|
-
- examples/media/droid_11x15.bmp
|
146
|
-
- examples/media/droid_11x15.gal
|
147
|
-
- examples/media/enemy_bullet.png
|
148
|
-
- examples/media/explosion.wav
|
149
|
-
- examples/media/fire_bullet.png
|
150
|
-
- examples/media/fireball.png
|
151
|
-
- examples/media/heli.bmp
|
152
|
-
- examples/media/heli.gal
|
153
|
-
- examples/media/laser.wav
|
154
|
-
- examples/media/particle.png
|
155
|
-
- examples/media/plane.png
|
156
|
-
- examples/media/rect.png
|
157
|
-
- examples/media/ruby.png
|
158
|
-
- examples/media/saucer.gal
|
159
|
-
- examples/media/saucer.png
|
160
|
-
- examples/media/saw.png
|
161
|
-
- examples/media/spaceship.png
|
162
|
-
- examples/media/star_25x25_default.png
|
163
|
-
- examples/media/star_25x25_explode.gal
|
164
|
-
- examples/media/star_25x25_explode.png
|
165
|
-
- examples/media/stone_wall.bmp
|
166
|
-
- examples/media/talk_bubble.png
|
167
|
-
- examples/media/tube.png
|
168
|
-
- examples/media/video_games.png
|
169
|
-
- examples/media/wood.png
|
170
|
-
- examples/tool1_input_codes.rb
|
171
|
-
- lib/chingu.rb
|
172
80
|
- lib/chingu/animation.rb
|
173
81
|
- lib/chingu/assets.rb
|
174
82
|
- lib/chingu/async/basic_task.rb
|
@@ -190,7 +98,6 @@ files:
|
|
190
98
|
- lib/chingu/game_object_list.rb
|
191
99
|
- lib/chingu/game_object_map.rb
|
192
100
|
- lib/chingu/game_state.rb
|
193
|
-
- lib/chingu/game_state_manager.rb
|
194
101
|
- lib/chingu/game_states/debug.rb
|
195
102
|
- lib/chingu/game_states/edit.rb
|
196
103
|
- lib/chingu/game_states/enter_name.rb
|
@@ -199,6 +106,7 @@ files:
|
|
199
106
|
- lib/chingu/game_states/network_server.rb
|
200
107
|
- lib/chingu/game_states/pause.rb
|
201
108
|
- lib/chingu/game_states/popup.rb
|
109
|
+
- lib/chingu/game_state_manager.rb
|
202
110
|
- lib/chingu/gosu_ext/image.rb
|
203
111
|
- lib/chingu/helpers/class_inheritable_accessor.rb
|
204
112
|
- lib/chingu/helpers/fps_counter.rb
|
@@ -234,54 +142,7 @@ files:
|
|
234
142
|
- lib/chingu/traits/viewport.rb
|
235
143
|
- lib/chingu/viewport.rb
|
236
144
|
- lib/chingu/window.rb
|
237
|
-
-
|
238
|
-
- spec/chingu/assets_spec.rb
|
239
|
-
- spec/chingu/basic_game_object_spec.rb
|
240
|
-
- spec/chingu/console_spec.rb
|
241
|
-
- spec/chingu/fpscounter_spec.rb
|
242
|
-
- spec/chingu/game_object_list_spec.rb
|
243
|
-
- spec/chingu/game_object_map_spec.rb
|
244
|
-
- spec/chingu/game_object_spec.rb
|
245
|
-
- spec/chingu/game_state_manager_spec.rb
|
246
|
-
- spec/chingu/helpers/input_client_spec.rb
|
247
|
-
- spec/chingu/helpers/input_dispatcher_spec.rb
|
248
|
-
- spec/chingu/helpers/options_setter_spec.rb
|
249
|
-
- spec/chingu/images/droid_11x15.bmp
|
250
|
-
- spec/chingu/images/rect_20x20.png
|
251
|
-
- spec/chingu/inflector_spec.rb
|
252
|
-
- spec/chingu/input_spec.rb
|
253
|
-
- spec/chingu/network_spec.rb
|
254
|
-
- spec/chingu/parallax_spec.rb
|
255
|
-
- spec/chingu/text_spec.rb
|
256
|
-
- spec/chingu/window_spec.rb
|
257
|
-
- spec/spec_helper.rb
|
258
|
-
- specs.watchr
|
259
|
-
has_rdoc: true
|
260
|
-
homepage: http://github.com/ippa/chingu
|
261
|
-
licenses: []
|
262
|
-
post_install_message:
|
263
|
-
rdoc_options: []
|
264
|
-
require_paths:
|
265
|
-
- lib
|
266
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
267
|
-
none: false
|
268
|
-
requirements:
|
269
|
-
- - ! '>='
|
270
|
-
- !ruby/object:Gem::Version
|
271
|
-
version: '0'
|
272
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
273
|
-
none: false
|
274
|
-
requirements:
|
275
|
-
- - ! '>'
|
276
|
-
- !ruby/object:Gem::Version
|
277
|
-
version: 1.3.1
|
278
|
-
requirements: []
|
279
|
-
rubyforge_project: chingu
|
280
|
-
rubygems_version: 1.5.2
|
281
|
-
signing_key:
|
282
|
-
specification_version: 3
|
283
|
-
summary: OpenGL accelerated 2D game framework for Ruby
|
284
|
-
test_files:
|
145
|
+
- lib/chingu.rb
|
285
146
|
- examples/example10_traits_retrofy.rb
|
286
147
|
- examples/example11_animation.rb
|
287
148
|
- examples/example12_trait_timer.rb
|
@@ -291,13 +152,16 @@ test_files:
|
|
291
152
|
- examples/example16_online_high_scores.rb
|
292
153
|
- examples/example17_gosu_tutorial.rb
|
293
154
|
- examples/example18_animation_trait.rb
|
155
|
+
- examples/example19.yml
|
294
156
|
- examples/example19_edit_viewport.rb
|
295
157
|
- examples/example1_basics.rb
|
296
158
|
- examples/example20_trait_inheritence_test.rb
|
159
|
+
- examples/example21.yml
|
297
160
|
- examples/example21_sidescroller_with_edit.rb
|
298
161
|
- examples/example22_text.rb
|
299
162
|
- examples/example23_chipmunk.rb
|
300
163
|
- examples/example24_enter_name.rb
|
164
|
+
- examples/example25.yml
|
301
165
|
- examples/example25_fibers_state_machine.rb
|
302
166
|
- examples/example26_splash_screen.rb
|
303
167
|
- examples/example27_console.rb
|
@@ -313,7 +177,67 @@ test_files:
|
|
313
177
|
- examples/example9_collision_detection.rb
|
314
178
|
- examples/game1.rb
|
315
179
|
- examples/game_of_life.rb
|
180
|
+
- examples/high_score_list.yml
|
181
|
+
- examples/media/background1.png
|
182
|
+
- examples/media/battery.png
|
183
|
+
- examples/media/big_star.png
|
184
|
+
- examples/media/big_stone_wall.bmp
|
185
|
+
- examples/media/black_block.png
|
186
|
+
- examples/media/bullet.png
|
187
|
+
- examples/media/bullet_hit.wav
|
188
|
+
- examples/media/circle.png
|
189
|
+
- examples/media/city1.png
|
190
|
+
- examples/media/city2.png
|
191
|
+
- examples/media/cog_wheel.png
|
192
|
+
- examples/media/droid.bmp
|
193
|
+
- examples/media/droid_11x15.bmp
|
194
|
+
- examples/media/droid_11x15.gal
|
195
|
+
- examples/media/enemy_bullet.png
|
196
|
+
- examples/media/explosion.wav
|
197
|
+
- examples/media/fireball.png
|
198
|
+
- examples/media/fire_bullet.png
|
199
|
+
- examples/media/heli.bmp
|
200
|
+
- examples/media/heli.gal
|
201
|
+
- examples/media/laser.wav
|
202
|
+
- examples/media/Parallax-scroll-example-layer-0.png
|
203
|
+
- examples/media/Parallax-scroll-example-layer-1.png
|
204
|
+
- examples/media/Parallax-scroll-example-layer-2.png
|
205
|
+
- examples/media/Parallax-scroll-example-layer-3.png
|
206
|
+
- examples/media/particle.png
|
207
|
+
- examples/media/plane.png
|
208
|
+
- examples/media/rect.png
|
209
|
+
- examples/media/ruby.png
|
210
|
+
- examples/media/saucer.gal
|
211
|
+
- examples/media/saucer.png
|
212
|
+
- examples/media/saw.png
|
213
|
+
- examples/media/spaceship.png
|
214
|
+
- examples/media/Star.png
|
215
|
+
- examples/media/Starfighter.bmp
|
216
|
+
- examples/media/star_25x25_default.png
|
217
|
+
- examples/media/star_25x25_explode.gal
|
218
|
+
- examples/media/star_25x25_explode.png
|
219
|
+
- examples/media/stone_wall.bmp
|
220
|
+
- examples/media/talk_bubble.png
|
221
|
+
- examples/media/tube.png
|
222
|
+
- examples/media/video_games.png
|
223
|
+
- examples/media/wood.png
|
316
224
|
- examples/tool1_input_codes.rb
|
225
|
+
- benchmarks/arrays_bench.rb
|
226
|
+
- benchmarks/array_vs_hash.rb
|
227
|
+
- benchmarks/benchmark.rb
|
228
|
+
- benchmarks/benchmark3.rb
|
229
|
+
- benchmarks/benchmark4.rb
|
230
|
+
- benchmarks/benchmark5.rb
|
231
|
+
- benchmarks/benchmark6.rb
|
232
|
+
- benchmarks/benchmark_ping_localhost.rb
|
233
|
+
- benchmarks/game_objects_benchmark.rb
|
234
|
+
- benchmarks/game_object_list_benchmark.rb
|
235
|
+
- benchmarks/lookup_benchmark.rb
|
236
|
+
- benchmarks/meta_benchmark.rb
|
237
|
+
- benchmarks/meta_benchmark2.rb
|
238
|
+
- benchmarks/README.txt
|
239
|
+
- benchmarks/trait_benchmark.rb
|
240
|
+
- benchmarks/window_benchmark.rb
|
317
241
|
- spec/chingu/animation_spec.rb
|
318
242
|
- spec/chingu/assets_spec.rb
|
319
243
|
- spec/chingu/basic_game_object_spec.rb
|
@@ -326,6 +250,8 @@ test_files:
|
|
326
250
|
- spec/chingu/helpers/input_client_spec.rb
|
327
251
|
- spec/chingu/helpers/input_dispatcher_spec.rb
|
328
252
|
- spec/chingu/helpers/options_setter_spec.rb
|
253
|
+
- spec/chingu/images/droid_11x15.bmp
|
254
|
+
- spec/chingu/images/rect_20x20.png
|
329
255
|
- spec/chingu/inflector_spec.rb
|
330
256
|
- spec/chingu/input_spec.rb
|
331
257
|
- spec/chingu/network_spec.rb
|
@@ -333,3 +259,32 @@ test_files:
|
|
333
259
|
- spec/chingu/text_spec.rb
|
334
260
|
- spec/chingu/window_spec.rb
|
335
261
|
- spec/spec_helper.rb
|
262
|
+
- LICENSE
|
263
|
+
- README.rdoc
|
264
|
+
- specs.watchr
|
265
|
+
- Rakefile
|
266
|
+
homepage: http://ippa.se/chingu
|
267
|
+
licenses: []
|
268
|
+
post_install_message:
|
269
|
+
rdoc_options: []
|
270
|
+
require_paths:
|
271
|
+
- lib
|
272
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
273
|
+
none: false
|
274
|
+
requirements:
|
275
|
+
- - ! '>='
|
276
|
+
- !ruby/object:Gem::Version
|
277
|
+
version: '0'
|
278
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
279
|
+
none: false
|
280
|
+
requirements:
|
281
|
+
- - ! '>='
|
282
|
+
- !ruby/object:Gem::Version
|
283
|
+
version: 1.3.6
|
284
|
+
requirements: []
|
285
|
+
rubyforge_project: chingu
|
286
|
+
rubygems_version: 1.8.5
|
287
|
+
signing_key:
|
288
|
+
specification_version: 3
|
289
|
+
summary: OpenGL accelerated 2D game framework for Ruby.
|
290
|
+
test_files: []
|
data/.rspec
DELETED
data/History.txt
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
=== 0.6 / 2009-11-21
|
2
|
-
More traits, better input, fixes
|
3
|
-
This file is deprecated -- see github commit-history instead!
|
4
|
-
|
5
|
-
=== 0.5.7 / 2009-10-15
|
6
|
-
See github commithistory.
|
7
|
-
|
8
|
-
=== 0.5 / 2009-10-7
|
9
|
-
Big refactor of GameObject. Now has BasicGameObject as base.
|
10
|
-
A first basic "trait"-system where GameObject "has_traits :visual, :velocity" etc.
|
11
|
-
Tons of enhancements and fixes. Speed optimization. More examples.
|
12
|
-
|
13
|
-
=== 0.4.5 / 2009-08-27
|
14
|
-
Tons of small fixes across the board.
|
15
|
-
Started on GFX Helpers (fill, fill_rect, fill_gradient so far).
|
16
|
-
A basic particle system (see example7.rb)
|
17
|
-
|
18
|
-
=== 0.4.0 / 2009-08-19
|
19
|
-
Alot of game state love. Now also works stand alone with pure gosu.
|
20
|
-
|
21
|
-
=== 0.3.0 / 2009-08-14
|
22
|
-
Too much to list. remade inputsystem. gamestates are better. window.rb is cleaner. lots of small bugfixes. Bigger readme.
|
23
|
-
|
24
|
-
=== 0.2.0 / 2009-08-10
|
25
|
-
tons of new stuff and fixes. complete keymap. gamestate system. moreexamples/docs. better game_object.
|
26
|
-
|
27
|
-
=== 0.0.1 / 2009-08-05
|
28
|
-
first release
|
data/chingu.gemspec
DELETED
@@ -1,290 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{chingu}
|
8
|
-
s.version = "0.9rc5"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["ippa"]
|
12
|
-
s.date = %q{2011-05-28}
|
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
|
-
s.email = %q{ippa@rubylicio.us}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".rspec",
|
21
|
-
"History.txt",
|
22
|
-
"LICENSE",
|
23
|
-
"README.rdoc",
|
24
|
-
"Rakefile",
|
25
|
-
"benchmarks/README.txt",
|
26
|
-
"benchmarks/array_vs_hash.rb",
|
27
|
-
"benchmarks/arrays_bench.rb",
|
28
|
-
"benchmarks/benchmark.rb",
|
29
|
-
"benchmarks/benchmark3.rb",
|
30
|
-
"benchmarks/benchmark4.rb",
|
31
|
-
"benchmarks/benchmark5.rb",
|
32
|
-
"benchmarks/benchmark6.rb",
|
33
|
-
"benchmarks/benchmark_ping_localhost.rb",
|
34
|
-
"benchmarks/game_object_list_benchmark.rb",
|
35
|
-
"benchmarks/game_objects_benchmark.rb",
|
36
|
-
"benchmarks/lookup_benchmark.rb",
|
37
|
-
"benchmarks/meta_benchmark.rb",
|
38
|
-
"benchmarks/meta_benchmark2.rb",
|
39
|
-
"benchmarks/trait_benchmark.rb",
|
40
|
-
"benchmarks/window_benchmark.rb",
|
41
|
-
"chingu.gemspec",
|
42
|
-
"examples/example10_traits_retrofy.rb",
|
43
|
-
"examples/example11_animation.rb",
|
44
|
-
"examples/example12_trait_timer.rb",
|
45
|
-
"examples/example13_high_scores.rb",
|
46
|
-
"examples/example14_bounding_box_circle.rb",
|
47
|
-
"examples/example15_trait_timer2.rb",
|
48
|
-
"examples/example16_online_high_scores.rb",
|
49
|
-
"examples/example17_gosu_tutorial.rb",
|
50
|
-
"examples/example18_animation_trait.rb",
|
51
|
-
"examples/example19.yml",
|
52
|
-
"examples/example19_edit_viewport.rb",
|
53
|
-
"examples/example1_basics.rb",
|
54
|
-
"examples/example20_trait_inheritence_test.rb",
|
55
|
-
"examples/example21.yml",
|
56
|
-
"examples/example21_sidescroller_with_edit.rb",
|
57
|
-
"examples/example22_text.rb",
|
58
|
-
"examples/example23_chipmunk.rb",
|
59
|
-
"examples/example24_enter_name.rb",
|
60
|
-
"examples/example25.yml",
|
61
|
-
"examples/example25_fibers_state_machine.rb",
|
62
|
-
"examples/example26_splash_screen.rb",
|
63
|
-
"examples/example27_console.rb",
|
64
|
-
"examples/example28_networking.rb",
|
65
|
-
"examples/example29_asynchronous.rb",
|
66
|
-
"examples/example2_gamestate_basics.rb",
|
67
|
-
"examples/example3_parallax.rb",
|
68
|
-
"examples/example4_gamestates.rb",
|
69
|
-
"examples/example5_gamestates_in_pure_gosu.rb",
|
70
|
-
"examples/example6_transitional_game_state.rb",
|
71
|
-
"examples/example7_gfx_helpers.rb",
|
72
|
-
"examples/example8_traits.rb",
|
73
|
-
"examples/example9_collision_detection.rb",
|
74
|
-
"examples/game1.rb",
|
75
|
-
"examples/game_of_life.rb",
|
76
|
-
"examples/high_score_list.yml",
|
77
|
-
"examples/media/Parallax-scroll-example-layer-0.png",
|
78
|
-
"examples/media/Parallax-scroll-example-layer-1.png",
|
79
|
-
"examples/media/Parallax-scroll-example-layer-2.png",
|
80
|
-
"examples/media/Parallax-scroll-example-layer-3.png",
|
81
|
-
"examples/media/Star.png",
|
82
|
-
"examples/media/Starfighter.bmp",
|
83
|
-
"examples/media/background1.png",
|
84
|
-
"examples/media/battery.png",
|
85
|
-
"examples/media/big_star.png",
|
86
|
-
"examples/media/big_stone_wall.bmp",
|
87
|
-
"examples/media/black_block.png",
|
88
|
-
"examples/media/bullet.png",
|
89
|
-
"examples/media/bullet_hit.wav",
|
90
|
-
"examples/media/circle.png",
|
91
|
-
"examples/media/city1.png",
|
92
|
-
"examples/media/city2.png",
|
93
|
-
"examples/media/cog_wheel.png",
|
94
|
-
"examples/media/droid.bmp",
|
95
|
-
"examples/media/droid_11x15.bmp",
|
96
|
-
"examples/media/droid_11x15.gal",
|
97
|
-
"examples/media/enemy_bullet.png",
|
98
|
-
"examples/media/explosion.wav",
|
99
|
-
"examples/media/fire_bullet.png",
|
100
|
-
"examples/media/fireball.png",
|
101
|
-
"examples/media/heli.bmp",
|
102
|
-
"examples/media/heli.gal",
|
103
|
-
"examples/media/laser.wav",
|
104
|
-
"examples/media/particle.png",
|
105
|
-
"examples/media/plane.png",
|
106
|
-
"examples/media/rect.png",
|
107
|
-
"examples/media/ruby.png",
|
108
|
-
"examples/media/saucer.gal",
|
109
|
-
"examples/media/saucer.png",
|
110
|
-
"examples/media/saw.png",
|
111
|
-
"examples/media/spaceship.png",
|
112
|
-
"examples/media/star_25x25_default.png",
|
113
|
-
"examples/media/star_25x25_explode.gal",
|
114
|
-
"examples/media/star_25x25_explode.png",
|
115
|
-
"examples/media/stone_wall.bmp",
|
116
|
-
"examples/media/talk_bubble.png",
|
117
|
-
"examples/media/tube.png",
|
118
|
-
"examples/media/video_games.png",
|
119
|
-
"examples/media/wood.png",
|
120
|
-
"examples/tool1_input_codes.rb",
|
121
|
-
"lib/chingu.rb",
|
122
|
-
"lib/chingu/animation.rb",
|
123
|
-
"lib/chingu/assets.rb",
|
124
|
-
"lib/chingu/async/basic_task.rb",
|
125
|
-
"lib/chingu/async/task_builder.rb",
|
126
|
-
"lib/chingu/async/task_list.rb",
|
127
|
-
"lib/chingu/async_tasks/call.rb",
|
128
|
-
"lib/chingu/async_tasks/exec.rb",
|
129
|
-
"lib/chingu/async_tasks/move.rb",
|
130
|
-
"lib/chingu/async_tasks/parallel.rb",
|
131
|
-
"lib/chingu/async_tasks/tween.rb",
|
132
|
-
"lib/chingu/async_tasks/wait.rb",
|
133
|
-
"lib/chingu/basic_game_object.rb",
|
134
|
-
"lib/chingu/classic_game_object.rb",
|
135
|
-
"lib/chingu/console.rb",
|
136
|
-
"lib/chingu/core_ext/array.rb",
|
137
|
-
"lib/chingu/core_ext/range.rb",
|
138
|
-
"lib/chingu/fpscounter.rb",
|
139
|
-
"lib/chingu/game_object.rb",
|
140
|
-
"lib/chingu/game_object_list.rb",
|
141
|
-
"lib/chingu/game_object_map.rb",
|
142
|
-
"lib/chingu/game_state.rb",
|
143
|
-
"lib/chingu/game_state_manager.rb",
|
144
|
-
"lib/chingu/game_states/debug.rb",
|
145
|
-
"lib/chingu/game_states/edit.rb",
|
146
|
-
"lib/chingu/game_states/enter_name.rb",
|
147
|
-
"lib/chingu/game_states/fade_to.rb",
|
148
|
-
"lib/chingu/game_states/network_client.rb",
|
149
|
-
"lib/chingu/game_states/network_server.rb",
|
150
|
-
"lib/chingu/game_states/pause.rb",
|
151
|
-
"lib/chingu/game_states/popup.rb",
|
152
|
-
"lib/chingu/gosu_ext/image.rb",
|
153
|
-
"lib/chingu/helpers/class_inheritable_accessor.rb",
|
154
|
-
"lib/chingu/helpers/fps_counter.rb",
|
155
|
-
"lib/chingu/helpers/game_object.rb",
|
156
|
-
"lib/chingu/helpers/game_state.rb",
|
157
|
-
"lib/chingu/helpers/gfx.rb",
|
158
|
-
"lib/chingu/helpers/input_client.rb",
|
159
|
-
"lib/chingu/helpers/input_dispatcher.rb",
|
160
|
-
"lib/chingu/helpers/options_setter.rb",
|
161
|
-
"lib/chingu/helpers/rotation_center.rb",
|
162
|
-
"lib/chingu/high_score_list.rb",
|
163
|
-
"lib/chingu/inflector.rb",
|
164
|
-
"lib/chingu/input.rb",
|
165
|
-
"lib/chingu/named_resource.rb",
|
166
|
-
"lib/chingu/online_high_score_list.rb",
|
167
|
-
"lib/chingu/parallax.rb",
|
168
|
-
"lib/chingu/particle.rb",
|
169
|
-
"lib/chingu/rect.rb",
|
170
|
-
"lib/chingu/require_all.rb",
|
171
|
-
"lib/chingu/simple_menu.rb",
|
172
|
-
"lib/chingu/text.rb",
|
173
|
-
"lib/chingu/traits/animation.rb",
|
174
|
-
"lib/chingu/traits/asynchronous.rb",
|
175
|
-
"lib/chingu/traits/bounding_box.rb",
|
176
|
-
"lib/chingu/traits/bounding_circle.rb",
|
177
|
-
"lib/chingu/traits/collision_detection.rb",
|
178
|
-
"lib/chingu/traits/effect.rb",
|
179
|
-
"lib/chingu/traits/retrofy.rb",
|
180
|
-
"lib/chingu/traits/simple_sprite.rb",
|
181
|
-
"lib/chingu/traits/sprite.rb",
|
182
|
-
"lib/chingu/traits/timer.rb",
|
183
|
-
"lib/chingu/traits/velocity.rb",
|
184
|
-
"lib/chingu/traits/viewport.rb",
|
185
|
-
"lib/chingu/viewport.rb",
|
186
|
-
"lib/chingu/window.rb",
|
187
|
-
"spec/chingu/animation_spec.rb",
|
188
|
-
"spec/chingu/assets_spec.rb",
|
189
|
-
"spec/chingu/basic_game_object_spec.rb",
|
190
|
-
"spec/chingu/console_spec.rb",
|
191
|
-
"spec/chingu/fpscounter_spec.rb",
|
192
|
-
"spec/chingu/game_object_list_spec.rb",
|
193
|
-
"spec/chingu/game_object_map_spec.rb",
|
194
|
-
"spec/chingu/game_object_spec.rb",
|
195
|
-
"spec/chingu/game_state_manager_spec.rb",
|
196
|
-
"spec/chingu/helpers/input_client_spec.rb",
|
197
|
-
"spec/chingu/helpers/input_dispatcher_spec.rb",
|
198
|
-
"spec/chingu/helpers/options_setter_spec.rb",
|
199
|
-
"spec/chingu/images/droid_11x15.bmp",
|
200
|
-
"spec/chingu/images/rect_20x20.png",
|
201
|
-
"spec/chingu/inflector_spec.rb",
|
202
|
-
"spec/chingu/input_spec.rb",
|
203
|
-
"spec/chingu/network_spec.rb",
|
204
|
-
"spec/chingu/parallax_spec.rb",
|
205
|
-
"spec/chingu/text_spec.rb",
|
206
|
-
"spec/chingu/window_spec.rb",
|
207
|
-
"spec/spec_helper.rb",
|
208
|
-
"specs.watchr"
|
209
|
-
]
|
210
|
-
s.homepage = %q{http://github.com/ippa/chingu}
|
211
|
-
s.require_paths = ["lib"]
|
212
|
-
s.rubyforge_project = %q{chingu}
|
213
|
-
s.rubygems_version = %q{1.5.2}
|
214
|
-
s.summary = %q{OpenGL accelerated 2D game framework for Ruby}
|
215
|
-
s.test_files = [
|
216
|
-
"examples/example10_traits_retrofy.rb",
|
217
|
-
"examples/example11_animation.rb",
|
218
|
-
"examples/example12_trait_timer.rb",
|
219
|
-
"examples/example13_high_scores.rb",
|
220
|
-
"examples/example14_bounding_box_circle.rb",
|
221
|
-
"examples/example15_trait_timer2.rb",
|
222
|
-
"examples/example16_online_high_scores.rb",
|
223
|
-
"examples/example17_gosu_tutorial.rb",
|
224
|
-
"examples/example18_animation_trait.rb",
|
225
|
-
"examples/example19_edit_viewport.rb",
|
226
|
-
"examples/example1_basics.rb",
|
227
|
-
"examples/example20_trait_inheritence_test.rb",
|
228
|
-
"examples/example21_sidescroller_with_edit.rb",
|
229
|
-
"examples/example22_text.rb",
|
230
|
-
"examples/example23_chipmunk.rb",
|
231
|
-
"examples/example24_enter_name.rb",
|
232
|
-
"examples/example25_fibers_state_machine.rb",
|
233
|
-
"examples/example26_splash_screen.rb",
|
234
|
-
"examples/example27_console.rb",
|
235
|
-
"examples/example28_networking.rb",
|
236
|
-
"examples/example29_asynchronous.rb",
|
237
|
-
"examples/example2_gamestate_basics.rb",
|
238
|
-
"examples/example3_parallax.rb",
|
239
|
-
"examples/example4_gamestates.rb",
|
240
|
-
"examples/example5_gamestates_in_pure_gosu.rb",
|
241
|
-
"examples/example6_transitional_game_state.rb",
|
242
|
-
"examples/example7_gfx_helpers.rb",
|
243
|
-
"examples/example8_traits.rb",
|
244
|
-
"examples/example9_collision_detection.rb",
|
245
|
-
"examples/game1.rb",
|
246
|
-
"examples/game_of_life.rb",
|
247
|
-
"examples/tool1_input_codes.rb",
|
248
|
-
"spec/chingu/animation_spec.rb",
|
249
|
-
"spec/chingu/assets_spec.rb",
|
250
|
-
"spec/chingu/basic_game_object_spec.rb",
|
251
|
-
"spec/chingu/console_spec.rb",
|
252
|
-
"spec/chingu/fpscounter_spec.rb",
|
253
|
-
"spec/chingu/game_object_list_spec.rb",
|
254
|
-
"spec/chingu/game_object_map_spec.rb",
|
255
|
-
"spec/chingu/game_object_spec.rb",
|
256
|
-
"spec/chingu/game_state_manager_spec.rb",
|
257
|
-
"spec/chingu/helpers/input_client_spec.rb",
|
258
|
-
"spec/chingu/helpers/input_dispatcher_spec.rb",
|
259
|
-
"spec/chingu/helpers/options_setter_spec.rb",
|
260
|
-
"spec/chingu/inflector_spec.rb",
|
261
|
-
"spec/chingu/input_spec.rb",
|
262
|
-
"spec/chingu/network_spec.rb",
|
263
|
-
"spec/chingu/parallax_spec.rb",
|
264
|
-
"spec/chingu/text_spec.rb",
|
265
|
-
"spec/chingu/window_spec.rb",
|
266
|
-
"spec/spec_helper.rb"
|
267
|
-
]
|
268
|
-
|
269
|
-
if s.respond_to? :specification_version then
|
270
|
-
s.specification_version = 3
|
271
|
-
|
272
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
273
|
-
s.add_runtime_dependency(%q<gosu>, [">= 0.7.27.1"])
|
274
|
-
s.add_development_dependency(%q<rspec>, [">= 2.1.0"])
|
275
|
-
s.add_development_dependency(%q<watchr>, [">= 0"])
|
276
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
277
|
-
else
|
278
|
-
s.add_dependency(%q<gosu>, [">= 0.7.27.1"])
|
279
|
-
s.add_dependency(%q<rspec>, [">= 2.1.0"])
|
280
|
-
s.add_dependency(%q<watchr>, [">= 0"])
|
281
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
282
|
-
end
|
283
|
-
else
|
284
|
-
s.add_dependency(%q<gosu>, [">= 0.7.27.1"])
|
285
|
-
s.add_dependency(%q<rspec>, [">= 2.1.0"])
|
286
|
-
s.add_dependency(%q<watchr>, [">= 0"])
|
287
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
288
|
-
end
|
289
|
-
end
|
290
|
-
|