gamebox 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/gamebox.gemspec +2 -6
- data/lib/gamebox.rb +5 -1
- data/lib/gamebox/actors/collidable_debugger.rb +4 -4
- data/lib/gamebox/actors/fps.rb +4 -19
- data/lib/gamebox/arbiter.rb +3 -8
- data/lib/gamebox/behaviors/physical.rb +2 -2
- data/lib/gamebox/input_manager.rb +24 -19
- data/lib/gamebox/physics.rb +26 -29
- data/lib/gamebox/resource_manager.rb +1 -1
- data/lib/gamebox/sound_manager.rb +4 -2
- data/lib/gamebox/spatial_bucket.rb +9 -0
- data/lib/gamebox/spatial_hash.rb +38 -36
- data/lib/gamebox/stage.rb +16 -5
- data/lib/gamebox/version.rb +1 -1
- data/lib/gamebox/views/graphical_actor_view.rb +2 -2
- data/lib/gamebox/wrapped_screen.rb +1 -0
- data/script/perf_collisions.rb +72 -0
- data/script/perf_drawables.rb +51 -0
- data/spec/physical_spec.rb +102 -99
- data/spec/spatial_hash_spec.rb +16 -11
- data/spec/spatial_stagehand_spec.rb +2 -6
- metadata +42 -61
@@ -19,12 +19,8 @@ describe 'a new SpacialStagehand' do
|
|
19
19
|
|
20
20
|
describe "#cell_size" do
|
21
21
|
it "returns the cell size" do
|
22
|
-
@hash.cell_size =
|
23
|
-
@target.cell_size.should ==
|
24
|
-
end
|
25
|
-
it "sets the cell size" do
|
26
|
-
@target.cell_size = :size
|
27
|
-
@hash.cell_size.should == :size
|
22
|
+
@hash.cell_size = 42
|
23
|
+
@target.cell_size.should == 42
|
28
24
|
end
|
29
25
|
end
|
30
26
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gamebox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2011-
|
14
|
+
date: 2011-12-16 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: gosu
|
18
|
-
requirement: &
|
18
|
+
requirement: &2156791840 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ! '>='
|
@@ -23,10 +23,10 @@ dependencies:
|
|
23
23
|
version: '0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *2156791840
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: constructor
|
29
|
-
requirement: &
|
29
|
+
requirement: &2156791420 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
32
|
- - ! '>='
|
@@ -34,10 +34,10 @@ dependencies:
|
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
|
-
version_requirements: *
|
37
|
+
version_requirements: *2156791420
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: publisher
|
40
|
-
requirement: &
|
40
|
+
requirement: &2156791000 !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
@@ -45,10 +45,10 @@ dependencies:
|
|
45
45
|
version: '0'
|
46
46
|
type: :runtime
|
47
47
|
prerelease: false
|
48
|
-
version_requirements: *
|
48
|
+
version_requirements: *2156791000
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: diy
|
51
|
-
requirement: &
|
51
|
+
requirement: &2156790580 !ruby/object:Gem::Requirement
|
52
52
|
none: false
|
53
53
|
requirements:
|
54
54
|
- - ! '>='
|
@@ -56,10 +56,10 @@ dependencies:
|
|
56
56
|
version: '0'
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
|
-
version_requirements: *
|
59
|
+
version_requirements: *2156790580
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: tween
|
62
|
-
requirement: &
|
62
|
+
requirement: &2156790160 !ruby/object:Gem::Requirement
|
63
63
|
none: false
|
64
64
|
requirements:
|
65
65
|
- - ! '>='
|
@@ -67,10 +67,10 @@ dependencies:
|
|
67
67
|
version: '0'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
|
-
version_requirements: *
|
70
|
+
version_requirements: *2156790160
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: require_all
|
73
|
-
requirement: &
|
73
|
+
requirement: &2156789740 !ruby/object:Gem::Requirement
|
74
74
|
none: false
|
75
75
|
requirements:
|
76
76
|
- - ! '>='
|
@@ -78,10 +78,10 @@ dependencies:
|
|
78
78
|
version: '0'
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
|
-
version_requirements: *
|
81
|
+
version_requirements: *2156789740
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: kvo
|
84
|
-
requirement: &
|
84
|
+
requirement: &2156789320 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ! '>='
|
@@ -89,43 +89,32 @@ dependencies:
|
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
|
-
version_requirements: *
|
92
|
+
version_requirements: *2156789320
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: pry
|
95
|
-
requirement: &
|
95
|
+
requirement: &2156788820 !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|
98
|
-
- -
|
98
|
+
- - ~>
|
99
99
|
- !ruby/object:Gem::Version
|
100
|
-
version: 0.9.
|
101
|
-
type: :
|
100
|
+
version: 0.9.7
|
101
|
+
type: :development
|
102
102
|
prerelease: false
|
103
|
-
version_requirements: *
|
103
|
+
version_requirements: *2156788820
|
104
104
|
- !ruby/object:Gem::Dependency
|
105
105
|
name: pry-remote
|
106
|
-
requirement: &
|
107
|
-
none: false
|
108
|
-
requirements:
|
109
|
-
- - ! '>='
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
112
|
-
type: :runtime
|
113
|
-
prerelease: false
|
114
|
-
version_requirements: *2156997240
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: chipmunk
|
117
|
-
requirement: &2156996740 !ruby/object:Gem::Requirement
|
106
|
+
requirement: &2156788400 !ruby/object:Gem::Requirement
|
118
107
|
none: false
|
119
108
|
requirements:
|
120
109
|
- - ! '>='
|
121
110
|
- !ruby/object:Gem::Version
|
122
111
|
version: '0'
|
123
|
-
type: :
|
112
|
+
type: :development
|
124
113
|
prerelease: false
|
125
|
-
version_requirements: *
|
114
|
+
version_requirements: *2156788400
|
126
115
|
- !ruby/object:Gem::Dependency
|
127
116
|
name: rspec-core
|
128
|
-
requirement: &
|
117
|
+
requirement: &2156787940 !ruby/object:Gem::Requirement
|
129
118
|
none: false
|
130
119
|
requirements:
|
131
120
|
- - ! '>='
|
@@ -133,10 +122,10 @@ dependencies:
|
|
133
122
|
version: '0'
|
134
123
|
type: :development
|
135
124
|
prerelease: false
|
136
|
-
version_requirements: *
|
125
|
+
version_requirements: *2156787940
|
137
126
|
- !ruby/object:Gem::Dependency
|
138
127
|
name: rspec-mocks
|
139
|
-
requirement: &
|
128
|
+
requirement: &2156787520 !ruby/object:Gem::Requirement
|
140
129
|
none: false
|
141
130
|
requirements:
|
142
131
|
- - ! '>='
|
@@ -144,10 +133,10 @@ dependencies:
|
|
144
133
|
version: '0'
|
145
134
|
type: :development
|
146
135
|
prerelease: false
|
147
|
-
version_requirements: *
|
136
|
+
version_requirements: *2156787520
|
148
137
|
- !ruby/object:Gem::Dependency
|
149
138
|
name: rspec-expectations
|
150
|
-
requirement: &
|
139
|
+
requirement: &2156787100 !ruby/object:Gem::Requirement
|
151
140
|
none: false
|
152
141
|
requirements:
|
153
142
|
- - ! '>='
|
@@ -155,10 +144,10 @@ dependencies:
|
|
155
144
|
version: '0'
|
156
145
|
type: :development
|
157
146
|
prerelease: false
|
158
|
-
version_requirements: *
|
147
|
+
version_requirements: *2156787100
|
159
148
|
- !ruby/object:Gem::Dependency
|
160
149
|
name: mocha
|
161
|
-
requirement: &
|
150
|
+
requirement: &2156786680 !ruby/object:Gem::Requirement
|
162
151
|
none: false
|
163
152
|
requirements:
|
164
153
|
- - ! '>='
|
@@ -166,10 +155,10 @@ dependencies:
|
|
166
155
|
version: '0'
|
167
156
|
type: :development
|
168
157
|
prerelease: false
|
169
|
-
version_requirements: *
|
158
|
+
version_requirements: *2156786680
|
170
159
|
- !ruby/object:Gem::Dependency
|
171
160
|
name: rspec
|
172
|
-
requirement: &
|
161
|
+
requirement: &2156440400 !ruby/object:Gem::Requirement
|
173
162
|
none: false
|
174
163
|
requirements:
|
175
164
|
- - ! '>='
|
@@ -177,10 +166,10 @@ dependencies:
|
|
177
166
|
version: '0'
|
178
167
|
type: :development
|
179
168
|
prerelease: false
|
180
|
-
version_requirements: *
|
169
|
+
version_requirements: *2156440400
|
181
170
|
- !ruby/object:Gem::Dependency
|
182
171
|
name: rake
|
183
|
-
requirement: &
|
172
|
+
requirement: &2156438160 !ruby/object:Gem::Requirement
|
184
173
|
none: false
|
185
174
|
requirements:
|
186
175
|
- - ! '>='
|
@@ -188,21 +177,10 @@ dependencies:
|
|
188
177
|
version: '0'
|
189
178
|
type: :development
|
190
179
|
prerelease: false
|
191
|
-
version_requirements: *
|
180
|
+
version_requirements: *2156438160
|
192
181
|
- !ruby/object:Gem::Dependency
|
193
182
|
name: polaris
|
194
|
-
requirement: &
|
195
|
-
none: false
|
196
|
-
requirements:
|
197
|
-
- - ! '>='
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
version: '0'
|
200
|
-
type: :development
|
201
|
-
prerelease: false
|
202
|
-
version_requirements: *2156993640
|
203
|
-
- !ruby/object:Gem::Dependency
|
204
|
-
name: rcov
|
205
|
-
requirement: &2156993220 !ruby/object:Gem::Requirement
|
183
|
+
requirement: &2156435540 !ruby/object:Gem::Requirement
|
206
184
|
none: false
|
207
185
|
requirements:
|
208
186
|
- - ! '>='
|
@@ -210,7 +188,7 @@ dependencies:
|
|
210
188
|
version: '0'
|
211
189
|
type: :development
|
212
190
|
prerelease: false
|
213
|
-
version_requirements: *
|
191
|
+
version_requirements: *2156435540
|
214
192
|
description: Framework for building and distributing games using Gosu
|
215
193
|
email: shawn42@gmail.com
|
216
194
|
executables:
|
@@ -293,6 +271,7 @@ files:
|
|
293
271
|
- lib/gamebox/physics.rb
|
294
272
|
- lib/gamebox/resource_manager.rb
|
295
273
|
- lib/gamebox/sound_manager.rb
|
274
|
+
- lib/gamebox/spatial_bucket.rb
|
296
275
|
- lib/gamebox/spatial_hash.rb
|
297
276
|
- lib/gamebox/spatial_stagehand.rb
|
298
277
|
- lib/gamebox/spec/helper.rb
|
@@ -327,6 +306,8 @@ files:
|
|
327
306
|
- lib/gamebox/viewport.rb
|
328
307
|
- lib/gamebox/views/graphical_actor_view.rb
|
329
308
|
- lib/gamebox/wrapped_screen.rb
|
309
|
+
- script/perf_collisions.rb
|
310
|
+
- script/perf_drawables.rb
|
330
311
|
- script/perf_polaris.rb
|
331
312
|
- script/perf_spatial_hash.rb
|
332
313
|
- script/perf_struct_vs_array.rb
|
@@ -370,7 +351,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
351
|
version: '0'
|
371
352
|
requirements: []
|
372
353
|
rubyforge_project: gamebox
|
373
|
-
rubygems_version: 1.8.
|
354
|
+
rubygems_version: 1.8.10
|
374
355
|
signing_key:
|
375
356
|
specification_version: 3
|
376
357
|
summary: Framework for building and distributing games using Gosu
|