graphics 1.0.0b6 → 1.0.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.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +88 -0
- data/Manifest.txt +2 -0
- data/Rakefile +7 -8
- data/examples/boid.rb +44 -63
- data/examples/bounce.rb +4 -4
- data/examples/canvas.rb +17 -16
- data/examples/collision.rb +1 -1
- data/examples/demo.rb +1 -1
- data/examples/editor.rb +1 -1
- data/examples/fluid.rb +6 -6
- data/examples/fluid2.rb +22 -9
- data/examples/gol.rb +1 -1
- data/examples/gol2.rb +14 -22
- data/examples/math.rb +1 -1
- data/examples/pi_polygon.rb +8 -3
- data/examples/radar.rb +3 -3
- data/examples/rainbow_fluid.rb +4 -3
- data/examples/tank.rb +7 -3
- data/examples/tank2.rb +3 -3
- data/examples/targeting.rb +3 -3
- data/examples/vants.rb +13 -4
- data/examples/walker.rb +1 -1
- data/examples/walker2.rb +1 -1
- data/examples/zombies.rb +13 -7
- data/ext/sdl/extconf.rb +12 -20
- data/ext/sdl/sdl.c +619 -360
- data/ext/sdl/sge/Makefile +36 -11
- data/ext/sdl/sge/Makefile.conf +15 -9
- data/ext/sdl/sge/sge_bm_text.cpp +7 -6
- data/ext/sdl/sge/sge_collision.cpp +3 -1
- data/ext/sdl/sge/sge_config.h +0 -2
- data/ext/sdl/sge/sge_internal.h +0 -8
- data/ext/sdl/sge/sge_primitives.cpp +0 -11
- data/ext/sdl/sge/sge_primitives.h +0 -3
- data/ext/sdl/sge/sge_rotation.cpp +1 -1
- data/ext/sdl/sge/sge_shape.cpp +18 -9
- data/ext/sdl/sge/sge_surface.cpp +10 -4
- data/ext/sdl/sge/sge_textpp.cpp +17 -13
- data/graphics_setup.sh +43 -13
- data/lib/graphics.rb +1 -1
- data/lib/graphics/body.rb +8 -0
- data/lib/graphics/decorators.rb +15 -3
- data/lib/graphics/extensions.rb +1 -1
- data/lib/graphics/rainbows.rb +17 -25
- data/lib/graphics/simulation.rb +265 -106
- data/lib/graphics/v.rb +8 -1
- data/resources/sounds/attribution.txt +2 -0
- data/resources/sounds/bullet.wav +0 -0
- data/test/test_graphics.rb +232 -107
- metadata +37 -43
- metadata.gz.sig +1 -2
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTE3MTEyMTIxMTExMFoXDTE4MTEyMTIxMTExMFowRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -20,74 +20,65 @@ cert_chain:
|
|
20
20
|
oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3iQkVS2ujU5zZL84mMNqNB1znh
|
21
21
|
GiadM9GHRaDiaxuX0cIUBj19T01mVE2iymf9I6bEsiayK/n6QujtyCbTWsAS9Rqt
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
|
-
gBEfoTEGr7Zii72cx+
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
|
23
|
+
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
|
+
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBBQUAA4IB
|
25
|
+
AQAfAXSQpsW7YSxd1csRtA/M4Zt0AMXFMd76GJ8Lgtg8G0+VFbdChRyDuDb0kPlW
|
26
|
+
h9QQX/YABfCW8vxmssbMGrP+VGBAn7BbdTcfTlgCWrvMX1uL5aRL74nA4urKXqdW
|
27
|
+
a0nP70K4958P3GffBdtE3KGkU5xstFnXGajxuBRnL66E15KU0BNehVxdG258bdPu
|
28
|
+
EKN6MqBPftFiev3tuwqDV11r2GquDpniYcT+Mi8/PgeAgVT/afBeVgbB3KaZeTRR
|
29
|
+
AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
|
30
|
+
V+HB+LYYhXWitInO/eXxDrFB
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
32
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
34
33
|
dependencies:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: rsdl
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0.1'
|
42
|
-
type: :runtime
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ~>
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0.1'
|
49
34
|
- !ruby/object:Gem::Dependency
|
50
35
|
name: rdoc
|
51
36
|
requirement: !ruby/object:Gem::Requirement
|
52
37
|
requirements:
|
53
|
-
- -
|
38
|
+
- - ">="
|
54
39
|
- !ruby/object:Gem::Version
|
55
40
|
version: '4.0'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '7'
|
56
44
|
type: :development
|
57
45
|
prerelease: false
|
58
46
|
version_requirements: !ruby/object:Gem::Requirement
|
59
47
|
requirements:
|
60
|
-
- -
|
48
|
+
- - ">="
|
61
49
|
- !ruby/object:Gem::Version
|
62
50
|
version: '4.0'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '7'
|
63
54
|
- !ruby/object:Gem::Dependency
|
64
55
|
name: rake-compiler
|
65
56
|
requirement: !ruby/object:Gem::Requirement
|
66
57
|
requirements:
|
67
|
-
- - ~>
|
58
|
+
- - "~>"
|
68
59
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0
|
60
|
+
version: '1.0'
|
70
61
|
type: :development
|
71
62
|
prerelease: false
|
72
63
|
version_requirements: !ruby/object:Gem::Requirement
|
73
64
|
requirements:
|
74
|
-
- - ~>
|
65
|
+
- - "~>"
|
75
66
|
- !ruby/object:Gem::Version
|
76
|
-
version: '0
|
67
|
+
version: '1.0'
|
77
68
|
- !ruby/object:Gem::Dependency
|
78
69
|
name: hoe
|
79
70
|
requirement: !ruby/object:Gem::Requirement
|
80
71
|
requirements:
|
81
|
-
- - ~>
|
72
|
+
- - "~>"
|
82
73
|
- !ruby/object:Gem::Version
|
83
|
-
version: '3.
|
74
|
+
version: '3.17'
|
84
75
|
type: :development
|
85
76
|
prerelease: false
|
86
77
|
version_requirements: !ruby/object:Gem::Requirement
|
87
78
|
requirements:
|
88
|
-
- - ~>
|
79
|
+
- - "~>"
|
89
80
|
- !ruby/object:Gem::Version
|
90
|
-
version: '3.
|
81
|
+
version: '3.17'
|
91
82
|
description: |-
|
92
83
|
Graphics provides a simple framework to implement games and/or
|
93
84
|
simulations and is designed to follow mathematical conventions, NOT
|
@@ -110,8 +101,9 @@ extra_rdoc_files:
|
|
110
101
|
- History.rdoc
|
111
102
|
- Manifest.txt
|
112
103
|
- README.rdoc
|
104
|
+
- resources/sounds/attribution.txt
|
113
105
|
files:
|
114
|
-
- .autotest
|
106
|
+
- ".autotest"
|
115
107
|
- History.rdoc
|
116
108
|
- Manifest.txt
|
117
109
|
- README.rdoc
|
@@ -182,6 +174,8 @@ files:
|
|
182
174
|
- lib/graphics/v.rb
|
183
175
|
- resources/images/body.png
|
184
176
|
- resources/images/turret.png
|
177
|
+
- resources/sounds/attribution.txt
|
178
|
+
- resources/sounds/bullet.wav
|
185
179
|
- test/test_graphics.rb
|
186
180
|
- test/test_rainbows.rb
|
187
181
|
- test/test_sdl.rb
|
@@ -191,23 +185,23 @@ licenses:
|
|
191
185
|
metadata: {}
|
192
186
|
post_install_message:
|
193
187
|
rdoc_options:
|
194
|
-
- --main
|
188
|
+
- "--main"
|
195
189
|
- README.rdoc
|
196
190
|
require_paths:
|
197
191
|
- lib
|
198
192
|
required_ruby_version: !ruby/object:Gem::Requirement
|
199
193
|
requirements:
|
200
|
-
- -
|
194
|
+
- - ">="
|
201
195
|
- !ruby/object:Gem::Version
|
202
196
|
version: '0'
|
203
197
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
204
198
|
requirements:
|
205
|
-
- -
|
199
|
+
- - ">="
|
206
200
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
201
|
+
version: '0'
|
208
202
|
requirements: []
|
209
203
|
rubyforge_project:
|
210
|
-
rubygems_version: 2.
|
204
|
+
rubygems_version: 2.7.3
|
211
205
|
signing_key:
|
212
206
|
specification_version: 4
|
213
207
|
summary: Graphics provides a simple framework to implement games and/or simulations
|
metadata.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
fT�������l���KҩPe��ص�� IG?𝡋~�oE̾��`�U%i#�Т�p��
|
1
|
+
�&@MV�q��u���<'X��6rAT�/��v�l��'#%c�m85�)������a�&�z�>H�AD�"6v�N���k�%?d�L��l&��?c���j�j��į�
|