Final Game Jam version

This commit is contained in:
Exobyt 2025-09-06 23:19:31 +02:00
parent 35ce267482
commit 104a1e4297
141 changed files with 4485 additions and 206 deletions

15
scenes/timer/timer.gd Normal file
View file

@ -0,0 +1,15 @@
extends TextureRect
@onready var animationPlayer = $AnimationPlayer
@onready var pointer = $pointer
func reset():
pointer.rotation_degrees = -90
animationPlayer.stop()
func setTime(currentTime: float, endTime: float):
var newRotation = (100/(endTime/(endTime-currentTime)))*3.60-90
if newRotation >= 180 and not animationPlayer.is_playing():
animationPlayer.play("warning")
pointer.rotation_degrees = newRotation

View file

@ -0,0 +1 @@
uid://cqp55bs6du0mg

91
scenes/timer/timer.tscn Normal file
View file

@ -0,0 +1,91 @@
[gd_scene load_steps=7 format=3 uid="uid://cft1rugofyhh3"]
[ext_resource type="Texture2D" uid="uid://ch02ekiy2xdm6" path="res://assets/timer/timer.png" id="1_ortn8"]
[ext_resource type="Script" uid="uid://cqp55bs6du0mg" path="res://scenes/timer/timer.gd" id="2_a6ox2"]
[ext_resource type="Texture2D" uid="uid://byi05kporqhoh" path="res://assets/timer/pointer.png" id="3_fvetu"]
[sub_resource type="Animation" id="Animation_a6ox2"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_ortn8"]
resource_name = "warning"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.2, 1.2), Vector2(1, 1)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath(".:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 0.5, 1),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 0.83, 0.832833, 1), Color(1, 1, 1, 1)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_fvetu"]
_data = {
&"RESET": SubResource("Animation_a6ox2"),
&"warning": SubResource("Animation_ortn8")
}
[node name="Timer" type="TextureRect"]
offset_left = -16.0
offset_top = -28.0
offset_right = 112.0
offset_bottom = 100.0
pivot_offset = Vector2(64, 64)
texture = ExtResource("1_ortn8")
script = ExtResource("2_a6ox2")
[node name="pointer" type="TextureRect" parent="."]
layout_mode = 0
offset_left = 64.0
offset_top = 60.0
offset_right = 104.0
offset_bottom = 68.0
rotation = -1.5708
pivot_offset = Vector2(0, 4)
texture = ExtResource("3_fvetu")
expand_mode = 2
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_fvetu")
}