From a060c154f126a95d4ac538c61558747fc4fa9168 Mon Sep 17 00:00:00 2001 From: Lenny Date: Tue, 1 Dec 2020 21:39:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=AF=20Final=20push.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.cs | 152 ++- App.tscn | 866 +++++++++++++++++- Assets/Buildings/Turrets/Minigun.aseprite | Bin 0 -> 806 bytes Assets/Buildings/Turrets/Minigun.png | Bin 0 -> 825 bytes Assets/Buildings/Turrets/Minigun.png.import | 34 + Assets/Buildings/Turrets/Minigun.tres | 18 + Assets/Buildings/Turrets/MinigunPreview.png | Bin 0 -> 775 bytes .../Turrets/MinigunPreview.png.import | 34 + Assets/Entities/Enemies/Flying.aseprite | Bin 0 -> 799 bytes Assets/Entities/Enemies/Flying.png | Bin 0 -> 489 bytes Assets/Entities/Enemies/Flying.png.import | 34 + Assets/Entities/Enemies/SlimeWithGun.aseprite | Bin 0 -> 1767 bytes Assets/Entities/Enemies/SlimeWithGun.png | Bin 0 -> 1165 bytes .../Entities/Enemies/SlimeWithGun.png.import | 34 + Assets/Projectiles/CopperBullet.png | Bin 0 -> 138 bytes Assets/Projectiles/CopperBullet.png.import | 34 + Assets/Projectiles/EnemyBullet2.png | Bin 0 -> 122 bytes Assets/Projectiles/EnemyBullet2.png.import | 34 + Assets/SFX/Explode.wav | Bin 0 -> 17355 bytes Assets/SFX/Explode.wav.import | 21 + Assets/SFX/Hit.wav | Bin 0 -> 2794 bytes Assets/SFX/Hit.wav.import | 21 + Assets/SFX/PlaceBuilding.wav | Bin 0 -> 15987 bytes Assets/SFX/PlaceBuilding.wav.import | 21 + Assets/SFX/Shoot.wav | Bin 0 -> 1988 bytes Assets/SFX/Shoot.wav.import | 21 + Assets/SFX/Song.wav | Bin 0 -> 4485164 bytes Assets/SFX/Song.wav.import | 21 + Assets/SFX/Speak.wav | Bin 0 -> 2494 bytes Assets/SFX/Speak.wav.import | 21 + Assets/UI/DialogueBox.png | Bin 0 -> 255 bytes Assets/UI/DialogueBox.png.import | 34 + Assets/UI/MainMenuBG.png | Bin 0 -> 772 bytes Assets/UI/MainMenuBG.png.import | 34 + Assets/UI/Theta.png | Bin 0 -> 192 bytes Assets/UI/Theta.png.import | 34 + Moonshot.csproj => HAZE-3.csproj | 1 + Moonshot.sln => HAZE-3.sln | 14 +- Source/Buildings/BuildManager.tscn | 5 +- Source/Buildings/Building.cs | 8 +- Source/Buildings/Building.tscn | 84 +- Source/Buildings/Core.tscn | 27 +- Source/Buildings/Turrets/Minigun.tscn | 132 +++ Source/Buildings/Turrets/RockLauncher.tscn | 10 +- Source/Buildings/Turrets/Turret.tscn | 18 +- Source/DaylightCycle.cs | 140 +-- Source/Entities/Enemies/Enemy.cs | 5 +- Source/Entities/Enemies/Enemy.tscn | 8 +- Source/Entities/Enemies/FlyingEnemy.cs | 93 ++ Source/Entities/Enemies/FlyingEnemy.tscn | 104 +++ Source/Entities/Enemies/Runner.tscn | 11 +- Source/Entities/Enemies/SlimeWithGun.cs | 26 + Source/Entities/Enemies/SlimeWithGun.tscn | 212 +++++ Source/Entities/Entity.cs | 4 + Source/Entities/Entity.tscn | 14 +- Source/Entities/Player.cs | 2 +- Source/Entities/Player.tscn | 18 +- Source/NavigationManager.cs | 63 +- Source/OreType.cs | 38 + Source/Planet.cs | 72 +- Source/Planet.tscn | 270 +++++- Source/Projectiles/CopperBullet.tscn | 30 + Source/Projectiles/EnemyBullet2.tscn | 18 + Source/Projectiles/EnemyBullet3.tscn | 30 + Source/Projectiles/ProjectileEmitter.cs | 6 + Source/Projectiles/ProjectileEmitter.tscn | 10 +- Source/Settings.cs | 4 +- Source/ShakeCamera2D.cs | 4 +- Source/UI/DialogueBox.cs | 155 ++++ Source/UI/DialogueBox.tscn | 236 +++++ Source/UI/PauseMenu.cs | 5 + Source/UI/PauseMenu.tscn | 74 +- Source/Weapons/Gun.cs | 3 +- default_bus_layout.tres | 15 + icon.ico | Bin 0 -> 42258 bytes icon.png | Bin 3305 -> 396 bytes project.godot | 2 +- 77 files changed, 3223 insertions(+), 216 deletions(-) create mode 100644 Assets/Buildings/Turrets/Minigun.aseprite create mode 100644 Assets/Buildings/Turrets/Minigun.png create mode 100644 Assets/Buildings/Turrets/Minigun.png.import create mode 100644 Assets/Buildings/Turrets/Minigun.tres create mode 100644 Assets/Buildings/Turrets/MinigunPreview.png create mode 100644 Assets/Buildings/Turrets/MinigunPreview.png.import create mode 100644 Assets/Entities/Enemies/Flying.aseprite create mode 100644 Assets/Entities/Enemies/Flying.png create mode 100644 Assets/Entities/Enemies/Flying.png.import create mode 100644 Assets/Entities/Enemies/SlimeWithGun.aseprite create mode 100644 Assets/Entities/Enemies/SlimeWithGun.png create mode 100644 Assets/Entities/Enemies/SlimeWithGun.png.import create mode 100644 Assets/Projectiles/CopperBullet.png create mode 100644 Assets/Projectiles/CopperBullet.png.import create mode 100644 Assets/Projectiles/EnemyBullet2.png create mode 100644 Assets/Projectiles/EnemyBullet2.png.import create mode 100644 Assets/SFX/Explode.wav create mode 100644 Assets/SFX/Explode.wav.import create mode 100644 Assets/SFX/Hit.wav create mode 100644 Assets/SFX/Hit.wav.import create mode 100644 Assets/SFX/PlaceBuilding.wav create mode 100644 Assets/SFX/PlaceBuilding.wav.import create mode 100644 Assets/SFX/Shoot.wav create mode 100644 Assets/SFX/Shoot.wav.import create mode 100644 Assets/SFX/Song.wav create mode 100644 Assets/SFX/Song.wav.import create mode 100644 Assets/SFX/Speak.wav create mode 100644 Assets/SFX/Speak.wav.import create mode 100644 Assets/UI/DialogueBox.png create mode 100644 Assets/UI/DialogueBox.png.import create mode 100644 Assets/UI/MainMenuBG.png create mode 100644 Assets/UI/MainMenuBG.png.import create mode 100644 Assets/UI/Theta.png create mode 100644 Assets/UI/Theta.png.import rename Moonshot.csproj => HAZE-3.csproj (75%) rename Moonshot.sln => HAZE-3.sln (51%) create mode 100644 Source/Buildings/Turrets/Minigun.tscn create mode 100644 Source/Entities/Enemies/FlyingEnemy.cs create mode 100644 Source/Entities/Enemies/FlyingEnemy.tscn create mode 100644 Source/Entities/Enemies/SlimeWithGun.cs create mode 100644 Source/Entities/Enemies/SlimeWithGun.tscn create mode 100644 Source/OreType.cs create mode 100644 Source/Projectiles/CopperBullet.tscn create mode 100644 Source/Projectiles/EnemyBullet2.tscn create mode 100644 Source/Projectiles/EnemyBullet3.tscn create mode 100644 Source/UI/DialogueBox.cs create mode 100644 Source/UI/DialogueBox.tscn create mode 100644 default_bus_layout.tres create mode 100644 icon.ico diff --git a/App.cs b/App.cs index dd12a7f..22f5752 100644 --- a/App.cs +++ b/App.cs @@ -1,36 +1,178 @@ using Godot; +using Godot.Collections; public class App : Node { [Export] public PackedScene PlanetScene; + public DialogueBox IntroDialogue; + public AnimationPlayer IntroAnimationPlayer; + public Control MainMenu; + public AnimationPlayer MainMenuAnimationPlayer; public Button StartButton; + public Label MasterVolumeLabel; + public Slider MasterVolumeSlider; + + public Label SFXVolumeLabel; + public Slider SFXVolumeSlider; + + public Label MusicVolumeLabel; + public Slider MusicVolumeSlider; + + public AnimationPlayer WinAnimationPlayer; + public Planet Planet; public override void _Ready() { base._Ready(); + IntroDialogue = GetNode("UI/IntroDialogue"); + IntroAnimationPlayer = GetNode("UI/IntroDialogue/AnimationPlayer"); + MainMenu = GetNode("UI/MainMenu"); + MainMenuAnimationPlayer = GetNode("UI/MainMenu/AnimationPlayer"); StartButton = GetNode