gosu_more_drawables 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +19 -5
- data/examples/circle_with_arc_border.rb +15 -0
- data/gosu_more_drawables.gemspec +1 -0
- data/lib/gosu_more_drawables/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b0b84d1e986562f0db9c00c673700dc3280d93b273c751a27dfc1e562d54a08
|
|
4
|
+
data.tar.gz: 53316051d63937465211df1f834de34a6604818026a16fe2f8ed7ceca01f4427
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6fd4865bfa01e68cf3559d993ffb30c7d5877bcad7ef5db212ef73d79ca63eaedd9f565eda3a41435fb0e2424c36942e44a52270541773ed2c1513ae61040e7
|
|
7
|
+
data.tar.gz: 2116dd8e29caf13dd12bb18d0ee53de427459871f39e9e5a5a00d104e54a2e2a1a2df41d11d588846eda634ef6a187966b655a344502f0f5a97996fcc74424c1
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# GosuMoreDrawables
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
Adds `Gosu.draw_circle` and `Gosu.draw_arc` to the Gosu game library.
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -22,7 +20,23 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
``` ruby
|
|
24
|
+
require "gosu"
|
|
25
|
+
require "gosu_more_drawables"
|
|
26
|
+
|
|
27
|
+
class DemoWindow < Gosu::Window
|
|
28
|
+
def initialize
|
|
29
|
+
super(500, 500, false)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def draw
|
|
33
|
+
Gosu.draw_circle(250, 250, 200, 128, Gosu::Color.rgb(0, 200, 0))
|
|
34
|
+
Gosu.draw_arc(250, 250, 200, 1.0, 128, 4, Gosu::Color.rgba(127, 64, 0, 100))
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
DemoWindow.new.show
|
|
39
|
+
```
|
|
26
40
|
|
|
27
41
|
## Development
|
|
28
42
|
|
|
@@ -32,7 +46,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
46
|
|
|
33
47
|
## Contributing
|
|
34
48
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
49
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cyberarm/gosu_more_drawables.
|
|
36
50
|
|
|
37
51
|
## License
|
|
38
52
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
require "gosu"
|
|
2
|
+
require "gosu_more_drawables"
|
|
3
|
+
|
|
4
|
+
class DemoWindow < Gosu::Window
|
|
5
|
+
def initialize
|
|
6
|
+
super(500, 500, false)
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def draw
|
|
10
|
+
Gosu.draw_circle(250, 250, 200, 128, Gosu::Color.rgb(0, 200, 0))
|
|
11
|
+
Gosu.draw_arc(250, 250, 200, 1.0, 128, 4, Gosu::Color.rgba(127, 64, 0, 100))
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
DemoWindow.new.show
|
data/gosu_more_drawables.gemspec
CHANGED
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
19
19
|
spec.metadata["source_code_uri"] = "https://github.com/cyberarm/gosu_more_drawables"
|
|
20
|
+
spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/gosu_more_drawables"
|
|
20
21
|
|
|
21
22
|
# Specify which files should be added to the gem when it is released.
|
|
22
23
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gosu_more_drawables
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cyberarm
|
|
@@ -66,6 +66,7 @@ files:
|
|
|
66
66
|
- Rakefile
|
|
67
67
|
- bin/console
|
|
68
68
|
- bin/setup
|
|
69
|
+
- examples/circle_with_arc_border.rb
|
|
69
70
|
- gosu_more_drawables.gemspec
|
|
70
71
|
- lib/gosu_more_drawables.rb
|
|
71
72
|
- lib/gosu_more_drawables/draw_arc.rb
|
|
@@ -78,6 +79,7 @@ metadata:
|
|
|
78
79
|
allowed_push_host: https://rubygems.org
|
|
79
80
|
homepage_uri: https://github.com/cyberarm/gosu_more_drawables
|
|
80
81
|
source_code_uri: https://github.com/cyberarm/gosu_more_drawables
|
|
82
|
+
documentation_uri: https://rubydoc.info/gems/gosu_more_drawables
|
|
81
83
|
post_install_message:
|
|
82
84
|
rdoc_options: []
|
|
83
85
|
require_paths:
|