-
Notifications
You must be signed in to change notification settings - Fork 2
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
Showing
30 changed files
with
1,941 additions
and
44 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.import/CampaignSelec.png-834c89160edbb89de13df4911cfd372e.md5
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,3 @@ | ||
source_md5="ae5612d486973f00748b670897caf260" | ||
dest_md5="1f176739a4f58334cd9349aadd07583f" | ||
|
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
.import/CampaignSelec1.png-6a18163133365ad43a873a40b92bb6f9.md5
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,3 @@ | ||
source_md5="dce9117dc309baf2c74935c216394b6b" | ||
dest_md5="93b88e738c16b34c2e936401d3e64d4e" | ||
|
Binary file not shown.
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,45 @@ | ||
extends Node2D | ||
|
||
|
||
# Declare member variables here. Examples: | ||
# var a = 2 | ||
# var b = "text" | ||
|
||
|
||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
yield($Tank1,"ready") | ||
yield($Tank2,"ready") | ||
$Tank1.position = $SpawnPos1.position | ||
$Tank2.position = $SpawnPos2.position | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
#func _process(delta): | ||
#if $Controls.visible == true: | ||
#$TextTimeout.start() | ||
# pass | ||
|
||
|
||
func _on_TextTimeout_timeout(): | ||
$Tank1/Player.visible = false | ||
$Tank2/Enemy.visible = false | ||
$Controls.visible = false | ||
|
||
|
||
func _on_Area2D_body_entered(body): | ||
if body == $Tank2: | ||
$aWinnerIsU.visible = true | ||
$WinScreen.start() | ||
|
||
|
||
func _on_WinScreen_timeout(): | ||
var myroot = get_tree().get_root() | ||
var tscreen = myroot.get_node("Campaign") | ||
myroot.remove_child(tscreen) | ||
tscreen.call_deferred("free") | ||
|
||
# Add the world scene | ||
var world_scene = load("res://TitleScreen.tscn") | ||
var world = world_scene.instance() | ||
myroot.add_child(world) |
Oops, something went wrong.