Commit 9a2a3209 authored by Emery Tanghanwaye's avatar Emery Tanghanwaye
Browse files

final

parent 4645cc36
......@@ -5,7 +5,7 @@ using System.Collections.Generic;
public class Game : Node2D
{
// initial amount of money player has
private float _Money = 990f;
private float _Money = 0f;
// the amount of money player earns per second
private float _ProfitRate = 1f;
......@@ -289,7 +289,6 @@ public class Game : Node2D
ProfitLabel = GetNode<Label>("GUI/CanvasLayer/ProfitLabel");
StageLabel = GetNode<Label>("GUI/CanvasLayer/StageLabel");
GoalLabel = GetNode<Label>("GUI/CanvasLayer/GoalLabel");
TargetRateLabel = GetNode<Label>("GUI/CanvasLayer/TargetRateLabel");
// Pull in GUI reference
ButtonHolder = GetNode<Control>("GUI/CanvasLayer/ButtonHolder");
......
[gd_scene load_steps=10 format=2]
[gd_scene load_steps=12 format=2]
[ext_resource path="res://Game.cs" type="Script" id=1]
[ext_resource path="res://ButtonGroup.cs" type="Script" id=2]
......@@ -8,10 +8,12 @@
[ext_resource path="res://assets/level3good.jpeg" type="Texture" id=6]
[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]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ) ],
"frames": [ ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ) ],
"loop": true,
"name": "default",
"speed": 5.0
......@@ -89,3 +91,9 @@ color = Color( 0.25098, 0.25098, 0.25098, 1 )
[node name="ButtonHolder" type="Control" parent="GUI/CanvasLayer"]
margin_right = 40.0
margin_bottom = 40.0
[node name="FailScreen" type="Sprite" parent="GUI/CanvasLayer"]
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 10 )
autoplay = true
[remap]
importer="ogg_vorbis"
type="AudioStreamOGGVorbis"
path="res://.import/1_Aerobatics_in_Slow_Motion.ogg-6d5e4ef75ba48c9b88c5bc27ced8cc64.oggstr"
[deps]
source_file="res://Music/1_Aerobatics_in_Slow_Motion.ogg"
dest_files=[ "res://.import/1_Aerobatics_in_Slow_Motion.ogg-6d5e4ef75ba48c9b88c5bc27ced8cc64.oggstr" ]
[params]
loop=true
loop_offset=0
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/stage5bad.jpeg-633e5eff8f4e2235fdfbdddd2e0dcfb4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/stage5bad.jpeg"
dest_files=[ "res://.import/stage5bad.jpeg-633e5eff8f4e2235fdfbdddd2e0dcfb4.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0
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