File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const Window = preload("res://scenes/Window.tscn")
5
5
6
6
var win_pos : Vector2 = Vector2 (100 , 100 )
7
7
var gameover : bool = false
8
+ var error : int = 200
8
9
9
10
func _ready ():
10
11
var trash = Trash .instance ()
@@ -46,14 +47,20 @@ What?! You're not done yet?
46
47
YOU'RE FIRED!
47
48
"""
48
49
else :
50
+ $ GameOver .stop ()
49
51
window .get_node ("Body" ).text = """
50
52
Thanks for your hard work today.
51
53
52
54
See you tomorrow.
53
55
"""
54
- window .position = win_pos
55
- add_child (window )
56
- win_pos = Vector2 (fmod ((win_pos .x + 10 ), OS .window_size .x ), fmod ((win_pos .y + 10 ), OS .window_size .y ))
56
+ if error > 1 :
57
+ window .position = win_pos
58
+ add_child (window )
59
+ win_pos = Vector2 (fmod ((win_pos .x + 10 ), OS .window_size .x ), fmod ((win_pos .y + 10 ), OS .window_size .y ))
60
+ elif error == 1 :
61
+ window .position = OS .window_size / 2
62
+ add_child (window )
63
+ error -= 1
57
64
58
65
59
66
You can’t perform that action at this time.
0 commit comments