From 1d0344f3f45ff98e3dc9f6fcc3f4e95ff4254ce9 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Fri, 1 May 2020 15:47:28 +0930 Subject: [PATCH] Scripts refactoring --- main.tscn | 24 +++++++++++----------- project.godot | 10 ++++----- Bezel.gd => scripts/Bezel.gd | 0 FileLoader.gd => scripts/FileLoader.gd | 0 GameTheme.gd => scripts/GameTheme.gd | 0 InputHandler.gd => scripts/InputHandler.gd | 0 Menu.gd => scripts/Menu.gd | 0 Note.gd => scripts/Note.gd | 0 NoteHandler.gd => scripts/NoteHandler.gd | 0 NotePainter.gd => scripts/NotePainter.gd | 0 NoteViewport.gd => scripts/NoteViewport.gd | 0 Receptors.gd => scripts/Receptors.gd | 0 Rules.gd => scripts/Rules.gd | 0 SFXPlayer.gd => scripts/SFXPlayer.gd | 0 ScoreText.gd => scripts/ScoreText.gd | 0 ScreenFilter.gd => scripts/ScreenFilter.gd | 0 main.gd => scripts/main.gd | 0 video.gd => scripts/video.gd | 0 18 files changed, 17 insertions(+), 17 deletions(-) rename Bezel.gd => scripts/Bezel.gd (100%) rename FileLoader.gd => scripts/FileLoader.gd (100%) rename GameTheme.gd => scripts/GameTheme.gd (100%) rename InputHandler.gd => scripts/InputHandler.gd (100%) rename Menu.gd => scripts/Menu.gd (100%) rename Note.gd => scripts/Note.gd (100%) rename NoteHandler.gd => scripts/NoteHandler.gd (100%) rename NotePainter.gd => scripts/NotePainter.gd (100%) rename NoteViewport.gd => scripts/NoteViewport.gd (100%) rename Receptors.gd => scripts/Receptors.gd (100%) rename Rules.gd => scripts/Rules.gd (100%) rename SFXPlayer.gd => scripts/SFXPlayer.gd (100%) rename ScoreText.gd => scripts/ScoreText.gd (100%) rename ScreenFilter.gd => scripts/ScreenFilter.gd (100%) rename main.gd => scripts/main.gd (100%) rename video.gd => scripts/video.gd (100%) diff --git a/main.tscn b/main.tscn index 2fb7d57..ac30d1c 100644 --- a/main.tscn +++ b/main.tscn @@ -1,27 +1,27 @@ [gd_scene load_steps=23 format=2] -[ext_resource path="res://main.gd" type="Script" id=1] -[ext_resource path="res://video.gd" type="Script" id=2] -[ext_resource path="res://ScreenFilter.gd" type="Script" id=3] +[ext_resource path="res://scripts/main.gd" type="Script" id=1] +[ext_resource path="res://scripts/video.gd" type="Script" id=2] +[ext_resource path="res://scripts/ScreenFilter.gd" type="Script" id=3] [ext_resource path="res://shaders/receptors.shader" type="Shader" id=4] -[ext_resource path="res://Receptors.gd" type="Script" id=5] -[ext_resource path="res://NoteHandler.gd" type="Script" id=6] -[ext_resource path="res://NoteViewport.gd" type="Script" id=7] +[ext_resource path="res://scripts/Receptors.gd" type="Script" id=5] +[ext_resource path="res://scripts/NoteHandler.gd" type="Script" id=6] +[ext_resource path="res://scripts/NoteViewport.gd" type="Script" id=7] [ext_resource path="res://assets/text-4k.png" type="Texture" id=8] [ext_resource path="res://shaders/notemesh.shader" type="Shader" id=9] [ext_resource path="res://shaders/notelines.shader" type="Shader" id=10] -[ext_resource path="res://NotePainter.gd" type="Script" id=11] -[ext_resource path="res://Menu.gd" type="Script" id=12] +[ext_resource path="res://scripts/NotePainter.gd" type="Script" id=11] +[ext_resource path="res://scripts/Menu.gd" type="Script" id=12] [ext_resource path="res://shaders/scoretext.tres" type="Material" id=13] -[ext_resource path="res://ScoreText.gd" type="Script" id=14] -[ext_resource path="res://Bezel.gd" type="Script" id=15] +[ext_resource path="res://scripts/ScoreText.gd" type="Script" id=14] +[ext_resource path="res://scripts/Bezel.gd" type="Script" id=15] [ext_resource path="res://assets/NotoSans.tres" type="DynamicFont" id=16] -[ext_resource path="res://InputHandler.gd" type="Script" id=17] +[ext_resource path="res://scripts/InputHandler.gd" type="Script" id=17] [sub_resource type="ShaderMaterial" id=1] shader = ExtResource( 4 ) shader_param/num_receptors = 8 -shader_param/receptor_offset = 0.0 +shader_param/receptor_offset = 0.392699 shader_param/line_color = Color( 0, 0, 1, 1 ) shader_param/dot_color = Color( 0, 0, 1, 1 ) shader_param/shadow_color = Color( 0, 0, 0, 1 ) diff --git a/project.godot b/project.godot index 77a32b5..ea43c42 100644 --- a/project.godot +++ b/project.godot @@ -27,11 +27,11 @@ channel_disable_time=5.0 [autoload] -Note="*res://Note.gd" -Rules="*res://Rules.gd" -FileLoader="*res://FileLoader.gd" -GameTheme="*res://GameTheme.gd" -SFXPlayer="*res://SFXPlayer.gd" +Note="*res://scripts/Note.gd" +Rules="*res://scripts/Rules.gd" +FileLoader="*res://scripts/FileLoader.gd" +GameTheme="*res://scripts/GameTheme.gd" +SFXPlayer="*res://scripts/SFXPlayer.gd" [debug] diff --git a/Bezel.gd b/scripts/Bezel.gd similarity index 100% rename from Bezel.gd rename to scripts/Bezel.gd diff --git a/FileLoader.gd b/scripts/FileLoader.gd similarity index 100% rename from FileLoader.gd rename to scripts/FileLoader.gd diff --git a/GameTheme.gd b/scripts/GameTheme.gd similarity index 100% rename from GameTheme.gd rename to scripts/GameTheme.gd diff --git a/InputHandler.gd b/scripts/InputHandler.gd similarity index 100% rename from InputHandler.gd rename to scripts/InputHandler.gd diff --git a/Menu.gd b/scripts/Menu.gd similarity index 100% rename from Menu.gd rename to scripts/Menu.gd diff --git a/Note.gd b/scripts/Note.gd similarity index 100% rename from Note.gd rename to scripts/Note.gd diff --git a/NoteHandler.gd b/scripts/NoteHandler.gd similarity index 100% rename from NoteHandler.gd rename to scripts/NoteHandler.gd diff --git a/NotePainter.gd b/scripts/NotePainter.gd similarity index 100% rename from NotePainter.gd rename to scripts/NotePainter.gd diff --git a/NoteViewport.gd b/scripts/NoteViewport.gd similarity index 100% rename from NoteViewport.gd rename to scripts/NoteViewport.gd diff --git a/Receptors.gd b/scripts/Receptors.gd similarity index 100% rename from Receptors.gd rename to scripts/Receptors.gd diff --git a/Rules.gd b/scripts/Rules.gd similarity index 100% rename from Rules.gd rename to scripts/Rules.gd diff --git a/SFXPlayer.gd b/scripts/SFXPlayer.gd similarity index 100% rename from SFXPlayer.gd rename to scripts/SFXPlayer.gd diff --git a/ScoreText.gd b/scripts/ScoreText.gd similarity index 100% rename from ScoreText.gd rename to scripts/ScoreText.gd diff --git a/ScreenFilter.gd b/scripts/ScreenFilter.gd similarity index 100% rename from ScreenFilter.gd rename to scripts/ScreenFilter.gd diff --git a/main.gd b/scripts/main.gd similarity index 100% rename from main.gd rename to scripts/main.gd diff --git a/video.gd b/scripts/video.gd similarity index 100% rename from video.gd rename to scripts/video.gd