Refactor
This commit is contained in:
parent
cea648f0ff
commit
65fe0e5c5d
14 changed files with 30 additions and 33 deletions
|
|
@ -30,7 +30,7 @@ GameRegistry="*res://scripts/systems/GameRegistry.cs"
|
|||
Cheats="*res://scripts/debug/Cheats.cs"
|
||||
AudioSequencer="*res://scenes/audio_sequencer.tscn"
|
||||
SaveSerializer="*res://scripts/SaveSerializer.cs"
|
||||
PlayerProgress="*res://scripts/PlayerProgress.cs"
|
||||
PlayerProgress="*res://scripts/systems/static-data/PlayerProgress.cs"
|
||||
|
||||
[display]
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
[ext_resource type="Script" uid="uid://c1x4n4nqyq72f" path="res://scripts/audio/ChannelSettings.cs" id="10_nlh6x"]
|
||||
[ext_resource type="PackedScene" uid="uid://bvpt0q4j6nx18" path="res://scenes/gui/almanach.tscn" id="11_nlh6x"]
|
||||
[ext_resource type="AudioStream" uid="uid://mu86q1r1dvgo" path="res://assets/audio/music/03. Choose Your Seeds.mp3" id="13_y65t1"]
|
||||
[ext_resource type="Script" uid="uid://b4ysi1iutmju3" path="res://scripts/ChooseYourSeedsMusic.cs" id="14_rptyw"]
|
||||
[ext_resource type="Script" uid="uid://b4ysi1iutmju3" path="res://scripts/audio/ChooseYourSeedsMusic.cs" id="14_rptyw"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_rmoaa"]
|
||||
viewport_path = NodePath("Panel/MarginContainer/VBoxContainer/HBoxContainer/Frame/Previewport")
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
[ext_resource type="AudioStream" uid="uid://bwnmx7t3hcw6h" path="res://assets/audio/sfx/level/awooga.mp3" id="32_xsaqy"]
|
||||
[ext_resource type="AudioStream" uid="uid://cfybn7wn04frs" path="res://assets/audio/music/Grasswalk_Standard.mp3" id="34_tqd4v"]
|
||||
[ext_resource type="AudioStream" uid="uid://get7nh1goi1c" path="res://assets/audio/music/Grasswalk_cool.mp3" id="35_4gg2g"]
|
||||
[ext_resource type="Script" uid="uid://bnj5tlcpmep2o" path="res://scripts/MusicTransitioner.cs" id="36_wwgye"]
|
||||
[ext_resource type="Script" uid="uid://bnj5tlcpmep2o" path="res://scripts/audio/MusicTransitioner.cs" id="36_wwgye"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_vbgdr"]
|
||||
resource_name = "CYS_Sequence"
|
||||
|
|
|
|||
9
scripts/Newlon.cs
Normal file
9
scripts/Newlon.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
namespace Newlon;
|
||||
|
||||
public static class LON
|
||||
{
|
||||
public static float Pr(string path)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
1
scripts/Newlon.cs.uid
Normal file
1
scripts/Newlon.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bkr8vxejk4n2u
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
using Newlon;
|
||||
|
||||
public partial class PlayerProgress : Node
|
||||
{
|
||||
public static PlayerProgress Instance { get; private set; }
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public List<PlantResource> PlayerPlants { get; set; } = new();
|
||||
public int MaxSeedpackets = 9;
|
||||
public int Money { get; set; }
|
||||
}
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class ScalableAudioPlayer : AudioStreamPlayer
|
||||
{
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
if(PitchScale != (float)Engine.TimeScale)
|
||||
PitchScale = (float)Engine.TimeScale * (float)Engine.TimeScale;
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
uid://wfjsgbg3fekl
|
||||
17
scripts/systems/static-data/PlayerProgress.cs
Normal file
17
scripts/systems/static-data/PlayerProgress.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System.Collections.Generic;
|
||||
using Godot;
|
||||
using Newlon;
|
||||
|
||||
public partial class PlayerProgress : Node
|
||||
{
|
||||
public static PlayerProgress Instance { get; private set; }
|
||||
|
||||
public override void _EnterTree()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
public List<PlantResource> PlayerPlants { get; set; } = new();
|
||||
public int MaxSeedpackets = 9;
|
||||
public int Money { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue