cyberpunks 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b78e58c056d046f40e7ad28052cc9d1876ab465def4469cd2acdb783ad109a66
4
- data.tar.gz: 6216d8ea03fe913f1c80bbbf331a9c24b60682cbf3cfae41c1433df1c215a2f2
3
+ metadata.gz: 1cc90de5f16a53cbba3b62ed1c498bd6e50c0effc7fb111a44ba868b5c065bf4
4
+ data.tar.gz: 666c95b7560d1ee8f5747afe1362f3a25c8fda4277b1de17071baf2d85f34634
5
5
  SHA512:
6
- metadata.gz: b72ae559ca3b9c87ee072b82859f55f9392792bf84bd3197d6fc64d8740665297f73189d4c3033fdc6412452acf3ada27d6a63dff599897eb96006ad4127c849
7
- data.tar.gz: '082f20e4a49bd44b8d39803c980849b64ae0db44c912d4c5871e206253499a305606f3b891cb44ad61eb48b5d1f61bfd4579ba30179e3d03767e78d454637346'
6
+ metadata.gz: 9f7af30648fc57297952df9dffd34c61e1505d393f79a4530eeaa94dfdf19a22b1d9f5998eb28170bcefc9b1845ea0fab1c1af9728024fbbfebee1b416c74053
7
+ data.tar.gz: 6eca69d8ff2d47f79db181d9484923a2fc90c8e8f5b0c256dbcf7f809c0886b0b0e9eadbf9f43c475f9fa255ca38a5bbd7cd14aad366b913ecba2380c76c67d9
data/Manifest.txt CHANGED
@@ -2,5 +2,7 @@ CHANGELOG.md
2
2
  Manifest.txt
3
3
  README.md
4
4
  Rakefile
5
+ config/spritesheet.csv
6
+ config/spritesheet.png
5
7
  lib/cyberpunks.rb
6
8
  lib/cyberpunks/version.rb
data/README.md CHANGED
@@ -15,8 +15,214 @@ cyberpunks - generate your own cyberpunk (blade runner) sci-fi 32×32 pixel avat
15
15
 
16
16
  ## Usage
17
17
 
18
- To be done
18
+ Let's generate some super-rare never-before-seen sci-fi (blade runner)
19
+ cyberpunk (pixel avatars).
19
20
 
