-
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
bc301bc
commit 7943789
Showing
8 changed files
with
143 additions
and
7 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,11 @@ | ||
[gd_resource type="Resource" script_class="AbilityUpgrade" load_steps=2 format=3 uid="uid://oj5ee34brh6b"] | ||
|
||
[ext_resource type="Script" path="res://resources/upgrades/ability_upgrade.gd" id="1_n4jlk"] | ||
|
||
[resource] | ||
script = ExtResource("1_n4jlk") | ||
id = "shield" | ||
parent_id = "" | ||
max_quantity = 1 | ||
name = "Shield" | ||
description = "A magical shield blocking damages every 15 s" |
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,11 @@ | ||
[gd_resource type="Resource" script_class="AbilityUpgrade" load_steps=2 format=3 uid="uid://kw354v654xgu"] | ||
|
||
[ext_resource type="Script" path="res://resources/upgrades/ability_upgrade.gd" id="1_jobut"] | ||
|
||
[resource] | ||
script = ExtResource("1_jobut") | ||
id = "shield_rate" | ||
parent_id = "shield" | ||
max_quantity = 10 | ||
name = "Shield Cooldown" | ||
description = "Reduce cooldown of the shield by 1 s" |
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 |
---|---|---|
@@ -1,14 +1,22 @@ | ||
extends CanvasLayer | ||
|
||
var pressed = false | ||
|
||
func _ready(): | ||
%PlayButton.pressed.connect(on_play_pressed) | ||
%QuitButton.pressed.connect(on_quit_pressed) | ||
if OS.has_feature("web"): | ||
%QuitButton.visible = false | ||
|
||
func on_play_pressed(): | ||
get_tree().change_scene_to_file("res://scenes/main/main.tscn") | ||
$AnimationPlayer.play("out") | ||
pressed = true | ||
|
||
|
||
func _process(delta): | ||
if pressed and not $AnimationPlayer.is_playing(): | ||
get_tree().change_scene_to_file("res://scenes/main/main.tscn") | ||
|
||
func on_quit_pressed(): | ||
get_tree().quit() | ||
|
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
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