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.
- checksums.yaml +4 -4
- data/lib/tumblr-game/gosu.rb +8 -3
- 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: 2e3d3bd481c0d378b748e63db548c8684baec4fd
|
4
|
+
data.tar.gz: a94a00be723610a30be739900f543a74c45b5964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d4c83c15dc73c3473067969738e1792b1d074d838b10a5d9f657180b83d426cbdfbbd6c802bc3bafd95a1ae9202f921c7cd6b5222d3f72f8a5f78b38ee28463
|
7
|
+
data.tar.gz: 3e807097b3e6c7ed8d878a86647067d435debec2791135a4ce5ffa1ac70e8201ee75a9f8faf5c2552297c4707e718f223be26f3c4498cc629a01995b35bc1c01
|
data/lib/tumblr-game/gosu.rb
CHANGED
@@ -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
|