Commit d8df0709 authored by Emery Tanghanwaye's avatar Emery Tanghanwaye
Browse files

fix stuff

parent 4695f750
......@@ -16,6 +16,7 @@ public class Game : Node2D
// sprite for the game background
private AnimatedSprite Background;
private Sprite FailScreen;
// Labels for different text labels in the game
private Label MoneyLabel;
......@@ -276,13 +277,14 @@ public class Game : Node2D
private void EndGameBad()
{
// TODO
FailScreen.Visible = true;
}
public override void _Ready()
{
// pulls in background object
Background = GetNode<AnimatedSprite>("GUI/CanvasLayer/Background");
FailScreen = GetNode<Sprite>("GUI/CanvasLayer/FailScreen");
// Pulls in our labels
MoneyLabel = GetNode<Label>("GUI/CanvasLayer/MoneyLabel");
......
[gd_scene load_steps=12 format=2]
[gd_scene load_steps=13 format=2]
[ext_resource path="res://Game.cs" type="Script" id=1]
[ext_resource path="res://ButtonGroup.cs" type="Script" id=2]
......@@ -9,7 +9,8 @@
[ext_resource path="res://assets/level4bad.jpg" type="Texture" id=7]
[ext_resource path="res://assets/level4good.jpeg" type="Texture" id=8]
[ext_resource path="res://assets/level5good.jpeg" type="Texture" id=9]
[ext_resource path="res://Music/1_Aerobatics_in_Slow_Motion.ogg" type="AudioStream" id=10]
[ext_resource path="res://assets/stage5bad.jpeg" type="Texture" id=10]
[ext_resource path="res://Music/1_Aerobatics_in_Slow_Motion.ogg" type="AudioStream" id=11]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
......@@ -93,7 +94,11 @@ margin_right = 40.0
margin_bottom = 40.0
[node name="FailScreen" type="Sprite" parent="GUI/CanvasLayer"]
visible = false
position = Vector2( 626.394, 346.165 )
scale = Vector2( 0.6, 0.6 )
texture = ExtResource( 10 )
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 10 )
stream = ExtResource( 11 )
autoplay = true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment