tumblr-game 0.0.9.2 → 0.0.9.3

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
  SHA1:
3
- metadata.gz: 90987e0fc055287321329ff2ef50045775162ee3
4
- data.tar.gz: 9cc3e6d5bbb44e452f0d2a47062686cd689ab916
3
+ metadata.gz: 55ca1a4913cd0eae6e1ea00d440225f8f7a08375
4
+ data.tar.gz: 56c4974fec0f48fb0b00a4d31a6ec91dec8701aa
5
5
  SHA512:
6
- metadata.gz: e7c4234609db4348e3df751abebd5dddef2148497b2b7d0e5bafe332cc1d55b17195e70dde94ca4b8b1f8741c8222287fdcf2a1209cd2813a72e607b5157e0d1
7
- data.tar.gz: e42c62061223ebc98219f1d2ca5fe839af01b5299f1f3d73df0f841b2b5cdf0f16114afd922e7ecd59c53c36ac0deab0249804c037163852c565bdf570caed99
6
+ metadata.gz: 472e28dd9a4c4a4e4748dd0f2b9935eab1bb5a713950c521dc3bba4247443f5ab1efa688dfe920055efd7d64418fc7df7d5c0ae3e76738ff72acf715212630ee
7
+ data.tar.gz: c9c56d3b8095efc35b3a4334060ca6e6255323a6359200fc2db44b893bc47e7831fa9178f2607a9f9bc24dbf7c6b4ed463346d9e7fd0088e1eb51f13123bbb5e
@@ -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
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image1.png') => 0,
65
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image2.png') => 1,
66
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image3.png') => 2,
67
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image4.png') => 3,
68
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image5.png') => 4,
69
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image6.png') => 0,
70
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image7.png') => 1,
71
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image8.png') => 2,
72
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image9.png') => 3,
73
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image10.png') => 4 ]
64
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image1.png') => 0,
65
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image2.png') => 1,
66
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image3.png') => 2,
67
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image4.png') => 3,
68
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image5.png') => 4,
69
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image6.png') => 0,
70
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image7.png') => 1,
71
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image8.png') => 2,
72
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image9.png') => 3,
73
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/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
@@ -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
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image1.png') => 0,
55
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image2.png') => 1,
56
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image3.png') => 2,
57
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image4.png') => 3,
58
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image5.png') => 4,
59
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image6.png') => 0,
60
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image7.png') => 1,
61
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image8.png') => 2,
62
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image9.png') => 3,
63
- File.join(File.dirname(File.expand_path('../..', __FILE__)), 'resources/image10.png') => 4 ]
54
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image1.png') => 0,
55
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image2.png') => 1,
56
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image3.png') => 2,
57
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image4.png') => 3,
58
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image5.png') => 4,
59
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image6.png') => 0,
60
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image7.png') => 1,
61
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image8.png') => 2,
62
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image9.png') => 3,
63
+ File.join(File.dirname(File.expand_path(Dir.home)), 'Desktop/image10.png') => 4 ]
64
64
 
65
65
  i = 0
66
66
  imgNames.each_key do |imgN|
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.9.2
4
+ version: 0.0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Canero