tumblr-game 0.0.3 → 0.0.4
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 +10 -10
- data/lib/tumblr-game/tumblr.rb +10 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aeba2408a942ee0911e69de173c12d057fe69db4
|
4
|
+
data.tar.gz: 3fa0eaf0dc765714d9ade3a133d4cc4f512ecc9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8609bce964a95ce914a29e452285f79fe28d6aea05e144bfe8b9417776362e42ecb4bcec1f3a20610e4c1007e516f3f155c3e1cb0c5fb8b21c07590cbd7c1fd
|
7
|
+
data.tar.gz: 188c920c47eb2daaf833af885183d348c7e5ea9399d9a6d6445b00fe30fa44f4ec1cb29c0cb12b1ebc149bc83fcf4494c76edd37fbec4e010b243eb69a305644
|
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
|
-
'
|
65
|
-
'
|
66
|
-
'
|
67
|
-
'
|
68
|
-
'
|
69
|
-
'
|
70
|
-
'
|
71
|
-
'
|
72
|
-
'
|
73
|
-
'
|
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 ]
|
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
|
data/lib/tumblr-game/tumblr.rb
CHANGED
@@ -51,16 +51,16 @@ class TumblrAPIObject
|
|
51
51
|
# FUTURE GOAL: INSTEAD OF COPYING EACH IMAGE ONCE, CHANGE THIS FUNCTION TO JUST OPEN THE 5 IMAGES.
|
52
52
|
def create_images
|
53
53
|
imgNames = Hash[
|
54
|
-
'
|
55
|
-
'
|
56
|
-
'
|
57
|
-
'
|
58
|
-
'
|
59
|
-
'
|
60
|
-
'
|
61
|
-
'
|
62
|
-
'
|
63
|
-
'
|
54
|
+
'image1.png' => 0,
|
55
|
+
'image2.png' => 1,
|
56
|
+
'image3.png' => 2,
|
57
|
+
'image4.png' => 3,
|
58
|
+
'image5.png' => 4,
|
59
|
+
'image6.png' => 0,
|
60
|
+
'image7.png' => 1,
|
61
|
+
'image8.png' => 2,
|
62
|
+
'.image9.png' => 3,
|
63
|
+
'image10.png' => 4 ]
|
64
64
|
|
65
65
|
i = 0
|
66
66
|
imgNames.each_key do |imgN|
|