tumblr-game 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tumblr-game/gosu.rb +8 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a2adf36d06792ffecc5e165ea69a33922ca3169
4
- data.tar.gz: 91a022a33a0c6bdf573d834c14a471e96b084ef0
3
+ metadata.gz: 2e3d3bd481c0d378b748e63db548c8684baec4fd
4
+ data.tar.gz: a94a00be723610a30be739900f543a74c45b5964
5
5
  SHA512:
6
- metadata.gz: 3beca42ee8376e8bfb6592acdbc3de49bdc314aae703a0115a79238d188759b4e89ace74cfb96e941fc9d8ed712c9962f2b582bf3fb755830405a69d90fbd834
7
- data.tar.gz: 06f063fc41c5fb7047c81272b09485b94743b022eca92a27219b1100d5849c77baee40859a0de7a4a8e522902150232c61806c9428ec6aac7ae48b29069688f1
6
+ metadata.gz: 2d4c83c15dc73c3473067969738e1792b1d074d838b10a5d9f657180b83d426cbdfbbd6c802bc3bafd95a1ae9202f921c7cd6b5222d3f72f8a5f78b38ee28463
7
+ data.tar.gz: 3e807097b3e6c7ed8d878a86647067d435debec2791135a4ce5ffa1ac70e8201ee75a9f8faf5c2552297c4707e718f223be26f3c4498cc629a01995b35bc1c01
@@ -118,6 +118,14 @@ class MyWindow < Gosu::Window
118
118
  ## only allow the user to pick tiles if the frameCounter is at 0
119
119
  # this means that the user can only pick tiles when two tiles are not being displayed
120
120
  # after the 96 frames of display are over, we then call the check_match function and set the frameCounter back to 0
121
+
122
+ ## update the Timer object
123
+ @timer.update
124
+
125
+ if timer.return_time == 0 then
126
+ check_win
127
+ end
128
+
121
129
  if @frameCounter == 0 then
122
130
  pick_tiles
123
131
  elsif @frameCounter == 96 then
@@ -130,9 +138,6 @@ class MyWindow < Gosu::Window
130
138
  if @phase == 1 and @pickedSecond then
131
139
  @frameCounter += 1
132
140
  end
133
-
134
- ## update the Timer object
135
- @timer.update
136
141
  end
137
142
 
138
143
  ## draw function. this function will draw one of the three backgrounds for the game. if the game is in the LOSE state, if the time has run out and the
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: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Canero