fantasy 0.1.5 → 0.1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fantasy/global.rb +4 -3
- data/lib/fantasy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58bcb1e825d5cdf5185a26d5bd1dd972fb585ddeefa8fab964984e4ddd975584
|
|
4
|
+
data.tar.gz: eea7d4e258d2a3f949b97b187fd540e9e7702515fcac381c5ae53b244f06c546
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a4ec479708e117036d068ddcf3c5f33f0338a85e324ca7708bd1922c41c632804e90733fea5c3d2dc258f2d00e2b8fbf37e30d4cf4e0afec70e663af2125319
|
|
7
|
+
data.tar.gz: 2beeb1fdb476866e25db35ee12559c7571656e07a0ab9c112d832ec1a0fdffa520f471fc4054bc67a4e14154f445aa9e9b8d5e889d988f64920f04931c53bb01
|
data/lib/fantasy/global.rb
CHANGED
|
@@ -35,7 +35,7 @@ module Global
|
|
|
35
35
|
@references = OpenStruct.new
|
|
36
36
|
@camera = Camera.new(position: Coordinates.zero)
|
|
37
37
|
@game_state = Global.presentation_proc.nil? ? "game" : "presentation"
|
|
38
|
-
@
|
|
38
|
+
@scene_started_at = Time.now
|
|
39
39
|
|
|
40
40
|
if @presentation_proc.nil?
|
|
41
41
|
on_presentation { Global.default_on_presentation }
|
|
@@ -102,6 +102,7 @@ module Global
|
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
def clear_state_elements
|
|
105
|
+
@scene_started_at = Time.now
|
|
105
106
|
@actors.clear
|
|
106
107
|
@hud_texts.clear
|
|
107
108
|
@hud_images.clear
|
|
@@ -120,8 +121,8 @@ module Global
|
|
|
120
121
|
Image.preload_images
|
|
121
122
|
end
|
|
122
123
|
|
|
123
|
-
def
|
|
124
|
-
Time.now - @
|
|
124
|
+
def seconds_in_scene
|
|
125
|
+
Time.now - @scene_started_at
|
|
125
126
|
end
|
|
126
127
|
end
|
|
127
128
|
end
|
data/lib/fantasy/version.rb
CHANGED