-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b47346
commit 3e7fea0
Showing
9 changed files
with
170 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[gd_resource type="DynamicFont" load_steps=2 format=2] | ||
|
||
[ext_resource path="res://Fonts/dogicapixel.ttf" type="DynamicFontData" id=1] | ||
|
||
[resource] | ||
resource_local_to_scene = true | ||
size = 8 | ||
font_data = ExtResource( 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
[gd_scene load_steps=6 format=2] | ||
|
||
[ext_resource path="res://Fonts/dogicapixel.ttf" type="DynamicFontData" id=1] | ||
[ext_resource path="res://UI/WinScreen.gd" type="Script" id=2] | ||
|
||
[sub_resource type="DynamicFont" id=1] | ||
size = 50 | ||
font_data = ExtResource( 1 ) | ||
|
||
[sub_resource type="DynamicFontData" id=3] | ||
font_path = "res://Fonts/dogicapixel.ttf" | ||
|
||
[sub_resource type="DynamicFont" id=2] | ||
size = 10 | ||
font_data = SubResource( 3 ) | ||
|
||
[node name="EndScreen" type="CanvasLayer"] | ||
script = ExtResource( 2 ) | ||
|
||
[node name="Title" type="Label" parent="."] | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
margin_left = -300.0 | ||
margin_top = -90.0 | ||
margin_right = 299.0 | ||
margin_bottom = -52.0 | ||
custom_fonts/font = SubResource( 1 ) | ||
text = "You Win!" | ||
align = 1 | ||
|
||
[node name="IceRemaining" type="Label" parent="."] | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
margin_left = -300.0 | ||
margin_top = -7.0 | ||
margin_right = 300.0 | ||
margin_bottom = 7.0 | ||
custom_fonts/font = SubResource( 2 ) | ||
text = "Ice Remaining: 10%" | ||
align = 1 | ||
|
||
[node name="TotalTime" type="Label" parent="."] | ||
anchor_left = 0.5 | ||
anchor_top = 0.5 | ||
anchor_right = 0.5 | ||
anchor_bottom = 0.5 | ||
margin_left = -300.0 | ||
margin_top = 24.0 | ||
margin_right = 300.0 | ||
margin_bottom = 38.0 | ||
custom_fonts/font = SubResource( 2 ) | ||
text = "Total Time: 30 seconds" | ||
align = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extends CanvasLayer | ||
|
||
onready var ice_remaining = $IceRemaining | ||
onready var total_time = $TotalTime | ||
onready var title = $Title | ||
|
||
func _ready(): | ||
# This should have grades so that folks feel a desire to replay | ||
if State.ice_remaining > 0: | ||
title.text = "You Win!" | ||
else: | ||
title.text = "You Lose :(" | ||
|
||
ice_remaining.text = "Ice Remaining: %d%%" % int( 100 * float(State.ice_remaining) / State.STARTING_ICE) | ||
total_time.text = "Total Time: %d seconds" % int(State.time_elapsed()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters