graphics 1.0.0b6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/History.rdoc +88 -0
  5. data/Manifest.txt +2 -0
  6. data/Rakefile +7 -8
  7. data/examples/boid.rb +44 -63
  8. data/examples/bounce.rb +4 -4
  9. data/examples/canvas.rb +17 -16
  10. data/examples/collision.rb +1 -1
  11. data/examples/demo.rb +1 -1
  12. data/examples/editor.rb +1 -1
  13. data/examples/fluid.rb +6 -6
  14. data/examples/fluid2.rb +22 -9
  15. data/examples/gol.rb +1 -1
  16. data/examples/gol2.rb +14 -22
  17. data/examples/math.rb +1 -1
  18. data/examples/pi_polygon.rb +8 -3
  19. data/examples/radar.rb +3 -3
  20. data/examples/rainbow_fluid.rb +4 -3
  21. data/examples/tank.rb +7 -3
  22. data/examples/tank2.rb +3 -3
  23. data/examples/targeting.rb +3 -3
  24. data/examples/vants.rb +13 -4
  25. data/examples/walker.rb +1 -1
  26. data/examples/walker2.rb +1 -1
  27. data/examples/zombies.rb +13 -7
  28. data/ext/sdl/extconf.rb +12 -20
  29. data/ext/sdl/sdl.c +619 -360
  30. data/ext/sdl/sge/Makefile +36 -11
  31. data/ext/sdl/sge/Makefile.conf +15 -9
  32. data/ext/sdl/sge/sge_bm_text.cpp +7 -6
  33. data/ext/sdl/sge/sge_collision.cpp +3 -1
  34. data/ext/sdl/sge/sge_config.h +0 -2
  35. data/ext/sdl/sge/sge_internal.h +0 -8
  36. data/ext/sdl/sge/sge_primitives.cpp +0 -11
  37. data/ext/sdl/sge/sge_primitives.h +0 -3
  38. data/ext/sdl/sge/sge_rotation.cpp +1 -1
  39. data/ext/sdl/sge/sge_shape.cpp +18 -9
  40. data/ext/sdl/sge/sge_surface.cpp +10 -4
  41. data/ext/sdl/sge/sge_textpp.cpp +17 -13
  42. data/graphics_setup.sh +43 -13
  43. data/lib/graphics.rb +1 -1
  44. data/lib/graphics/body.rb +8 -0
  45. data/lib/graphics/decorators.rb +15 -3
  46. data/lib/graphics/extensions.rb +1 -1
  47. data/lib/graphics/rainbows.rb +17 -25
  48. data/lib/graphics/simulation.rb +265 -106
  49. data/lib/graphics/v.rb +8 -1
  50. data/resources/sounds/attribution.txt +2 -0
  51. data/resources/sounds/bullet.wav +0 -0
  52. data/test/test_graphics.rb +232 -107
  53. metadata +37 -43
  54. 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.0b6
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
- MIIDijCCAnKgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBAjANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTE2MDkyNjAxNTczNVoXDTE3MDkyNjAxNTczNVowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTE3MTEyMTIxMTExMFoXDTE4MTEyMTIxMTExMFowRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -20,74 +20,65 @@ cert_chain:
20
20
  oOvjtt5P8+GSK9zLzxQP0gVLS/D0FmoE44XuDr3i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P3GffBdtE3KGkU5xstFnXGajxuBRnL66E15KU0BNehVxdG258bdPu
28
+ EKN6MqBPftFiev3tuwqDV11r2GquDpniYcT+Mi8/PgeAgVT/afBeVgbB3KaZeTRR
29
+ AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
30
+ V+HB+LYYhXWitInO/eXxDrFB
32
31
  -----END CERTIFICATE-----
33
- date: 2016-11-17 00:00:00.000000000 Z
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.9'
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.9'
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.15'
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.15'
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: 1.3.1
201
+ version: '0'
208
202
  requirements: []
209
203
  rubyforge_project:
210
- rubygems_version: 2.4.5
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
- ,�gr{!�f���Q��䳺$�<��E q�;v;�5<��ڋ.��K�4\�I�[��u��� ��]hE�tO9? ܛa��?o^(���2R�ևO
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��į