tumblr-game 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tumblr-game/gosu.rb +12 -12
- data/lib/tumblr-game/tumblr.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e2ce70771419740baf7deda9e0fe2696bc8689e
|
4
|
+
data.tar.gz: 5ea5dfa2356509609924843906a3d4a94ecc6b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfd25c5853b5cc8dff029d0892517778349fe7bedbba999e3e24eb3d207e1ad521eb90deedbb4f8bc25b45eb12ffb5734bc3a2b5c81d04bb1c68777120d69370
|
7
|
+
data.tar.gz: f4e46b816c9070a4b26ceee955438852332334f686791e53be875b58ecf2b4f288df54367b3e794135051b13accc7af86e8ead89974c9a354bf29b3728fd9c7e
|
data/lib/tumblr-game/gosu.rb
CHANGED
@@ -61,16 +61,16 @@ class MyWindow < Gosu::Window
|
|
61
61
|
|
62
62
|
# create a hash of the image names that we are using along with their associated id
|
63
63
|
imgNames = Hash[
|
64
|
-
'image1.png' => 0,
|
65
|
-
'image2.png' => 1,
|
66
|
-
'image3.png' => 2,
|
67
|
-
'image4.png' => 3,
|
68
|
-
'image5.png' => 4,
|
69
|
-
'image6.png' => 0,
|
70
|
-
'image7.png' => 1,
|
71
|
-
'image8.png' => 2,
|
72
|
-
'image9.png' => 3,
|
73
|
-
'image10.png' => 4 ]
|
64
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image1.png') => 0,
|
65
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image2.png') => 1,
|
66
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image3.png') => 2,
|
67
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image4.png') => 3,
|
68
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image5.png') => 4,
|
69
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image6.png') => 0,
|
70
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image7.png') => 1,
|
71
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image8.png') => 2,
|
72
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image9.png') => 3,
|
73
|
+
File.join(File.dirname(File.expand_path(__FILE__)), 'image10.png') => 4 ]
|
74
74
|
|
75
75
|
## Durstenfield's Shuffling Algorithm
|
76
76
|
# convert the hash from above into a two-dimensional array that will be shuffled in order to
|
@@ -87,8 +87,8 @@ class MyWindow < Gosu::Window
|
|
87
87
|
end
|
88
88
|
|
89
89
|
# create the Gosu images so they can be put in to each Tile object
|
90
|
-
chk = Gosu::Image.new(self,
|
91
|
-
img0 = Gosu::Image.new(self,
|
90
|
+
chk = Gosu::Image.new(self, File.join(File.dirname(File.expand_path(__FILE__)), 'check.png'), true) # completion image
|
91
|
+
img0 = Gosu::Image.new(self, File.join(File.dirname(File.expand_path(__FILE__)), 'tumblr.png'), true) # the back of each card
|
92
92
|
img1 = Gosu::Image.new(self, imgArr[0][0], true)
|
93
93
|
img2 = Gosu::Image.new(self, imgArr[1][0], true)
|
94
94
|
img3 = Gosu::Image.new(self, imgArr[2][0], true)
|
data/lib/tumblr-game/tumblr.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tumblr-game
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Canero
|
@@ -83,7 +83,7 @@ files:
|
|
83
83
|
- resources/check.png
|
84
84
|
- resources/tumblr.png
|
85
85
|
- bin/Main
|
86
|
-
homepage:
|
86
|
+
homepage: https://github.com/caneroj1/Tumblr_image
|
87
87
|
licenses:
|
88
88
|
- MIT
|
89
89
|
metadata: {}
|