21
+ Note: Note: For best merging / composing (of the attributes)
22
+ use the order 1) Background 2) Race 3) Face 4) Mouth 5) Nose 6) Eyes 7) Ear Accessory 8) Face Accessory 9) Mask 10) Head Below 11) Eye Accessory 12) Head Above and 13) Mouth Accessory:
23
+
24
+ ```ruby
25
+ ###
26
+ # Cyberpunk No. 1
27
+ punk = Cyberpunk::Image.generate( 'Codelines',
28
+ 'Human 6',
29
+ 'Goatee Black',
30
+ 'Idle',
31
+ 'Upturned Septum Piercing',
32
+ 'Masc Idle',
33
+ 'Beanie',
34
+ 'Cig' )
35
+
36
+ punk.save( "punk1.png")
37
+ punk.zoom(4).save( "punk1@4x.png" )
38
+
39
+ ## let's change the background
40
+ punk = Cyberpunk::Image.generate( 'Human 6',
41
+ 'Goatee Black',
42
+ 'Idle',
43
+ 'Upturned Septum Piercing',
44
+ 'Masc Idle',
45
+ 'Beanie',
46
+ 'Cig',
47
+ background: '#638596' )
48
+
49
+ punk.save( "punk1b.png")
50
+ punk.zoom(4).save( "punk1b@4x.png" )
51
+ ```
52
+
53
+ Voila!
54
+
55
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1.png)
56
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1b.png)
57
+
58
+ In 4x:
59
+
60
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1@4x.png)
61
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk1b@4x.png)
62
+
63
+
64
+
65
+ ```ruby
66
+ ###
67
+ # Cyberpunk No. 2
68
+ punk = Cyberpunk::Image.generate( 'Pink Diag',
69
+ 'Bot',
70
+ 'Lipstick Black',
71
+ 'Bot Nose 3',
72
+ 'Femme Star Liner',
73
+ 'Large Hoop Earrings',
74
+ 'Chainspace Deck Elite I',
75
+ 'Long Pink Pigtails' )
76
+ punk.save( "punk2.png")
77
+ punk.zoom(4).save( "punk2@4x.png" )
78
+
79
+
80
+ ## let's change the background
81
+ punk = Cyberpunk::Image.generate( 'Bot',
82
+ 'Lipstick Black',
83
+ 'Bot Nose 3',
84
+ 'Femme Star Liner',
85
+ 'Large Hoop Earrings',
86
+ 'Chainspace Deck Elite I',
87
+ 'Long Pink Pigtails',
88
+ background: '#638596' )
89
+ punk.save( "punk2b.png")
90
+ punk.zoom(4).save( "punk2b@4x.png" )
91
+ ```
92
+
93
+ Voila!
94
+
95
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2.png)
96
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2b.png)
97
+
98
+ In 4x:
99
+
100
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2@4x.png)
101
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk2b@4x.png)
102
+
103
+
104
+ ```ruby
105
+ ###
106
+ # Cyberpunk No. 3
107
+ punk = Cyberpunk::Image.generate( 'Orange Tie Dye',
108
+ 'Human 9',
109
+ 'Smile',
110
+ 'Delicate',
111
+ 'Femme Wide',
112
+ 'Large Hoop Earrings',
113
+ 'Messy Bun')
114
+ punk.save( "punk3.png")
115
+ punk.zoom(4).save( "punk3@4x.png" )
116
+
117
+
118
+ punk = Cyberpunk::Image.generate( 'Human 9',
119
+ 'Smile',
120
+ 'Delicate',
121
+ 'Femme Wide',
122
+ 'Large Hoop Earrings',
123
+ 'Messy Bun',
124
+ background: '#638596' )
125
+ punk.save( "punk3b.png")
126
+ punk.zoom(4).save( "punk3b@4x.png" )
127
+ ```
128
+
129
+ Voila!
130
+
131
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3.png)
132
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3b.png)
133
+
134
+ In 4x:
135
+
136
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3@4x.png)
137
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk3b@4x.png)
138
+
139
+
140
+
141
+ ```ruby
142
+ ###
143
+ # Cyberpunk No. 4
144
+ punk = Cyberpunk::Image.generate( 'Metropolis 2',
145
+ 'Skull Blue',
146
+ 'Skull Red Dot',
147
+ 'Hood',
148
+ 'Dom Rose' )
149
+ punk.save( "punk4.png")
150
+ punk.zoom(4).save( "punk4@4x.png" )
151
+
152
+
153
+ punk = Cyberpunk::Image.generate( 'Skull Blue',
154
+ 'Skull Red Dot',
155
+ 'Hood',
156
+ 'Dom Rose',
157
+ background: '#638596' )
158
+ punk.save( "punk4b.png")
159
+ punk.zoom(4).save( "punk4b@4x.png" )
160
+ ```
161
+
162
+ Voila!
163
+
164
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4.png)
165
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4b.png)
166
+
167
+ In 4x:
168
+
169
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4@4x.png)
170
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/punk4b@4x.png)
171
+
172
+
173
+ And so on.
174
+
175
+
176
+ ### Bonus - Look-Up Attributes (Via Built-In Spritesheet)
177
+
178
+
179
+ Let's look-up some attributes:
180
+
181
+ ```ruby
182
+ skull_gold = Cyberpunk::Sheet.find_by( name: 'Skull Gold' )
183
+ egirl_hair = Cyberpunk::Sheet.find_by( name: 'E-Girl Hair' )
184
+ sun_glasses = Cyberpunk::Sheet.find_by( name: 'Sun Glasses' )
185
+ jack_o_lantern = Cyberpunk::Sheet.find_by( name: "Jack-O'-Lantern" )
186
+
187
+ skull_gold.save( "skull_gold.png" )
188
+ egirl_hair.save( "egirl_hair.png" )
189
+ sun_glasses.save( "sun_glasses.png" )
190
+ jack_o_lantern.save( "jack_o_lantern.png" )
191
+
192
+ skull_gold.zoom( 4 ).save( "skull_gold@4x.png" )
193
+ egirl_hair.zoom( 4 ).save( "egirl_hair@4x.png" )
194
+ sun_glasses.zoom( 4 ).save( "sun_glasses@4x.png" )
195
+ jack_o_lantern.zoom( 4 ).save( "jack_o_lantern@4x.png" )
196
+ ```
197
+
198
+
199
+ Voila!
200
+
201
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/skull_gold.png)
202
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/egirl_hair.png)
203
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/sun_glasses.png)
204
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/jack_o_lantern.png)
205
+
206
+ In 4x:
207
+
208
+
209
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/skull_gold@4x.png)
210
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/egirl_hair@4x.png)
211
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/sun_glasses@4x.png)
212
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/i/jack_o_lantern@4x.png)
213
+
214
+ And so on.
215
+
216
+
217
+
218
+
219
+ ## Appendix - All Built-In Spritesheet Attributes (32x32px)
220
+
221
+ See the [**spritesheet.csv**](https://github.com/pixelartexchange/pixelart/blob/master/cyberpunks/config/spritesheet.csv) dataset for all attribute names (w/ categories).
222
+
223
+ ![](https://github.com/pixelartexchange/pixelart/raw/master/cyberpunks/config/spritesheet.png)
224
+
225
+ (Source: [**cyperpunks/spritesheet.png**](https://github.com/pixelartexchange/pixelart/blob/master/cyberpunks/config/spritesheet.png))
20
226
 
21
227
 
22
228
 
@@ -0,0 +1,339 @@
1
+ id, type, name, more_names
2
+ 0, , Beam,
3
+ 1, , Black Orange Diag,
4
+ 2, , Blue Diag,
5
+ 3, , Blue Orange Diag,
6
+ 4, , Blue Solid,
7
+ 5, , Candy Stripe,
8
+ 6, , Codelines,
9
+ 7, , Dark Purple Solid,
10
+ 8, , Double Green,
11
+ 9, , Double Pink,
12
+ 10, , Double Purple,
13
+ 11, , Double Yellow,
14
+ 12, , Green Black Diag,
15
+ 13, , Green Blue Vert,
16
+ 14, , Green Diag,
17
+ 15, , Green Double Stripe,
18
+ 16, , Green Solid,
19
+ 17, , Green Stripe,
20
+ 18, , Green Tie Dye,
21
+ 19, , Grey Solid,
22
+ 20, , Light Blue Solid,
23
+ 21, , Magenta Solid,
24
+ 22, , Metropolis 1,
25
+ 23, , Metropolis 2,
26
+ 24, , Orange Solid,
27
+ 25, , Orange Tie Dye,
28
+ 26, , Peach Blue Vert,
29
+ 27, , Peach Solid,
30
+ 28, , Pink Diag,
31
+ 29, , Pink Solid,
32
+ 30, , Purple Green Diag,
33
+ 31, , Purple Orange Diag,
34
+ 32, , Purple Solid,
35
+ 33, , Purple Stripe,
36
+ 34, , Purple Tie Dye,
37
+ 35, , Red Solid,
38
+ 36, , Sun,
39
+ 37, , Triple Blue,
40
+ 38, , Triple Green,
41
+ 39, , Triple Pink,
42
+ 40, , Yellow Diag,
43
+ 41, , Yellow Double Stripe,
44
+ 42, , Yellow Pink Diag,
45
+ 43, , Yellow Solid,
46
+ 44, , Alien,
47
+ 45, , Bot,
48
+ 46, , Human 1,
49
+ 47, , Human 10,
50
+ 48, , Human 2,
51
+ 49, , Human 3,
52
+ 50, , Human 4,
53
+ 51, , Human 5,
54
+ 52, , Human 6,
55
+ 53, , Human 7,
56
+ 54, , Human 8,
57
+ 55, , Human 9,
58
+ 56, , Skull Blue,
59
+ 57, , Skull Gold,
60
+ 58, , Skull,
61
+ 59, , Buck Teeth,
62
+ 60, , Frown,
63
+ 61, , Idle,
64
+ 62, , Lipstick Black,
65
+ 63, , Lipstick Blue,
66
+ 64, , Lipstick Green,
67
+ 65, , Lipstick Purple,
68
+ 66, , Lipstick Red,
69
+ 67, , Missing Tooth,
70
+ 68, , Open Teeth,
71
+ 69, , Smile Double Monroe Piercing,
72
+ 70, , Smile,
73
+ 71, , Teeth Smile,
74
+ 72, , Teethy Grin,
75
+ 73, , Basic Mustache Black,
76
+ 74, , Basic Mustache Brwn,
77
+ 75, , Beard Black,
78
+ 76, , Beard Brown,
79
+ 77, , Beard Neon Green,
80
+ 78, , Blu Manchu Mustache,
81
+ 79, , Bot Missing Face w Teeth,
82
+ 80, , Bot Missing Face,
83
+ 81, , Clown Facepaint,
84
+ 82, , Forehead X Tattoo,
85
+ 83, , Fu Manchu Mustache Black,
86
+ 84, , Fu Manchu Mustache Brown,
87
+ 85, , Furies Facepaint,
88
+ 86, , Goatee Black,
89
+ 87, , Jet Black,
90
+ 88, , Joker Facepaint,
91
+ 89, , Mutton Chop Curled Mustache Black,
92
+ 90, , Mutton Chop Curled Mustache Brown,
93
+ 91, , Mutton Chop Winged Mustache Black,
94
+ 92, , Mutton Chop Winged Mustache Brown,
95
+ 93, , Rough Mustache Black,
96
+ 94, , Rough Mustache Brwn,
97
+ 95, , Skeleton Facepaint,
98
+ 96, , Soul Patch Long Neon Blue,
99
+ 97, , Soul Patch Long,
100
+ 98, , Soul Patch Short,
101
+ 99, , Thick Curled Mustache Black,
102
+ 100, , Thick Curled Mustache Brown,
103
+ 101, , Thin Curled Mustache Black,
104
+ 102, , Thin Curled Mustache Brown,
105
+ 103, , Winged Mustache Black,
106
+ 104, , Winged Mustache Brown,
107
+ 105, , Gas Mask,
108
+ 106, , Ninja,
109
+ 107, , Oni Mask Green,
110
+ 108, , Oni Mask Purple,
111
+ 109, , Oni Mask Red,
112
+ 110, , Oxygen mask,
113
+ 111, , Viral Mask,
114
+ 112, , Full Head Bandage,
115
+ 113, , Gas Tank Mask,
116
+ 114, , Hockey Mask,
117
+ 115, , Jack-O'-Lantern,
118
+ 116, , Polygon Mask,
119
+ 117, , Robo-Jaw,
120
+ 118, , Squid Mask,
121
+ 119, , Candy Raver Earrings,
122
+ 120, , Chain Earring,
123
+ 121, , Earpiece,
124
+ 122, , Gold Stud Cross Combo,
125
+ 123, , Gold Stud Earrings,
126
+ 124, , Large Hoop Earrings,
127
+ 125, , Open Face Shield,
128
+ 126, , Silver Stud Cross Combo,
129
+ 127, , Silver Stud Earrings,
130
+ 128, , Small Hoop Earrings,
131
+ 129, , Blunt,
132
+ 130, , Cig,
133
+ 131, , Cigar,
134
+ 132, , Dom Rose,
135
+ 133, , Joint,
136
+ 134, , Pipe,
137
+ 135, , Tongue Out,
138
+ 136, , Tongue Pill,
139
+ 137, , Bot Nose 1,
140
+ 138, , Bot Nose 2,
141
+ 139, , Bot Nose 3,
142
+ 140, , Delicate,
143
+ 141, , Downturned,
144
+ 142, , Droopy Stud Piercing,
145
+ 143, , Droopy,
146
+ 144, , Prominent Stud Piercing,
147
+ 145, , Prominent,
148
+ 146, , Upturned Septum Piercing,
149
+ 147, , Upturned,
150
+ 148, , Beady Variant 1,
151
+ 149, , Beady Variant 2,
152
+ 150, , Beady Variant 3,
153
+ 151, , Beady Variant 4,
154
+ 152, , Beady Variant 5,
155
+ 153, , Beady Variant 6,
156
+ 154, , Beady,
157
+ 155, , Bot Beady Wide,
158
+ 156, , Bot Beady,
159
+ 157, , Bot Busted Eye,
160
+ 158, , Bot Idle,
161
+ 159, , Closed Variant 1,
162
+ 160, , Closed Variant 2,
163
+ 161, , Closed,
164
+ 162, , Draag Alien Variant 1,
165
+ 163, , Draag Alien Variant 2,
166
+ 164, , Draag Alien,
167
+ 165, , Femme Furrowed Variant 1,
168
+ 166, , Femme Furrowed Variant 2,
169
+ 167, , Femme Furrowed Variant 3,
170
+ 168, , Femme Furrowed Variant 4,
171
+ 169, , Femme Furrowed Variant 5,
172
+ 170, , Femme Furrowed,
173
+ 171, , Femme Idle Variant 1,
174
+ 172, , Femme Idle Variant 2,
175
+ 173, , Femme Idle Variant 3,
176
+ 174, , Femme Idle Variant 4,
177
+ 175, , Femme Idle,
178
+ 176, , Femme Shade Eyes Variant 1,
179
+ 177, , Femme Shade Eyes Variant 2,
180
+ 178, , Femme Shade Eyes Variant 3,
181
+ 179, , Femme Shade Eyes,
182
+ 180, , Femme Star Liner,
183
+ 181, , Femme Wide Variant 1,
184
+ 182, , Femme Wide Variant 2,
185
+ 183, , Femme Wide Variant 3,
186
+ 184, , Femme Wide,
187
+ 185, , Look Right Variant 1,
188
+ 186, , Look Right Variant 2,
189
+ 187, , Look Right Variant 3,
190
+ 188, , Look Right Variant 4,
191
+ 189, , Look Right,
192
+ 190, , Masc Furrowed Variant 1,
193
+ 191, , Masc Furrowed Variant 2,
194
+ 192, , Masc Furrowed Variant 3,
195
+ 193, , Masc Furrowed Variant 4,
196
+ 194, , Masc Furrowed,
197
+ 195, , Masc Idle Variant 1,
198
+ 196, , Masc Idle Variant 2,
199
+ 197, , Masc Idle Variant 3,
200
+ 198, , Masc Idle Variant 4,
201
+ 199, , Masc Idle,
202
+ 200, , Masc Shade Eyes Variant 1,
203
+ 201, , Masc Shade Eyes Variant 2,
204
+ 202, , Masc Shade Eyes Variant 3,
205
+ 203, , Masc Shade Eyes Variant 4,
206
+ 204, , Masc Shade Eyes,
207
+ 205, , Masc Wide Variant 1,
208
+ 206, , Masc Wide Variant 2,
209
+ 207, , Masc Wide Variant 3,
210
+ 208, , Masc Wide Variant 4,
211
+ 209, , Masc Wide,
212
+ 210, , Robo-Eyes Variant 1,
213
+ 211, , Robo-Eyes Variant 2,
214
+ 212, , Robo-Eyes,
215
+ 213, , Skull Glowing Blue,
216
+ 214, , Skull Red Dot,
217
+ 215, , Skull Yellow Dot,
218
+ 216, , Uninterested Variant 1,
219
+ 217, , Uninterested Variant 2,
220
+ 218, , Uninterested,
221
+ 219, , Villian Eyes Variant 1,
222
+ 220, , Villian Eyes Variant 2,
223
+ 221, , Villian Eyes,
224
+ 222, , Aviators,
225
+ 223, , Chainspace Deck Basic,
226
+ 224, , Chainspace Deck Elite I,
227
+ 225, , Chainspace Deck Elite II,
228
+ 226, , Chainspace Deck Elite III,
229
+ 227, , Chainspace Deck Pro,
230
+ 228, , Chainspace Deck SE,
231
+ 229, , Cybernetic Implants,
232
+ 230, , Deal With It,
233
+ 231, , Eye Patch Monocle,
234
+ 232, , Eye Patch Sight,
235
+ 233, , Eye Patch,
236
+ 234, , Geordi Visor,
237
+ 235, , Glass Visor,
238
+ 236, , Glasses,
239
+ 237, , Goggles,
240
+ 238, , Hunter Eyes,
241
+ 239, , Kaneda Goggles,
242
+ 240, , Lennon Glasses,
243
+ 241, , Mad-Eye Monocle,
244
+ 242, , Night Vision Goggles,
245
+ 243, , Nouns,
246
+ 244, , Robo-Cyclopian,
247
+ 245, , Rodman Wrap Arounds,
248
+ 246, , Scouter Green,
249
+ 247, , Scouter Red,
250
+ 248, , Single Eye Reader,
251
+ 249, , Sniper Goggles,
252
+ 250, , Sun Glasses Red,
253
+ 251, , Sun Glasses,
254
+ 252, , Target Visor,
255
+ 253, , Thin Glasses,
256
+ 254, , Alien Hat,
257
+ 255, , Backwards Hat 1,
258
+ 256, , Backwards Hat 2,
259
+ 257, , Beanie Hair Blonde,
260
+ 258, , Beanie Hair Green,
261
+ 259, , Beanie,
262
+ 260, , Blitmap Hat,
263
+ 261, , Chain Hat,
264
+ 262, , Chain Headband,
265
+ 263, , Classic Top Hat,
266
+ 264, , Cowboy Hat Brown,
267
+ 265, , Cowboy Hat Pink,
268
+ 266, , Cowboy Hat White,
269
+ 267, , Crown Bald,
270
+ 268, , Crown Long Hair Blue,
271
+ 269, , Crown Long Hair Grey,
272
+ 270, , Divine Robe,
273
+ 271, , Dreadlocks,
274
+ 272, , Dual Horn,
275
+ 273, , E-Girl Hair,
276
+ 274, , Eye Hat,
277
+ 275, , Flux Hair,
278
+ 276, , Funky Bandana Bald,
279
+ 277, , Genesis Hat,
280
+ 278, , Goggles Forehead,
281
+ 279, , Good Morning Bandana Top Knot,
282
+ 280, , Green Short Hair,
283
+ 281, , Half Buzz Half Long Blue Hair,
284
+ 282, , Half Buzz Half Long Hair,
285
+ 283, , Hood,
286
+ 284, , Horns,
287
+ 285, , Leather Bandana Bald,
288
+ 286, , Long Green Front Braid,
289
+ 287, , Long Pink Pigtails,
290
+ 288, , Long Styled Hair,
291
+ 289, , Metal Rice Hat,
292
+ 290, , Mystic Top Hat,
293
+ 291, , Neon Green Industrial Dreads,
294
+ 292, , Pyramid Hat,
295
+ 293, , Silly Copter Hat,
296
+ 294, , Skull Skulletor Hood,
297
+ 295, , Straight Long Hair,
298
+ 296, , Straight Long Purple Hair,
299
+ 297, , Straw Hat,
300
+ 298, , Techno Horns,
301
+ 299, , Tie-Dye Bandana Bald,
302
+ 300, , Trunks Hair,
303
+ 301, , Zorg Hair,
304
+ 302, , Bald Unkempt,
305
+ 303, , Bleached Vertical Spikes,
306
+ 304, , Blue Vertical Spikes,
307
+ 305, , Bob Hair,
308
+ 306, , Cornrows Dark Hair,
309
+ 307, , Cornrows Dark Topknot Hair,
310
+ 308, , Cornrows Green Hair,
311
+ 309, , Cornrows Light Hair,
312
+ 310, , Cropped Cut Dark,
313
+ 311, , Double Pigtail Hair Brown,
314
+ 312, , Double Pigtail Hair Pink,
315
+ 313, , Double Spike,
316
+ 314, , Face Chain,
317
+ 315, , Grey Ceaser,
318
+ 316, , Meditation Circlet,
319
+ 317, , Messy Bun,
320
+ 318, , Messy Hair Dark,
321
+ 319, , Messy Hair Light,
322
+ 320, , Metal Skullcap,
323
+ 321, , Mohawk Hair Neon Blue,
324
+ 322, , Mohawk Hair Neon Pink,
325
+ 323, , Mohawk Hair,
326
+ 324, , Pompadour,
327
+ 325, , Punker Spike Neon Green,
328
+ 326, , Punker Spike Neon Pink,
329
+ 327, , Purple Fro Hawk,
330
+ 328, , Rough Punk Hair Black,
331
+ 329, , Rough Punk Hair Pink,
332
+ 330, , Ruby Rhod Hair,
333
+ 331, , Slicked Blonde Hair,
334
+ 332, , Slicked Dark Hair,
335
+ 333, , Sushi Chef Bandana,
336
+ 334, , Well Combed Hair Blk,
337
+ 335, , Well Combed Hair Brwn,
338
+ 336, , Widows Peak Blue Hair,
339
+ 337, , Widows Peak Hair,
Binary file
@@ -3,8 +3,8 @@
3
3
  module Cyberpunks
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 0
7
- PATCH = 1
6
+ MINOR = 1
7
+ PATCH = 0
8
8
  VERSION = [MAJOR,MINOR,PATCH].join('.')
9
9
 
10
10
  def self.version
data/lib/cyberpunks.rb CHANGED
@@ -7,4 +7,63 @@ require 'pixelart/base'
7
7
  require 'cyberpunks/version' # note: let version always go first
8
8
 
9
9
 
10
- puts Cyperpunks.banner # say hello
10
+
11
+ ## forward define superclass for image
12
+ module Cyberpunks
13
+ class Image < Pixelart::Image; end
14
+ end
15
+
16
+ ###
17
+ ## add convenience pre-configurated generatored with build-in spritesheet (see config)
18
+
19
+ module Cyberpunks
20
+
21
+ def self.generator
22
+ @generator ||= Pixelart::Generator.new( "#{root}/config/spritesheet.png",
23
+ "#{root}/config/spritesheet.csv",
24
+ width: 32,
25
+ height: 32 )
26
+ end
27
+
28
+
29
+ class Image
30
+ def self.generate( *values, background: nil )
31
+ img = Cyberpunks.generator.generate( *values, background: background )
32
+ ## note: unwrap inner image before passing on to c'tor (requires ChunkyPNG image for now)
33
+ new( 32, 32, img.image )
34
+ end # method Image.generate
35
+ end # class Image
36
+
37
+
38
+ class Spritesheet
39
+ ## note: for now class used for "namespace" only
40
+ def self.find_by( name: ) ## return archetype/attribute image by name
41
+ # note: pass along name as q (query string)
42
+ Cyberpunks.generator.find( name )
43
+ end
44
+ end # class Spritesheet
45
+ ## add convenience (alternate spelling) alias - why? why not?
46
+ SpriteSheet = Spritesheet
47
+ Sheet = Spritesheet
48
+ Sprite = Spritesheet
49
+ end # module Coolcats
50
+
51
+
52
+ ### add some convenience shortcuts
53
+ CyberPunks = Cyberpunks
54
+ ## add singular too -why? why not?
55
+ Cyberpunk = Cyberpunks
56
+ CyberPunk = Cyberpunks
57
+
58
+
59
+
60
+
61
+ ###
62
+ # note: for convenience auto include Pixelart namespace!!! - why? why not?
63
+ include Pixelart
64
+
65
+
66
+
67
+
68
+
69
+ puts Cyberpunks.banner # say hello
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyberpunks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
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-05-22 00:00:00.000000000 Z
11
+ date: 2022-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pixelart
@@ -73,6 +73,8 @@ files:
73
73
  - Manifest.txt
74
74
  - README.md
75
75
  - Rakefile
76
+ - config/spritesheet.csv
77
+ - config/spritesheet.png
76
78
  - lib/cyberpunks.rb
77
79
  - lib/cyberpunks/version.rb
78
80
  homepage: https://github.com/pixelartexchange/pixelart