massive work towards godot 4

This commit is contained in:
2023-02-01 04:43:50 -05:00
parent 42259a89ed
commit 5dac6ced93
484 changed files with 5935 additions and 5084 deletions

122
nodes/Victory.tscn Normal file
View File

@@ -0,0 +1,122 @@
[gd_scene load_steps=6 format=3]
[ext_resource type="Theme" uid="uid://cxgvk5h68qluc" path="res://general_theme.tres" id="1"]
[ext_resource type="FontFile" uid="uid://5pudbq7h6eh7" path="res://assets/fonts/pixelmix/pixelmix_bold.ttf" id="2"]
[ext_resource type="Script" path="res://scripts/Console.gd" id="3"]
[sub_resource type="FontFile" id=1]
size = 48
font_data = ExtResource( 2 )
[sub_resource type="GDScript" id=2]
script/source = "extends ColorRect
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _ready():
show()
fade_in()
pass # Replace with function body.
const VICTORY_SCREEN = \"res://Nodes/Victory.tscn\"
var progress = 255
var fade_timer
const FADE_SPEED = 0.0125
const FADE_RATE = 8
func fade_in():
modulate.a = progress/255.0
if progress > 0:
progress -= FADE_RATE
if(!fade_timer):
fade_timer = Timer.new()
add_child(fade_timer)
fade_timer.connect(\"timeout\",Callable(self,\"fade_in\"))
fade_timer.start(FADE_SPEED)
else:
fade_timer.queue_free()
var prog_two = 0
func fade_out():
modulate.a = prog_two/255.0
if prog_two < 255:
prog_two += FADE_RATE
if(!fade_timer):
fade_timer = Timer.new()
add_child(fade_timer)
fade_timer.connect(\"timeout\",Callable(self,\"fade_out\"))
fade_timer.start(FADE_SPEED)
else:
fade_timer.queue_free()"
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Control" type="Control" parent="CanvasLayer"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 1 )
[node name="Level Complete" type="Label" parent="CanvasLayer/Control"]
offset_left = 20.0
offset_top = 15.0
offset_right = 691.0
offset_bottom = 88.0
custom_fonts/font = SubResource( 1 )
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
text = "LEVEL COMPLETE!"
[node name="Console" type="Control" parent="CanvasLayer/Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 3 )
[node name="Display" type="Label" parent="CanvasLayer/Control/Console"]
offset_left = 20.0
offset_top = 70.0
offset_right = 550.0
offset_bottom = 480.0
custom_colors/font_color = Color( 0.6, 0.898039, 0.313726, 1 )
text = "Running debugger...
Debugging complete!"
[node name="Buttons" type="HBoxContainer" parent="CanvasLayer/Control/Console"]
offset_left = 20.0
offset_top = 480.0
offset_right = 550.0
offset_bottom = 520.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="Button2" type="Button" parent="CanvasLayer/Control/Console/Buttons"]
offset_left = 241.0
offset_right = 289.0
offset_bottom = 40.0
text = "Test"
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Control/Console"]
offset_left = 20.0
offset_top = 475.0
offset_right = 550.0
offset_bottom = 485.0
scale = Vector2( 1, 0.5 )
color = Color( 0.6, 0.898039, 0.313726, 1 )
[node name="FadeRect" type="ColorRect" parent="CanvasLayer"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
color = Color( 0, 0, 0, 1 )
script = SubResource( 2 )