moonbirds 1.0.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +4 -2
- data/README.md +135 -20
- data/Rakefile +5 -3
- data/config/spritesheet-24x24.csv +222 -0
- data/config/spritesheet-24x24.png +0 -0
- data/config/spritesheet-42x42.csv +326 -0
- data/config/spritesheet-42x42.png +0 -0
- data/lib/moonbirds/version.rb +7 -3
- data/lib/moonbirds.rb +79 -32
- metadata +42 -12
- data/config/spritesheet.csv +0 -218
- data/config/spritesheet.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86cfe07a14b8bc08d42128914ed362ef3d07dfb5b309dccbe0930a0dc1124b0f
|
4
|
+
data.tar.gz: 6fe993de49fabc2109c204aa6a030f910489421e2564c465863f7baf8ee9a265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656aaed6b829728d31b7a6d724f5cfa2b573cbb2201fd51e7cb86c4f5620fd53d9978948ebbe7884260d645d113a5158517596e840d7cbd2314de774248146f4
|
7
|
+
data.tar.gz: bad40e07432dc0454523f07e9e471af1e733ca6cfabbe912e8586e400f72b6917cdb93a1f591e5845458f66693b8a7771f7e2a2a0b312b181309e617ee3d5d65
|
data/Manifest.txt
CHANGED
@@ -2,7 +2,9 @@ CHANGELOG.md
|
|
2
2
|
Manifest.txt
|
3
3
|
README.md
|
4
4
|
Rakefile
|
5
|
-
config/spritesheet.csv
|
6
|
-
config/spritesheet.png
|
5
|
+
config/spritesheet-24x24.csv
|
6
|
+
config/spritesheet-24x24.png
|
7
|
+
config/spritesheet-42x42.csv
|
8
|
+
config/spritesheet-42x42.png
|
7
9
|
lib/moonbirds.rb
|
8
10
|
lib/moonbirds/version.rb
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
|
1
|
+
The Do-It-Yourself (DIY) [Factory of Modern Originals (FoMO)](https://github.com/pixelartexchange/originals) Presents
|
2
2
|
|
3
|
-
|
3
|
+
# Moonbirds & Lil' Moonbirdies (Pixel Owls 'n' Friends)
|
4
|
+
|
5
|
+
Yes, you can! Generate your own 42×42 (or lil' 24×24) pixel owl images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more
|
4
6
|
|
5
7
|
|
6
8
|
|
@@ -14,6 +16,8 @@ moonbirds - generate your own 42×42 pixel owl images (off chain) from text attr
|
|
14
16
|
|
15
17
|
## Usage
|
16
18
|
|
19
|
+
**42×42px**
|
20
|
+
|
17
21
|
Let's generate some super-rare never-before-seen
|
18
22
|
moonbirds (pixel owls):
|
19
23
|
|
@@ -23,38 +27,38 @@ require 'moonbirds'
|
|
23
27
|
########
|
24
28
|
# Moonbird No. 1
|
25
29
|
bird = Moonbird::Image.generate( "Tabby Brown",
|
26
|
-
"
|
27
|
-
"
|
30
|
+
"Small Orange",
|
31
|
+
"Open White" )
|
28
32
|
bird.save( "moonbird1.png" )
|
29
33
|
bird.zoom( 4 ).save( "moonbird1@4x.png" )
|
30
34
|
|
31
35
|
# let's add 3D Glasses
|
32
36
|
bird = Moonbird::Image.generate( "Tabby Brown",
|
33
|
-
"
|
34
|
-
"
|
37
|
+
"Small Orange",
|
38
|
+
"Open White",
|
35
39
|
"3D Glasses" )
|
36
40
|
bird.save( "moonbird1b.png" )
|
37
41
|
bird.zoom( 4 ).save( "moonbird1b@4x.png" )
|
38
42
|
|
39
43
|
# let's add McDonald's Red (from the Fast Food Series)
|
40
44
|
bird = Moonbird::Image.generate( "Tabby Brown",
|
41
|
-
"
|
42
|
-
"
|
45
|
+
"Small Orange",
|
46
|
+
"Open White",
|
43
47
|
"McDonald's Red" )
|
44
48
|
bird.zoom( 4 ).save( "moonbird1c@4x.png" )
|
45
49
|
|
46
50
|
# let's add Drive-Thru On Duty (from the Fast Food Series)
|
47
51
|
bird = Moonbird::Image.generate( "Tabby Brown",
|
48
|
-
"
|
49
|
-
"
|
52
|
+
"Small Orange",
|
53
|
+
"Open White",
|
50
54
|
"McDonald's Red",
|
51
55
|
"Drive-Thru On Duty" )
|
52
56
|
bird.zoom( 4 ).save( "moonbird1d@4x.png" )
|
53
57
|
|
54
58
|
# let's add McDonald's Shirt - Old Skool (from the Fast Food Series)
|
55
59
|
bird = Moonbird::Image.generate( "Tabby Brown",
|
56
|
-
"
|
57
|
-
"
|
60
|
+
"Small Orange",
|
61
|
+
"Open White",
|
58
62
|
"McDonald's Red",
|
59
63
|
"Drive-Thru On Duty",
|
60
64
|
"McDonald's Shirt (Old Skool)" )
|
@@ -83,14 +87,14 @@ In 4x:
|
|
83
87
|
###
|
84
88
|
# Moonbird No. 2
|
85
89
|
bird = Moonbird::Image.generate( "Professor Golden",
|
86
|
-
"
|
87
|
-
"
|
90
|
+
"Small Golden",
|
91
|
+
"Open Golden" )
|
88
92
|
bird.zoom( 4 ).save( "moonbird2@4x.png" )
|
89
93
|
|
90
94
|
# let's add Beanie
|
91
95
|
bird = Moonbird::Image.generate( "Crescent Golden",
|
92
|
-
"
|
93
|
-
"
|
96
|
+
"Small Golden",
|
97
|
+
"Open Golden",
|
94
98
|
"Beanie" )
|
95
99
|
bird.zoom( 4 ).save( "moonbird2b@4x.png" )
|
96
100
|
```
|
@@ -114,11 +118,11 @@ bird = Moonbird::Image.generate( "Brave Glitch" )
|
|
114
118
|
bird.zoom( 4 ).save( "moonbird3@4x.png" )
|
115
119
|
|
116
120
|
# let's add a red background
|
117
|
-
bird =
|
121
|
+
bird = bird.background( 'red' )
|
118
122
|
bird.zoom( 4 ).save( "moonbird3b@4x.png" )
|
119
|
-
|
120
123
|
```
|
121
124
|
|
125
|
+
|
122
126
|
Voila!
|
123
127
|
|
124
128
|
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbird3.png)
|
@@ -132,9 +136,98 @@ In 4x:
|
|
132
136
|
|
133
137
|
And so on.
|
134
138
|
|
135
|
-
|
139
|
+
|
140
|
+
**24×24px**
|
141
|
+
|
142
|
+
Let's generate some super-rare never-before-seen
|
143
|
+
lil' moonbirdies (pixel owls):
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
########
|
147
|
+
# Moonbirdie No. 1
|
148
|
+
birdie = Moonbirdie::Image.generate( "Tabby Brown",
|
149
|
+
"Small Orange",
|
150
|
+
"Open White" )
|
151
|
+
birdie.save( "moonbirdie1.png" )
|
152
|
+
birdie.zoom( 4 ).save( "moonbirdie1@4x.png" )
|
153
|
+
|
154
|
+
# let's add 3D Glasses
|
155
|
+
birdie = Moonbirdie::Image.generate( "Tabby Brown",
|
156
|
+
"Small Orange",
|
157
|
+
"Open White",
|
158
|
+
"3D Glasses" )
|
159
|
+
birdie.save( "moonbirdie1b.png" )
|
160
|
+
birdie.zoom( 4 ).save( "moonbirdie1b@4x.png" )
|
161
|
+
```
|
162
|
+
|
163
|
+
Voila!
|
164
|
+
|
165
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1.png)
|
166
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1b.png)
|
167
|
+
|
168
|
+
In 4x:
|
169
|
+
|
170
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1@4x.png)
|
171
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie1b@4x.png)
|
172
|
+
|
173
|
+
|
174
|
+
```ruby
|
175
|
+
###
|
176
|
+
# Moonbirdie No. 2
|
177
|
+
birdie = Moonbirdie::Image.generate( "Professor Golden",
|
178
|
+
"Small Golden",
|
179
|
+
"Open Golden" )
|
180
|
+
birdie.zoom( 4 ).save( "moonbirdie2@4x.png" )
|
181
|
+
|
182
|
+
# let's add Beanie
|
183
|
+
birdie = Moonbirdie::Image.generate( "Crescent Golden",
|
184
|
+
"Small Golden",
|
185
|
+
"Open Golden",
|
186
|
+
"Beanie" )
|
187
|
+
birdie.zoom( 4 ).save( "moonbirdie2b@4x.png" )
|
188
|
+
```
|
189
|
+
|
190
|
+
Voila!
|
191
|
+
|
192
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2.png)
|
193
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2b.png)
|
194
|
+
|
195
|
+
In 4x:
|
196
|
+
|
197
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2@4x.png)
|
198
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie2b@4x.png)
|
136
199
|
|
137
200
|
|
201
|
+
|
202
|
+
```ruby
|
203
|
+
###
|
204
|
+
# Moonbirdie No. 3
|
205
|
+
birdie = Moonbirdie::Image.generate( "Ruby Skeleton", "Small Ruby", "Moon", "Lincoln" )
|
206
|
+
birdie.zoom( 4 ).save( "moonbirdie@4x.png" )
|
207
|
+
|
208
|
+
# let's add a save / glory to ukraine background
|
209
|
+
birdie = birdie.background( 'ukraine' )
|
210
|
+
birdie.zoom( 4 ).save( "moonbirdie3b@4x.png" )
|
211
|
+
```
|
212
|
+
|
213
|
+
Voila!
|
214
|
+
|
215
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3.png)
|
216
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3b.png)
|
217
|
+
|
218
|
+
In 4x:
|
219
|
+
|
220
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3@4x.png)
|
221
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/i/moonbirdie3b@4x.png)
|
222
|
+
|
223
|
+
|
224
|
+
And so on.
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
### Bonus - Look-Up Attributes (Via Built-In Spritesheet)
|
230
|
+
|
138
231
|
Let's look-up some attributes:
|
139
232
|
|
140
233
|
```ruby
|
@@ -173,7 +266,29 @@ And so on.
|
|
173
266
|
|
174
267
|
|
175
268
|
|
269
|
+
## Appendix - All Built-In Spritesheet Attributes
|
270
|
+
|
271
|
+
**42×42px**
|
272
|
+
|
273
|
+
See the [spritesheet-42x42.csv](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-42x42.csv) dataset for all attribute names (w/ categories).
|
274
|
+
|
275
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/config/spritesheet-42x42.png)
|
276
|
+
|
277
|
+
(Source: [moonbirds/spritesheet-42x42.png](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-42x42.png))
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
**Lil' 24×24px**
|
282
|
+
|
283
|
+
See the [spritesheet-24x24.csv](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-24x24.csv) dataset for all attribute names (w/ categories).
|
284
|
+
|
285
|
+
![](https://github.com/pixelartexchange/pixelart/raw/master/moonbirds/config/spritesheet-24x24.png)
|
286
|
+
|
287
|
+
(Source: [moonbirds/spritesheet-24x24.png](https://github.com/pixelartexchange/pixelart/blob/master/moonbirds/config/spritesheet-24x24.png))
|
288
|
+
|
289
|
+
|
176
290
|
|
177
291
|
## Questions? Comments?
|
178
292
|
|
179
|
-
Post them on the [
|
293
|
+
Post them on the [D.I.Y. Punk (Pixel) Art reddit](https://old.reddit.com/r/DIYPunkArt). Thanks.
|
294
|
+
|
data/Rakefile
CHANGED
@@ -11,9 +11,9 @@ end
|
|
11
11
|
|
12
12
|
Hoe.spec 'moonbirds' do
|
13
13
|
|
14
|
-
self.version = Moonbirds::VERSION
|
14
|
+
self.version = Pixelart::Module::Moonbirds::VERSION
|
15
15
|
|
16
|
-
self.summary = "moonbirds - generate your own 42×42 pixel owl images (off chain) from text attributes (via built-in
|
16
|
+
self.summary = "moonbirds - generate your own 42×42 (or lil' 24×24) pixel owl images (off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for bigger sizes and more"
|
17
17
|
self.description = summary
|
18
18
|
|
19
19
|
self.urls = { home: 'https://github.com/pixelartexchange/pixelart' }
|
@@ -26,7 +26,9 @@ Hoe.spec 'moonbirds' do
|
|
26
26
|
self.history_file = 'CHANGELOG.md'
|
27
27
|
|
28
28
|
self.extra_deps = [
|
29
|
-
['pixelart', '>= 1.3.
|
29
|
+
['pixelart', '>= 1.3.2'],
|
30
|
+
['artfactory', '>= 0.2.0'],
|
31
|
+
['backgrounds', '>= 0.2.0'],
|
30
32
|
]
|
31
33
|
|
32
34
|
self.licenses = ['Public Domain']
|
@@ -0,0 +1,222 @@
|
|
1
|
+
id, name, type, more_names
|
2
|
+
0, brave-black, ?,
|
3
|
+
1, brave-blue, ?,
|
4
|
+
2, brave-brown, ?,
|
5
|
+
3, brave-gray, ?,
|
6
|
+
4, brave-green, ?,
|
7
|
+
5, brave-pink, ?,
|
8
|
+
6, brave-purple, ?,
|
9
|
+
7, brave-red, ?,
|
10
|
+
8, brave-white, ?,
|
11
|
+
9, crescent-black, ?,
|
12
|
+
10, crescent-blue, ?,
|
13
|
+
11, crescent-brown, ?,
|
14
|
+
12, crescent-gray, ?,
|
15
|
+
13, crescent-green, ?,
|
16
|
+
14, crescent-pink, ?,
|
17
|
+
15, crescent-purple, ?,
|
18
|
+
16, crescent-red, ?,
|
19
|
+
17, crescent-white, ?,
|
20
|
+
18, emperor-black, ?,
|
21
|
+
19, emperor-blue, ?,
|
22
|
+
20, emperor-brown, ?,
|
23
|
+
21, emperor-gray, ?,
|
24
|
+
22, emperor-green, ?,
|
25
|
+
23, emperor-pink, ?,
|
26
|
+
24, emperor-purple, ?,
|
27
|
+
25, emperor-red, ?,
|
28
|
+
26, emperor-white, ?,
|
29
|
+
27, guardian-black, ?,
|
30
|
+
28, guardian-blue, ?,
|
31
|
+
29, guardian-brown, ?,
|
32
|
+
30, guardian-gray, ?,
|
33
|
+
31, guardian-green, ?,
|
34
|
+
32, guardian-pink, ?,
|
35
|
+
33, guardian-purple, ?,
|
36
|
+
34, guardian-red, ?,
|
37
|
+
35, guardian-white, ?,
|
38
|
+
36, professor-black, ?,
|
39
|
+
37, professor-blue, ?,
|
40
|
+
38, professor-brown, ?,
|
41
|
+
39, professor-gray, ?,
|
42
|
+
40, professor-green, ?,
|
43
|
+
41, professor-pink, ?,
|
44
|
+
42, professor-purple, ?,
|
45
|
+
43, professor-red, ?,
|
46
|
+
44, professor-white, ?,
|
47
|
+
45, sage-black, ?,
|
48
|
+
46, sage-blue, ?,
|
49
|
+
47, sage-brown, ?,
|
50
|
+
48, sage-gray, ?,
|
51
|
+
49, sage-green, ?,
|
52
|
+
50, sage-pink, ?,
|
53
|
+
51, sage-purple, ?,
|
54
|
+
52, sage-red, ?,
|
55
|
+
53, sage-white, ?,
|
56
|
+
54, stark-black, ?,
|
57
|
+
55, stark-blue, ?,
|
58
|
+
56, stark-brown, ?,
|
59
|
+
57, stark-gray, ?,
|
60
|
+
58, stark-green, ?,
|
61
|
+
59, stark-pink, ?,
|
62
|
+
60, stark-purple, ?,
|
63
|
+
61, stark-red, ?,
|
64
|
+
62, stark-white, ?,
|
65
|
+
63, tabby-black, ?,
|
66
|
+
64, tabby-blue, ?,
|
67
|
+
65, tabby-brown, ?,
|
68
|
+
66, tabby-gray, ?,
|
69
|
+
67, tabby-green, ?,
|
70
|
+
68, tabby-pink, ?,
|
71
|
+
69, tabby-purple, ?,
|
72
|
+
70, tabby-red, ?,
|
73
|
+
71, tabby-white, ?,
|
74
|
+
72, tranquil-black, ?,
|
75
|
+
73, tranquil-blue, ?,
|
76
|
+
74, tranquil-brown, ?,
|
77
|
+
75, tranquil-gray, ?,
|
78
|
+
76, tranquil-green, ?,
|
79
|
+
77, tranquil-pink, ?,
|
80
|
+
78, tranquil-purple, ?,
|
81
|
+
79, tranquil-red, ?,
|
82
|
+
80, tranquil-white, ?,
|
83
|
+
81, brave-golden, ?,
|
84
|
+
82, crescent-golden, ?,
|
85
|
+
83, emperor-golden, ?,
|
86
|
+
84, guardian-golden, ?,
|
87
|
+
85, professor-golden, ?,
|
88
|
+
86, sage-golden, ?,
|
89
|
+
87, stark-golden, ?,
|
90
|
+
88, tabby-golden, ?,
|
91
|
+
89, tranquil-golden, ?,
|
92
|
+
90, ruby_skeleton, ?,
|
93
|
+
91, skeleton, ?,
|
94
|
+
92, robot, ?,
|
95
|
+
93, long orange, ?,
|
96
|
+
94, short orange, ?,
|
97
|
+
95, small orange, ?,
|
98
|
+
96, long golden, ?,
|
99
|
+
97, short golden, ?,
|
100
|
+
98, small golden, ?,
|
101
|
+
99, long ruby, ?,
|
102
|
+
100, short ruby, ?,
|
103
|
+
101, small ruby, ?,
|
104
|
+
102, long skeleton, ?,
|
105
|
+
103, short skeleton, ?,
|
106
|
+
104, small skeleton, ?,
|
107
|
+
105, long robot, ?,
|
108
|
+
106, short robot, ?,
|
109
|
+
107, small robot, ?,
|
110
|
+
108, angry-blue, ?,
|
111
|
+
109, angry-gray, ?,
|
112
|
+
110, angry-green, ?,
|
113
|
+
111, angry-purple, ?,
|
114
|
+
112, angry-red, ?,
|
115
|
+
113, angry-white, ?,
|
116
|
+
114, angry-yellow, ?,
|
117
|
+
115, discerning-blue, ?,
|
118
|
+
116, discerning-gray, ?,
|
119
|
+
117, discerning-green, ?,
|
120
|
+
118, discerning-purple, ?,
|
121
|
+
119, discerning-red, ?,
|
122
|
+
120, discerning-white, ?,
|
123
|
+
121, discerning-yellow, ?,
|
124
|
+
122, open-blue, ?,
|
125
|
+
123, open-gray, ?,
|
126
|
+
124, open-green, ?,
|
127
|
+
125, open-purple, ?,
|
128
|
+
126, open-red, ?,
|
129
|
+
127, open-white, ?,
|
130
|
+
128, open-yellow, ?,
|
131
|
+
129, relaxed-blue, ?,
|
132
|
+
130, relaxed-gray, ?,
|
133
|
+
131, relaxed-green, ?,
|
134
|
+
132, relaxed-purple, ?,
|
135
|
+
133, relaxed-red, ?,
|
136
|
+
134, relaxed-white, ?,
|
137
|
+
135, relaxed-yellow, ?,
|
138
|
+
136, side_eye-blue, ?,
|
139
|
+
137, side_eye-gray, ?,
|
140
|
+
138, side_eye-green, ?,
|
141
|
+
139, side_eye-purple, ?,
|
142
|
+
140, side_eye-red, ?,
|
143
|
+
141, side_eye-white, ?,
|
144
|
+
142, side_eye-yellow, ?,
|
145
|
+
143, adorable, ?,
|
146
|
+
144, diamonds, ?,
|
147
|
+
145, moon, ?,
|
148
|
+
146, rainbow, ?,
|
149
|
+
147, angry-golden, ?,
|
150
|
+
148, discerning-golden, ?,
|
151
|
+
149, open-golden, ?,
|
152
|
+
150, relaxed-golden, ?,
|
153
|
+
151, side_eye-golden, ?,
|
154
|
+
152, angry-ruby, ?,
|
155
|
+
153, angry-skeleton, ?,
|
156
|
+
154, discerning-ruby, ?,
|
157
|
+
155, discerning-skeleton, ?,
|
158
|
+
156, open-ruby, ?,
|
159
|
+
157, open-skeleton, ?,
|
160
|
+
158, relaxed-ruby, ?,
|
161
|
+
159, relaxed-skeleton, ?,
|
162
|
+
160, side_eye-ruby, ?,
|
163
|
+
161, side_eye-skeleton, ?,
|
164
|
+
162, angry-robot, ?,
|
165
|
+
163, discerning-robot, ?,
|
166
|
+
164, open-robot, ?,
|
167
|
+
165, relaxed-robot, ?,
|
168
|
+
166, side_eye-robot, ?,
|
169
|
+
167, 3d_glasses, ?,
|
170
|
+
168, aviators, ?,
|
171
|
+
169, big_tech, ?,
|
172
|
+
170, black_rimed_glasses, ?,
|
173
|
+
171, eye_patch, ?,
|
174
|
+
172, gazelles, ?,
|
175
|
+
173, jobs_glasses, ?,
|
176
|
+
174, monocle, ?,
|
177
|
+
175, rose_colored_glasses, ?,
|
178
|
+
176, sunglasses, ?,
|
179
|
+
177, visor, ?,
|
180
|
+
178, aviators_cap, ?,
|
181
|
+
179, backwards_hat, ?,
|
182
|
+
180, bandana, ?,
|
183
|
+
181, beanie, ?,
|
184
|
+
182, bow, ?,
|
185
|
+
183, bucket_hat, ?,
|
186
|
+
184, captains_cap, ?,
|
187
|
+
185, chromie, ?,
|
188
|
+
186, cowboy_hat, ?,
|
189
|
+
187, crescent, ?,
|
190
|
+
188, dancing_flame, ?,
|
191
|
+
189, diamond, ?,
|
192
|
+
190, duck, ?,
|
193
|
+
191, durag, ?,
|
194
|
+
192, fire, ?,
|
195
|
+
193, flower, ?,
|
196
|
+
194, forest_ranger, ?,
|
197
|
+
195, grail, ?,
|
198
|
+
196, green_mohawk, ?,
|
199
|
+
197, gremplin, ?,
|
200
|
+
198, halo, ?,
|
201
|
+
199, headband, ?,
|
202
|
+
200, heros_cap, ?,
|
203
|
+
201, karate_band, ?,
|
204
|
+
202, lincoln, ?,
|
205
|
+
203, moon_hat, ?,
|
206
|
+
204, pink_mohawk, ?,
|
207
|
+
205, pirates_hat, ?,
|
208
|
+
206, queens_crown, ?,
|
209
|
+
207, rain, ?,
|
210
|
+
208, skully, ?,
|
211
|
+
209, space_helmet, ?,
|
212
|
+
210, tiara, ?,
|
213
|
+
211, tiny_crown, ?,
|
214
|
+
212, witchs_hat, ?,
|
215
|
+
213, wizards_hat, ?,
|
216
|
+
214, bomber_jacket, ?,
|
217
|
+
215, diamond_necklace, ?,
|
218
|
+
216, gold_chain, ?,
|
219
|
+
217, heros_tunic, ?,
|
220
|
+
218, hoodie_down, ?,
|
221
|
+
219, jean_jacket, ?,
|
222
|
+
220, punk_jacket, ?,
|
Binary file
|
@@ -0,0 +1,326 @@
|
|
1
|
+
id, name, type, more_names
|
2
|
+
0, brave black, ?, black brave
|
3
|
+
1, crescent black, ?, black crescent
|
4
|
+
2, emperor black, ?, black emperor
|
5
|
+
3, guardian black, ?, black guardian
|
6
|
+
4, professor black, ?, black professor
|
7
|
+
5, sage black, ?, black sage
|
8
|
+
6, stark black, ?, black stark
|
9
|
+
7, tabby black, ?, black tabby
|
10
|
+
8, tranquil black, ?, black tranquil
|
11
|
+
9, brave blue, ?, blue brave
|
12
|
+
10, crescent blue, ?, blue crescent
|
13
|
+
11, emperor blue, ?, blue emperor
|
14
|
+
12, guardian blue, ?, blue guardian
|
15
|
+
13, professor blue, ?, blue professor
|
16
|
+
14, sage blue, ?, blue sage
|
17
|
+
15, stark blue, ?, blue stark
|
18
|
+
16, tabby blue, ?, blue tabby
|
19
|
+
17, tranquil blue, ?, blue tranquil
|
20
|
+
18, brave brown, ?, brown brave
|
21
|
+
19, crescent brown, ?, brown crescent
|
22
|
+
20, emperor brown, ?, brown emperor
|
23
|
+
21, guardian brown, ?, brown guardian
|
24
|
+
22, professor brown, ?, brown professor
|
25
|
+
23, sage brown, ?, brown sage
|
26
|
+
24, stark brown, ?, brown stark
|
27
|
+
25, tabby brown, ?, brown tabby
|
28
|
+
26, tranquil brown, ?, brown tranquil
|
29
|
+
27, brave gray, ?, gray brave
|
30
|
+
28, crescent gray, ?, gray crescent
|
31
|
+
29, emperor gray, ?, gray emperor
|
32
|
+
30, guardian gray, ?, gray guardian
|
33
|
+
31, professor gray, ?, gray professor
|
34
|
+
32, sage gray, ?, gray sage
|
35
|
+
33, stark gray, ?, gray stark
|
36
|
+
34, tabby gray, ?, gray tabby
|
37
|
+
35, tranquil gray, ?, gray tranquil
|
38
|
+
36, brave green, ?, green brave
|
39
|
+
37, crescent green, ?, green crescent
|
40
|
+
38, emperor green, ?, green emperor
|
41
|
+
39, guardian green, ?, green guardian
|
42
|
+
40, professor green, ?, green professor
|
43
|
+
41, sage green, ?, green sage
|
44
|
+
42, stark green, ?, green stark
|
45
|
+
43, tabby green, ?, green tabby
|
46
|
+
44, tranquil green, ?, green tranquil
|
47
|
+
45, brave pink, ?, pink brave
|
48
|
+
46, crescent pink, ?, pink crescent
|
49
|
+
47, emperor pink, ?, pink emperor
|
50
|
+
48, guardian pink, ?, pink guardian
|
51
|
+
49, professor pink, ?, pink professor
|
52
|
+
50, sage pink, ?, pink sage
|
53
|
+
51, stark pink, ?, pink stark
|
54
|
+
52, tabby pink, ?, pink tabby
|
55
|
+
53, tranquil pink, ?, pink tranquil
|
56
|
+
54, brave purple, ?, purple brave
|
57
|
+
55, crescent purple, ?, purple crescent
|
58
|
+
56, emperor purple, ?, purple emperor
|
59
|
+
57, guardian purple, ?, purple guardian
|
60
|
+
58, professor purple, ?, purple professor
|
61
|
+
59, sage purple, ?, purple sage
|
62
|
+
60, stark purple, ?, purple stark
|
63
|
+
61, tabby purple, ?, purple tabby
|
64
|
+
62, tranquil purple, ?, purple tranquil
|
65
|
+
63, brave red, ?, red brave
|
66
|
+
64, crescent red, ?, red crescent
|
67
|
+
65, emperor red, ?, red emperor
|
68
|
+
66, guardian red, ?, red guardian
|
69
|
+
67, professor red, ?, red professor
|
70
|
+
68, sage red, ?, red sage
|
71
|
+
69, stark red, ?, red stark
|
72
|
+
70, tabby red, ?, red tabby
|
73
|
+
71, tranquil red, ?, red tranquil
|
74
|
+
72, brave white, ?, white brave
|
75
|
+
73, crescent white, ?, white crescent
|
76
|
+
74, emperor white, ?, white emperor
|
77
|
+
75, guardian white, ?, white guardian
|
78
|
+
76, professor white, ?, white professor
|
79
|
+
77, sage white, ?, white sage
|
80
|
+
78, stark white, ?, white stark
|
81
|
+
79, tabby white, ?, white tabby
|
82
|
+
80, tranquil white, ?, white tranquil
|
83
|
+
81, golden crescent, ?, crescent golden
|
84
|
+
82, golden emperor, ?, emperor golden
|
85
|
+
83, golden professor, ?, professor golden
|
86
|
+
84, golden sage, ?, sage golden
|
87
|
+
85, ruby skeleton, ?, skeleton ruby
|
88
|
+
86, skeleton, ?,
|
89
|
+
87, robot, ?,
|
90
|
+
88, jade brave, ?, brave jade
|
91
|
+
89, jade crescent, ?, crescent jade
|
92
|
+
90, cosmic brave, ?, brave cosmic
|
93
|
+
91, cosmic crescent, ?, crescent cosmic
|
94
|
+
92, enlightened brave, ?, brave enlightened
|
95
|
+
93, enlightened crescent, ?, crescent enlightened
|
96
|
+
94, glitch brave, ?, brave glitch
|
97
|
+
95, glitch guardian, ?, guardian glitch
|
98
|
+
96, small gray, ?, gray small
|
99
|
+
97, small orange, ?, orange small
|
100
|
+
98, short gray, ?, gray short
|
101
|
+
99, short orange, ?, orange short
|
102
|
+
100, long gray, ?, gray long
|
103
|
+
101, long orange, ?, orange long
|
104
|
+
102, ruby small, ?, small ruby
|
105
|
+
103, ruby short, ?, short ruby
|
106
|
+
104, ruby long, ?, long ruby
|
107
|
+
105, skeleton small, ?, small skeleton
|
108
|
+
106, skeleton short, ?, short skeleton
|
109
|
+
107, skeleton long, ?, long skeleton
|
110
|
+
108, robot small, ?, small robot
|
111
|
+
109, robot short, ?, short robot
|
112
|
+
110, robot long, ?, long robot
|
113
|
+
111, small golden, ?, golden small
|
114
|
+
112, angry gray, ?, gray angry
|
115
|
+
113, discerning gray, ?, gray discerning
|
116
|
+
114, focused gray, ?, gray focused
|
117
|
+
115, open gray, ?, gray open
|
118
|
+
116, relaxed gray, ?, gray relaxed
|
119
|
+
117, side-eye gray, ?, gray side-eye
|
120
|
+
118, angry blue, ?, blue angry
|
121
|
+
119, discerning blue, ?, blue discerning
|
122
|
+
120, focused blue, ?, blue focused
|
123
|
+
121, open blue, ?, blue open
|
124
|
+
122, relaxed blue, ?, blue relaxed
|
125
|
+
123, side-eye blue, ?, blue side-eye
|
126
|
+
124, angry yellow, ?, yellow angry
|
127
|
+
125, discerning yellow, ?, yellow discerning
|
128
|
+
126, focused yellow, ?, yellow focused
|
129
|
+
127, open yellow, ?, yellow open
|
130
|
+
128, relaxed yellow, ?, yellow relaxed
|
131
|
+
129, side-eye yellow, ?, yellow side-eye
|
132
|
+
130, angry green, ?, green angry
|
133
|
+
131, discerning green, ?, green discerning
|
134
|
+
132, focused green, ?, green focused
|
135
|
+
133, open green, ?, green open
|
136
|
+
134, relaxed green, ?, green relaxed
|
137
|
+
135, side-eye green, ?, green side-eye
|
138
|
+
136, angry purple, ?, purple angry
|
139
|
+
137, discerning purple, ?, purple discerning
|
140
|
+
138, focused purple, ?, purple focused
|
141
|
+
139, open purple, ?, purple open
|
142
|
+
140, relaxed purple, ?, purple relaxed
|
143
|
+
141, side-eye purple, ?, purple side-eye
|
144
|
+
142, angry red, ?, red angry
|
145
|
+
143, discerning red, ?, red discerning
|
146
|
+
144, focused red, ?, red focused
|
147
|
+
145, open red, ?, red open
|
148
|
+
146, relaxed red, ?, red relaxed
|
149
|
+
147, side-eye red, ?, red side-eye
|
150
|
+
148, angry white, ?, white angry
|
151
|
+
149, discerning white, ?, white discerning
|
152
|
+
150, focused white, ?, white focused
|
153
|
+
151, open white, ?, white open
|
154
|
+
152, relaxed white, ?, white relaxed
|
155
|
+
153, side-eye white, ?, white side-eye
|
156
|
+
154, adorable, ?, adorable eyes
|
157
|
+
155, diamonds, ?, diamonds eyes
|
158
|
+
156, fire eyes, ?,
|
159
|
+
157, gold, ?, gold eyes
|
160
|
+
158, hearts, ?, hearts eyes
|
161
|
+
159, moon, ?, moon eyes
|
162
|
+
160, plagued, ?, plagued eyes
|
163
|
+
161, rainbow, ?, rainbow eyes
|
164
|
+
162, ruby angry, ?, angry ruby
|
165
|
+
163, ruby discerning, ?, discerning ruby
|
166
|
+
164, ruby open, ?, open ruby
|
167
|
+
165, ruby relaxed, ?, relaxed ruby
|
168
|
+
166, skeleton angry, ?, angry skeleton
|
169
|
+
167, skeleton discerning, ?, discerning skeleton
|
170
|
+
168, skeleton open, ?, open skeleton
|
171
|
+
169, skeleton relaxed, ?, relaxed skeleton
|
172
|
+
170, robot angry, ?, angry robot
|
173
|
+
171, robot open, ?, open robot
|
174
|
+
172, robot relaxed, ?, relaxed robot
|
175
|
+
173, golden angry, ?, angry golden
|
176
|
+
174, golden open, ?, open golden
|
177
|
+
175, golden side-eye, ?, side-eye golden
|
178
|
+
176, 3d_glasses, ?,
|
179
|
+
177, Aviators, ?, Aviators 1
|
180
|
+
178, big_tech, ?,
|
181
|
+
179, black_rimmed-glasses, ?,
|
182
|
+
180, eyepatch, ?,
|
183
|
+
181, gazelles, ?,
|
184
|
+
182, half_moon_specs, ?,
|
185
|
+
183, jobs_glasses, ?,
|
186
|
+
184, monocle, ?,
|
187
|
+
185, rose-colored_glasses, ?,
|
188
|
+
186, sunglasses, ?,
|
189
|
+
187, visor, ?,
|
190
|
+
188, big_shades, ?,
|
191
|
+
189, classic_shades, ?,
|
192
|
+
190, horned-rim_glasses, ?,
|
193
|
+
191, small_shades, ?,
|
194
|
+
192, Aviators 2, ?,
|
195
|
+
193, chill, ?,
|
196
|
+
194, green_shades, ?,
|
197
|
+
195, neon_shades, ?,
|
198
|
+
196, rainbow_shades, ?,
|
199
|
+
197, red_shades, ?,
|
200
|
+
198, round_glasses, ?,
|
201
|
+
199, sunset_shades, ?,
|
202
|
+
200, vipers, ?,
|
203
|
+
201, Aviator's Cap, ?,
|
204
|
+
202, backwards_hat, ?,
|
205
|
+
203, bandana, ?,
|
206
|
+
204, beanie, ?,
|
207
|
+
205, bow, ?,
|
208
|
+
206, bucket_hat, ?,
|
209
|
+
207, Captain's Cap, ?,
|
210
|
+
208, Cowboy Hat 1, ?, Cowboy Hat
|
211
|
+
209, durag, ?,
|
212
|
+
210, flower, ?,
|
213
|
+
211, forest_ranger, ?,
|
214
|
+
212, headband, ?,
|
215
|
+
213, headphones, ?,
|
216
|
+
214, Hero's Cap, ?,
|
217
|
+
215, karate_band, ?,
|
218
|
+
216, lincoln, ?,
|
219
|
+
217, Mohawk (Green), ?,
|
220
|
+
218, Mohawk (Pink), ?,
|
221
|
+
219, moon_hat, ?,
|
222
|
+
220, Pirate's Hat, ?,
|
223
|
+
221, Queen's Crown, ?,
|
224
|
+
222, tiara, ?,
|
225
|
+
223, space_helmet, ?,
|
226
|
+
224, Witch's Hat, ?,
|
227
|
+
225, Wizard's Hat, ?,
|
228
|
+
226, chromie, ?,
|
229
|
+
227, crescent_talisman, ?,
|
230
|
+
228, dancing_flame, ?,
|
231
|
+
229, fire, ?,
|
232
|
+
230, diamond, ?,
|
233
|
+
231, grail, ?,
|
234
|
+
232, gremplin, ?,
|
235
|
+
233, halo, ?,
|
236
|
+
234, raincloud, ?,
|
237
|
+
235, rubber_duck, ?,
|
238
|
+
236, skully, ?,
|
239
|
+
237, tiny_crown, ?,
|
240
|
+
238, cap, ?,
|
241
|
+
239, og_beanie, ?,
|
242
|
+
240, police_cap, ?,
|
243
|
+
241, top_hat, ?,
|
244
|
+
242, Black Red Hat, ?,
|
245
|
+
243, Cowboy Hat 2, ?,
|
246
|
+
244, crown, ?,
|
247
|
+
245, Gold Hat, ?,
|
248
|
+
246, gray_hat, ?,
|
249
|
+
247, blue_bucket, ?,
|
250
|
+
248, red_bucket, ?,
|
251
|
+
249, White Bucket, ?,
|
252
|
+
250, star, ?,
|
253
|
+
251, McDonald's 1, ?, McDonald's
|
254
|
+
252, McDonald's 2, ?, McDonald's Visor
|
255
|
+
253, McDonald's 3, ?, McDonald's Red 1 | McDonald's Red
|
256
|
+
254, McDonald's 4, ?, McDonald's Red 2
|
257
|
+
255, McDonald's 5, ?, McDonald's Bucket Black
|
258
|
+
256, McDonald's 6, ?, McDonald's Black
|
259
|
+
257, McDonald's 7, ?, McDonald's White
|
260
|
+
258, Burger King 1, ?, Burger King
|
261
|
+
259, Burger King 2, ?,
|
262
|
+
260, Burger King Crown, ?,
|
263
|
+
261, KF1 1, ?, KFC
|
264
|
+
262, KFC 2, ?, KFC Family Bucket
|
265
|
+
263, Chick-Fil-A, ?,
|
266
|
+
264, Denny's, ?,
|
267
|
+
265, Domino's 1, ?, Domino's
|
268
|
+
266, Domino's 2, ?,
|
269
|
+
267, Dunkin' Donuts 1, ?, Dunkin' Donuts
|
270
|
+
268, Dunkin' Donuts 2, ?,
|
271
|
+
269, Hooters, ?,
|
272
|
+
270, In-N-Out 2, ?,
|
273
|
+
271, In-N-Out 1, ?, In-N-Out
|
274
|
+
272, wendys, ?,
|
275
|
+
273, white_castle, ?,
|
276
|
+
274, Pizza Hut 1, ?,
|
277
|
+
275, Pizza Hut 2, ?,
|
278
|
+
276, Subway 2, ?, Subway Visor
|
279
|
+
277, Subway 1, ?, Subway
|
280
|
+
278, Taco Bell, ?,
|
281
|
+
279, Walmart 1 Walmart, ?,
|
282
|
+
280, Walmart 2, ?,
|
283
|
+
281, Starbucks 1, ?, Starbucks
|
284
|
+
282, Starbucks 2, ?,
|
285
|
+
283, coffee_boy, ?,
|
286
|
+
284, Ben & Jerry's, ?,
|
287
|
+
285, chef-red, ?,
|
288
|
+
286, chef-white, ?,
|
289
|
+
287, grill_cook, ?,
|
290
|
+
288, drive-thru-on-duty, ?,
|
291
|
+
289, burger, ?,
|
292
|
+
290, fries, ?,
|
293
|
+
291, chicken, ?,
|
294
|
+
292, cola, ?,
|
295
|
+
293, popcorn, ?,
|
296
|
+
294, ice_cream_cone, ?,
|
297
|
+
295, taco, ?,
|
298
|
+
296, bomber_jacket, ?,
|
299
|
+
297, heros_tunic, ?,
|
300
|
+
298, hoodie, ?,
|
301
|
+
299, hoodie_down, ?,
|
302
|
+
300, jean_jacket, ?,
|
303
|
+
301, punk_jacket, ?,
|
304
|
+
302, diamond_necklace, ?,
|
305
|
+
303, gold_chain, ?,
|
306
|
+
304, choker, ?,
|
307
|
+
305, silver_chain, ?,
|
308
|
+
306, Blue Hoodie, ?,
|
309
|
+
307, Green Hoodie, ?,
|
310
|
+
308, Blue Shirt, ?,
|
311
|
+
309, Green Shirt, ?,
|
312
|
+
310, Orange Shirt, ?,
|
313
|
+
311, Red Shirt, ?,
|
314
|
+
312, tee, ?,
|
315
|
+
313, blue_scarf, ?,
|
316
|
+
314, green_scarf, ?,
|
317
|
+
315, red_scarf, ?,
|
318
|
+
316, el_pollo_loco_mascot, ?,
|
319
|
+
317, McDonald's Shirt, ?,
|
320
|
+
318, McDonald's Shirt (Classic), ?,
|
321
|
+
319, McDonald's Shirt (Old Skool), ?,
|
322
|
+
320, Manager Shirt, ?,
|
323
|
+
321, KFC Shirt, ?,
|
324
|
+
322, Starbucks Apron 1, ?, Starbucks Apron
|
325
|
+
323, Starbucks Apron 2, ?,
|
326
|
+
324, hibachi, ?,
|
Binary file
|
data/lib/moonbirds/version.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
module Pixelart
|
3
|
+
module Module
|
3
4
|
module Moonbirds
|
4
5
|
|
5
6
|
MAJOR = 1
|
6
|
-
MINOR =
|
7
|
-
PATCH =
|
7
|
+
MINOR = 1
|
8
|
+
PATCH = 1
|
8
9
|
VERSION = [MAJOR,MINOR,PATCH].join('.')
|
9
10
|
|
10
11
|
def self.version
|
@@ -19,5 +20,8 @@ module Moonbirds
|
|
19
20
|
File.expand_path( File.dirname(File.dirname(File.dirname(__FILE__))) )
|
20
21
|
end
|
21
22
|
|
23
|
+
|
22
24
|
end # module Moonbirds
|
25
|
+
end # module Module
|
26
|
+
end # module Pixelart
|
23
27
|
|
data/lib/moonbirds.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
## 3rd party
|
2
|
-
require '
|
2
|
+
require 'backgrounds/base'
|
3
|
+
require 'artfactory/base'
|
3
4
|
|
4
5
|
|
5
6
|
|
@@ -7,57 +8,103 @@ require 'pixelart/base'
|
|
7
8
|
require 'moonbirds/version' # note: let version always go first
|
8
9
|
|
9
10
|
|
10
|
-
## forward define superclass for image
|
11
|
-
module Moonbirds
|
12
|
-
class Image < Pixelart::Image; end
|
13
|
-
end
|
14
11
|
|
12
|
+
module Moonbird
|
15
13
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
def self.generator
|
22
|
-
@generator ||= Pixelart::Generator.new( "#{root}/config/spritesheet.png",
|
23
|
-
"#{root}/config/spritesheet.csv",
|
14
|
+
class Spritesheet ## note: for now class used for "namespace" only
|
15
|
+
def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
|
16
|
+
@sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Moonbirds.root}/config/spritesheet-42x42.png",
|
17
|
+
"#{Pixelart::Module::Moonbirds.root}/config/spritesheet-42x42.csv",
|
24
18
|
width: 42,
|
25
19
|
height: 42 )
|
26
|
-
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.find_by( name: ) ## return archetype/attribute image by name
|
23
|
+
builtin.find_by( name: name )
|
24
|
+
end
|
25
|
+
end # class Spritesheet
|
26
|
+
## add convenience (alternate spelling) alias - why? why not?
|
27
|
+
SpriteSheet = Spritesheet
|
28
|
+
Sheet = Spritesheet
|
29
|
+
Sprite = Spritesheet
|
30
|
+
|
31
|
+
|
32
|
+
class Image < Pixelart::Image
|
33
|
+
def self.generator
|
34
|
+
@generator ||= Artfactory.use( Moonbird::Sheet.builtin,
|
35
|
+
image_class: Image )
|
36
|
+
end
|
37
|
+
|
27
38
|
|
39
|
+
NAMES = ['bird', 'birds',
|
40
|
+
'moonbird', 'moonbirds',
|
41
|
+
'owl', 'owls']
|
42
|
+
DEFAULT_ATTRIBUTES = ['Brave Glitch']
|
28
43
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
|
33
|
-
new( 42, 42, img.image )
|
34
|
-
end # method Image.generate
|
44
|
+
def self.generate( *names )
|
45
|
+
generator.generate( *names )
|
46
|
+
end
|
35
47
|
end # class Image
|
48
|
+
end # module Moonbird
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
module Moonbirdie
|
36
53
|
|
54
|
+
class Spritesheet ## note: for now class used for "namespace" only
|
55
|
+
def self.builtin ### check: use a different name e.g. default,standard,base or such - why? why not?
|
56
|
+
@sheet ||= Pixelart::Spritesheet.read( "#{Pixelart::Module::Moonbirds.root}/config/spritesheet-24x24.png",
|
57
|
+
"#{Pixelart::Module::Moonbirds.root}/config/spritesheet-24x24.csv",
|
58
|
+
width: 24,
|
59
|
+
height: 24 )
|
60
|
+
end
|
37
61
|
|
38
|
-
class Spritesheet
|
39
|
-
## note: for now class used for "namespace" only
|
40
62
|
def self.find_by( name: ) ## return archetype/attribute image by name
|
41
|
-
|
42
|
-
Moonbirds.generator.find( name )
|
63
|
+
builtin.find_by( name: name )
|
43
64
|
end
|
44
65
|
end # class Spritesheet
|
45
66
|
## add convenience (alternate spelling) alias - why? why not?
|
46
67
|
SpriteSheet = Spritesheet
|
47
68
|
Sheet = Spritesheet
|
48
69
|
Sprite = Spritesheet
|
49
|
-
|
70
|
+
|
71
|
+
|
72
|
+
class Image < Pixelart::Image
|
73
|
+
def self.generator
|
74
|
+
@generator ||= Artfactory.use( Moonbirdie::Sheet.builtin,
|
75
|
+
image_class: Image )
|
76
|
+
end
|
77
|
+
|
78
|
+
NAMES = ['birdie', 'birdies',
|
79
|
+
'lilbirdie', 'lilbirdies',
|
80
|
+
'moonbirdie', 'moonbirdies',
|
81
|
+
'lilmoonbirdie', 'lilmoonbirdies',
|
82
|
+
'burd', 'burds']
|
83
|
+
DEFAULT_ATTRIBUTES = ['Ruby Skeleton', 'Small Ruby', 'Moon', 'Lincoln']
|
84
|
+
|
85
|
+
def self.generate( *names )
|
86
|
+
generator.generate( *names )
|
87
|
+
end
|
88
|
+
end # class Image
|
89
|
+
end # module Moonbirdie
|
90
|
+
|
50
91
|
|
51
92
|
|
52
93
|
### add some convenience shortcuts
|
53
|
-
|
54
|
-
|
55
|
-
## add singular too -why? why not?
|
56
|
-
Moonbird = Moonbirds
|
57
|
-
MoonBird = Moonbirds
|
58
|
-
Bird = Moonbirds
|
94
|
+
MoonBird = Moonbird
|
95
|
+
Bird = Moonbird
|
59
96
|
|
60
97
|
|
98
|
+
## add singular too -why? why not?
|
99
|
+
LilMoonBirdie = Moonbirdie
|
100
|
+
LilMoonbirdie = Moonbirdie
|
101
|
+
Lilmoonbirdie = Moonbirdie
|
102
|
+
MoonBirdie = Moonbirdie
|
103
|
+
Birdie = Moonbirdie
|
104
|
+
LilBirdie = Moonbirdie
|
105
|
+
Lilbirdie = Moonbirdie
|
106
|
+
Burd = Moonbirdie
|
107
|
+
|
61
108
|
|
62
109
|
|
63
110
|
###
|
@@ -66,4 +113,4 @@ include Pixelart
|
|
66
113
|
|
67
114
|
|
68
115
|
|
69
|
-
puts Moonbirds.banner # say hello
|
116
|
+
puts Pixelart::Module::Moonbirds.banner # say hello
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moonbirds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pixelart
|
@@ -16,14 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.3.
|
19
|
+
version: 1.3.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.3.
|
26
|
+
version: 1.3.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: artfactory
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: backgrounds
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.2.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.2.0
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rdoc
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,9 +86,9 @@ dependencies:
|
|
58
86
|
- - "~>"
|
59
87
|
- !ruby/object:Gem::Version
|
60
88
|
version: '3.23'
|
61
|
-
description: moonbirds - generate your own 42×42 pixel owl images
|
62
|
-
text attributes (via built-in
|
63
|
-
and more
|
89
|
+
description: moonbirds - generate your own 42×42 (or lil' 24×24) pixel owl images
|
90
|
+
(off chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom
|
91
|
+
for bigger sizes and more
|
64
92
|
email: wwwmake@googlegroups.com
|
65
93
|
executables: []
|
66
94
|
extensions: []
|
@@ -73,8 +101,10 @@ files:
|
|
73
101
|
- Manifest.txt
|
74
102
|
- README.md
|
75
103
|
- Rakefile
|
76
|
-
- config/spritesheet.csv
|
77
|
-
- config/spritesheet.png
|
104
|
+
- config/spritesheet-24x24.csv
|
105
|
+
- config/spritesheet-24x24.png
|
106
|
+
- config/spritesheet-42x42.csv
|
107
|
+
- config/spritesheet-42x42.png
|
78
108
|
- lib/moonbirds.rb
|
79
109
|
- lib/moonbirds/version.rb
|
80
110
|
homepage: https://github.com/pixelartexchange/pixelart
|
@@ -101,7 +131,7 @@ requirements: []
|
|
101
131
|
rubygems_version: 3.3.7
|
102
132
|
signing_key:
|
103
133
|
specification_version: 4
|
104
|
-
summary: moonbirds - generate your own 42×42 pixel owl images (off
|
105
|
-
attributes (via built-in
|
106
|
-
more
|
134
|
+
summary: moonbirds - generate your own 42×42 (or lil' 24×24) pixel owl images (off
|
135
|
+
chain) from text attributes (via built-in spritesheets); incl. 2x/4x/8x zoom for
|
136
|
+
bigger sizes and more
|
107
137
|
test_files: []
|
data/config/spritesheet.csv
DELETED
@@ -1,218 +0,0 @@
|
|
1
|
-
id, name, type, more_names
|
2
|
-
0, body brave-brown, ?, brave-brown
|
3
|
-
1, body crescent-brown, ?, crescent-brown
|
4
|
-
2, body emperor-brown, ?, emperor-brown
|
5
|
-
3, body guardian-brown, ?, guardian-brown
|
6
|
-
4, body sage-brown, ?, sage-brown
|
7
|
-
5, body stark-brown, ?, stark-brown
|
8
|
-
6, body tabby-brown, ?, tabby-brown
|
9
|
-
7, body tranquil-brown, ?, tranquil-brown
|
10
|
-
8, body brave-red, ?, brave-red
|
11
|
-
9, body crescent-red, ?, crescent-red
|
12
|
-
10, body emperor-red, ?, emperor-red
|
13
|
-
11, body guardian-red, ?, guardian-red
|
14
|
-
12, body professor-red, ?, professor-red
|
15
|
-
13, body sage-red, ?, sage-red
|
16
|
-
14, body tabby-red, ?, tabby-red
|
17
|
-
15, body tranquil-red, ?, tranquil-red
|
18
|
-
16, body emperor-white, ?, emperor-white
|
19
|
-
17, body guardian-white, ?, guardian-white
|
20
|
-
18, body professor-white, ?, professor-white
|
21
|
-
19, body stark-white, ?, stark-white
|
22
|
-
20, body tabby-white, ?, tabby-white
|
23
|
-
21, body tranquil-white, ?, tranquil-white
|
24
|
-
22, body crescent-gray, ?, crescent-gray
|
25
|
-
23, body emperor-gray, ?, emperor-gray
|
26
|
-
24, body professor-gray, ?, professor-gray
|
27
|
-
25, body tabby-gray, ?, tabby-gray
|
28
|
-
26, body brave-black, ?, brave-black
|
29
|
-
27, body crescent-black, ?, crescent-black
|
30
|
-
28, body emperor-black, ?, emperor-black
|
31
|
-
29, body stark-black, ?, stark-black
|
32
|
-
30, body tranquil-black, ?, tranquil-black
|
33
|
-
31, body brave-green, ?, brave-green
|
34
|
-
32, body crescent-green, ?, crescent-green
|
35
|
-
33, body emperor-green, ?, emperor-green
|
36
|
-
34, body guardian-green, ?, guardian-green
|
37
|
-
35, body crescent-pink, ?, crescent-pink
|
38
|
-
36, body guardian-pink, ?, guardian-pink
|
39
|
-
37, body sage-pink, ?, sage-pink
|
40
|
-
38, body stark-pink, ?, stark-pink
|
41
|
-
39, body tabby-pink, ?, tabby-pink
|
42
|
-
40, body tranquil-pink, ?, tranquil-pink
|
43
|
-
41, body brave-purple, ?, brave-purple
|
44
|
-
42, body sage-purple, ?, sage-purple
|
45
|
-
43, body stark-purple, ?, stark-purple
|
46
|
-
44, body tabby-purple, ?, tabby-purple
|
47
|
-
45, body tranquil-blue, ?, tranquil-blue
|
48
|
-
46, body crescent-blue, ?, crescent-blue
|
49
|
-
47, body professor-blue, ?, professor-blue
|
50
|
-
48, body stark-blue, ?, stark-blue
|
51
|
-
49, body crescent-golden, ?, crescent-golden
|
52
|
-
50, body emperor-golden, ?, emperor-golden
|
53
|
-
51, body professor-golden, ?, professor-golden
|
54
|
-
52, body sage-golden, ?, sage-golden
|
55
|
-
53, body ruby_skeleton, ?, ruby_skeleton
|
56
|
-
54, body skeleton, ?, skeleton
|
57
|
-
55, body robot, ?, robot
|
58
|
-
56, body brave-jade, ?, brave-jade
|
59
|
-
57, body crescent-jade, ?, crescent-jade
|
60
|
-
58, body brave-cosmic, ?, brave-cosmic
|
61
|
-
59, body crescent-cosmic, ?, crescent-cosmic
|
62
|
-
60, body brave-enlightened, ?, brave-enlightened
|
63
|
-
61, body crescent-enlightened, ?, crescent-enlightened
|
64
|
-
62, body brave-glitch, ?, brave-glitch
|
65
|
-
63, body guardian-glitch, ?, guardian-glitch
|
66
|
-
64, beak small-gray, ?, small-gray
|
67
|
-
65, beak small-orange, ?, small-orange
|
68
|
-
66, beak small-ruby, ?, small-ruby
|
69
|
-
67, beak small-skeleton, ?, small-skeleton
|
70
|
-
68, beak short-skeleton, ?, short-skeleton
|
71
|
-
69, beak long-skeleton, ?, long-skeleton
|
72
|
-
70, beak small-robot, ?, small-robot
|
73
|
-
71, beak short-robot, ?, short-robot
|
74
|
-
72, beak long-robot, ?, long-robot
|
75
|
-
73, beak small-golden, ?, small-golden
|
76
|
-
74, eyes open-blue, ?, open-blue
|
77
|
-
75, eyes open-green, ?, open-green
|
78
|
-
76, eyes open-purple, ?, open-purple
|
79
|
-
77, eyes open-red, ?, open-red
|
80
|
-
78, eyes open-white, ?, open-white
|
81
|
-
79, eyes adorable-skeleton, ?, adorable-skeleton
|
82
|
-
80, eyes angry-skeleton, ?, angry-skeleton
|
83
|
-
81, eyes open-skeleton, ?, open-skeleton
|
84
|
-
82, eyes relaxed-skeleton, ?, relaxed-skeleton
|
85
|
-
83, eyes angry-robot, ?, angry-robot
|
86
|
-
84, eyes open-robot, ?, open-robot
|
87
|
-
85, eyes angry-golden, ?, angry-golden
|
88
|
-
86, eyes open-golden, ?, open-golden
|
89
|
-
87, eyes side-eye-golden, ?, side-eye-golden
|
90
|
-
88, 3D Glasses, ?,
|
91
|
-
89, Black-Rimmed Glasses, ?,
|
92
|
-
90, eyepatch, ?,
|
93
|
-
91, gazelles, ?,
|
94
|
-
92, jobs_glasses, ?,
|
95
|
-
93, rose-colored_glasses, ?,
|
96
|
-
94, sunglasses, ?,
|
97
|
-
95, visor, ?,
|
98
|
-
96, aviators, ?,
|
99
|
-
97, chill, ?,
|
100
|
-
98, green_shades, ?,
|
101
|
-
99, neon_shades, ?,
|
102
|
-
100, rainbow_shades, ?,
|
103
|
-
101, red_shades, ?,
|
104
|
-
102, round_glasses, ?,
|
105
|
-
103, sunset_shades, ?,
|
106
|
-
104, vipers, ?,
|
107
|
-
105, Aviator's Cap, ?,
|
108
|
-
106, backwards_hat, ?,
|
109
|
-
107, bandana, ?,
|
110
|
-
108, beanie, ?,
|
111
|
-
109, bow, ?,
|
112
|
-
110, bucket_hat, ?,
|
113
|
-
111, Captain's Cap, ?,
|
114
|
-
112, Cowboy Hat 1, ?, Cowboy Hat
|
115
|
-
113, durag, ?,
|
116
|
-
114, flowers, ?,
|
117
|
-
115, forest_ranger, ?,
|
118
|
-
116, headband, ?,
|
119
|
-
117, headphones, ?,
|
120
|
-
118, Hero's Cap, ?,
|
121
|
-
119, karate_band, ?,
|
122
|
-
120, lincoln, ?,
|
123
|
-
121, Mohawk (Green), ?,
|
124
|
-
122, Mohawk (Pink), ?,
|
125
|
-
123, moon_hat, ?,
|
126
|
-
124, Pirate's Hat, ?,
|
127
|
-
125, Queen's Crown, ?,
|
128
|
-
126, tiara, ?,
|
129
|
-
127, Witch's Hat, ?,
|
130
|
-
128, Wizard's Hat, ?,
|
131
|
-
129, chromie, ?,
|
132
|
-
130, crescent_talisman, ?,
|
133
|
-
131, dancing_flame, ?,
|
134
|
-
132, fire, ?,
|
135
|
-
133, diamond, ?,
|
136
|
-
134, grail, ?,
|
137
|
-
135, gremplin, ?,
|
138
|
-
136, halo, ?,
|
139
|
-
137, raincloud, ?,
|
140
|
-
138, rubber_duck, ?,
|
141
|
-
139, skully, ?,
|
142
|
-
140, tiny_crown, ?,
|
143
|
-
141, Black Red Hat, ?,
|
144
|
-
142, Cowboy Hat 2, ?,
|
145
|
-
143, crown, ?,
|
146
|
-
144, gold, ?,
|
147
|
-
145, gray_hat, ?,
|
148
|
-
146, blue_bucket, ?,
|
149
|
-
147, red_bucket, ?,
|
150
|
-
148, White Bucket, ?,
|
151
|
-
149, star, ?,
|
152
|
-
150, McDonald's 1, ?, McDonald's
|
153
|
-
151, McDonald's 2, ?, McDonald's Visor
|
154
|
-
152, McDonald's 3, ?, McDonald's Red 1 | McDonald's Red
|
155
|
-
153, McDonald's 4, ?, McDonald's Red 2
|
156
|
-
154, McDonald's 5, ?, McDonald's Bucket Black
|
157
|
-
155, McDonald's 6, ?, McDonald's Black
|
158
|
-
156, McDonald's 7, ?, McDonald's White
|
159
|
-
157, Burger King 1, ?, Burger King
|
160
|
-
158, Burger King 2, ?,
|
161
|
-
159, Burger King Crown, ?,
|
162
|
-
160, KF1 1, ?, KFC
|
163
|
-
161, KFC 2, ?, KFC Family Bucket
|
164
|
-
162, Chick-Fil-A, ?,
|
165
|
-
163, Denny's, ?,
|
166
|
-
164, Domino's 1, ?, Domino's
|
167
|
-
165, Domino's 2, ?,
|
168
|
-
166, Dunkin' Donuts 1, ?, Dunkin' Donuts
|
169
|
-
167, Dunkin' Donuts 2, ?,
|
170
|
-
168, Hooters, ?,
|
171
|
-
169, In-N-Out 2, ?,
|
172
|
-
170, In-N-Out 1, ?, In-N-Out
|
173
|
-
171, wendys, ?,
|
174
|
-
172, white_castle, ?,
|
175
|
-
173, Pizza Hut 1, ?,
|
176
|
-
174, Pizza Hut 2, ?,
|
177
|
-
175, Subway 2, ?, Subway Visor
|
178
|
-
176, Subway 1, ?, Subway
|
179
|
-
177, Taco Bell, ?,
|
180
|
-
178, Walmart 1 Walmart, ?,
|
181
|
-
179, Walmart 2, ?,
|
182
|
-
180, Starbucks 1, ?, Starbucks
|
183
|
-
181, Starbucks 2, ?,
|
184
|
-
182, coffee_boy, ?,
|
185
|
-
183, Ben & Jerry's, ?,
|
186
|
-
184, chef-red, ?,
|
187
|
-
185, chef-white, ?,
|
188
|
-
186, grill_cook, ?,
|
189
|
-
187, drive-thru-on-duty, ?,
|
190
|
-
188, burger, ?,
|
191
|
-
189, fries, ?,
|
192
|
-
190, chicken, ?,
|
193
|
-
191, cola, ?,
|
194
|
-
192, popcorn, ?,
|
195
|
-
193, ice_cream_cone, ?,
|
196
|
-
194, taco, ?,
|
197
|
-
195, Hoodie, ?,
|
198
|
-
196, Hoodie Down, ?,
|
199
|
-
197, Punk Jacket, ?,
|
200
|
-
198, Blue Hoodie, ?,
|
201
|
-
199, Green Hoodie, ?,
|
202
|
-
200, Blue Shirt, ?,
|
203
|
-
201, Green Shirt, ?,
|
204
|
-
202, Orange Shirt, ?,
|
205
|
-
203, Red Shirt, ?,
|
206
|
-
204, tee, ?,
|
207
|
-
205, blue_scarf, ?,
|
208
|
-
206, green_scarf, ?,
|
209
|
-
207, red_scarf, ?,
|
210
|
-
208, el_pollo_loco_mascot, ?,
|
211
|
-
209, McDonald's Shirt, ?,
|
212
|
-
210, McDonald's Shirt (Classic), ?,
|
213
|
-
211, McDonald's Shirt (Old Skool), ?,
|
214
|
-
212, Manager Shirt, ?,
|
215
|
-
213, KFC Shirt, ?,
|
216
|
-
214, Starbucks Apron 1, ?, Starbucks Apron
|
217
|
-
215, Starbucks Apron 2, ?,
|
218
|
-
216, hibachi, ?,
|
data/config/spritesheet.png
DELETED
Binary file
|