This commit is contained in:
2024-10-20 10:31:07 +02:00
parent fa51e53d7d
commit 0e9cdb9af5
12 changed files with 845 additions and 44 deletions

7
path/h_path.tres Normal file
View File

@@ -0,0 +1,7 @@
[gd_resource type="Curve2D" format=3 uid="uid://cfmt6aweeu764"]
[resource]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, -1856, -281, 0, 0, 0, 0, 3848.43, -290.741, 0, 0, 0, 0, 3850.81, -376.364, 0, 0, 0, 0, -1842.4, -402.399, 0, 0, 0, 0, -1856, -280)
}
point_count = 5

View File

@@ -15,6 +15,10 @@ run/main_scene="res://scene/scene_manager.tscn"
config/features=PackedStringArray("4.3", "C#", "Forward Plus") config/features=PackedStringArray("4.3", "C#", "Forward Plus")
config/icon="res://icon.svg" config/icon="res://icon.svg"
[autoload]
MusicPrincipal="*res://scene/music_principal.tscn"
[display] [display]
window/size/viewport_width=400 window/size/viewport_width=400

View File

@@ -3,7 +3,7 @@
[ext_resource type="Texture2D" uid="uid://cdunb77p5rpwa" path="res://model/Car1.png" id="1_yrf7o"] [ext_resource type="Texture2D" uid="uid://cdunb77p5rpwa" path="res://model/Car1.png" id="1_yrf7o"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5e1gk"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_5e1gk"]
size = Vector2(83, 47) size = Vector2(84, 47)
[node name="Car" type="CharacterBody2D"] [node name="Car" type="CharacterBody2D"]
@@ -11,5 +11,5 @@ size = Vector2(83, 47)
texture = ExtResource("1_yrf7o") texture = ExtResource("1_yrf7o")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(-0.5, 0.5) position = Vector2(0, 0.5)
shape = SubResource("RectangleShape2D_5e1gk") shape = SubResource("RectangleShape2D_5e1gk")

File diff suppressed because one or more lines are too long

View File

@@ -334,7 +334,7 @@ texture = ExtResource("3_b1cgq")
centered = false centered = false
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Panel"] [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Panel"]
position = Vector2(56, 39) position = Vector2(56, 49)
sprite_frames = SubResource("SpriteFrames_gtid6") sprite_frames = SubResource("SpriteFrames_gtid6")
autoplay = "default" autoplay = "default"

View File

@@ -1,8 +1,7 @@
[gd_scene load_steps=5 format=3 uid="uid://bmt2uv41t2dte"] [gd_scene load_steps=4 format=3 uid="uid://bmt2uv41t2dte"]
[ext_resource type="Script" path="res://script/Door.cs" id="1_xvwbq"] [ext_resource type="Script" path="res://script/Door.cs" id="1_xvwbq"]
[ext_resource type="Texture2D" uid="uid://d0g144qe1ly7v" path="res://model/Guy1.png" id="2_5xjot"] [ext_resource type="Texture2D" uid="uid://d0g144qe1ly7v" path="res://model/Guy1.png" id="2_5xjot"]
[ext_resource type="Texture2D" uid="uid://cx1w76xqxqe11" path="res://icon.svg" id="2_f3iv6"]
[sub_resource type="CircleShape2D" id="CircleShape2D_aityf"] [sub_resource type="CircleShape2D" id="CircleShape2D_aityf"]
radius = 32.0 radius = 32.0
@@ -16,9 +15,5 @@ image_mob = ExtResource("2_5xjot")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_aityf") shape = SubResource("CircleShape2D_aityf")
[node name="Icon" type="Sprite2D" parent="."]
scale = Vector2(0.265, 0.265)
texture = ExtResource("2_f3iv6")
[connection signal="body_entered" from="Area2D" to="." method="BodyEntered"] [connection signal="body_entered" from="Area2D" to="." method="BodyEntered"]
[connection signal="body_exited" from="Area2D" to="." method="BodyExited"] [connection signal="body_exited" from="Area2D" to="." method="BodyExited"]

View File

@@ -1,42 +1,135 @@
[gd_scene load_steps=9 format=3 uid="uid://dfasxp8jfv7e3"] [gd_scene load_steps=32 format=3 uid="uid://dfasxp8jfv7e3"]
[ext_resource type="Texture2D" uid="uid://dpqc1xv3cechw" path="res://model/House1Closed.jpg" id="1_4srwi"] [ext_resource type="Texture2D" uid="uid://dpqc1xv3cechw" path="res://model/House1Closed.jpg" id="1_4srwi"]
[ext_resource type="Texture2D" uid="uid://d0g144qe1ly7v" path="res://model/Guy1.png" id="2_8ljyr"] [ext_resource type="Texture2D" uid="uid://d0g144qe1ly7v" path="res://model/Guy1.png" id="2_8ljyr"]
[ext_resource type="Texture2D" uid="uid://b7dcgps5sedwl" path="res://model/House1Open.jpg" id="3_cdukw"] [ext_resource type="Texture2D" uid="uid://b7dcgps5sedwl" path="res://model/House1Open.jpg" id="3_cdukw"]
[ext_resource type="Texture2D" uid="uid://bo5rfykx4o7dj" path="res://model/frame_00_delay-0.1s.png" id="3_ihiwq"]
[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="4_2rflv"] [ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="4_2rflv"]
[ext_resource type="AudioStream" uid="uid://blgk5pv3ydewn" path="res://sound/toc.mp3" id="4_ggc3w"]
[ext_resource type="Texture2D" uid="uid://borv8ayo6tunr" path="res://model/frame_01_delay-0.1s.png" id="4_rc3td"]
[ext_resource type="Texture2D" uid="uid://ck36fe4ol2luh" path="res://model/frame_02_delay-0.1s.png" id="5_vso06"]
[ext_resource type="Texture2D" uid="uid://bvpix8sqi8sm4" path="res://model/frame_03_delay-0.1s.png" id="6_b675y"]
[ext_resource type="Texture2D" uid="uid://cy6303a6p8a7k" path="res://model/frame_04_delay-0.1s.png" id="7_022vo"]
[ext_resource type="Texture2D" uid="uid://swf03offqtmw" path="res://model/frame_05_delay-0.1s.png" id="8_deir0"]
[ext_resource type="Texture2D" uid="uid://cbmkdbjywsnqe" path="res://model/frame_06_delay-0.1s.png" id="9_cj8kn"]
[ext_resource type="Texture2D" uid="uid://dc7cls6j0f2y3" path="res://model/frame_07_delay-0.1s.png" id="10_10n5i"]
[ext_resource type="Texture2D" uid="uid://dwixrqec6acr5" path="res://model/frame_08_delay-0.1s.png" id="11_opt5a"]
[ext_resource type="Texture2D" uid="uid://dpo88vuxdjqx3" path="res://model/frame_09_delay-0.1s.png" id="12_5rx3n"]
[ext_resource type="Texture2D" uid="uid://bkukqcnunks73" path="res://model/frame_10_delay-0.1s.png" id="13_ybmgl"]
[ext_resource type="Texture2D" uid="uid://ce0cpwn2a8mc7" path="res://model/frame_11_delay-0.1s.png" id="14_k3fhl"]
[ext_resource type="Texture2D" uid="uid://b4hliw16a3di0" path="res://model/frame_12_delay-0.1s.png" id="15_ck2ea"]
[ext_resource type="Texture2D" uid="uid://bg4lgbismwpgm" path="res://model/frame_13_delay-0.1s.png" id="16_h77sx"]
[ext_resource type="Texture2D" uid="uid://c637m8pidgjlh" path="res://model/frame_14_delay-0.1s.png" id="17_3fhg6"]
[ext_resource type="Texture2D" uid="uid://c1sjkarfjda64" path="res://model/frame_15_delay-0.1s.png" id="18_eiil4"]
[ext_resource type="Texture2D" uid="uid://bn3ymn1dyqdwx" path="res://model/frame_16_delay-0.1s.png" id="19_rkfgx"]
[ext_resource type="Texture2D" uid="uid://dex2ky42rkfbg" path="res://model/frame_17_delay-0.1s.png" id="20_g0u8b"]
[ext_resource type="Texture2D" uid="uid://drvspvx3dpe8u" path="res://model/frame_18_delay-0.1s.png" id="21_sgl1k"]
[ext_resource type="Texture2D" uid="uid://cggbun65n8uo6" path="res://model/frame_19_delay-0.1s.png" id="22_wdj54"]
[ext_resource type="Texture2D" uid="uid://ob3tlldg8ta" path="res://model/frame_20_delay-0.1s.png" id="23_0f8wp"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_uh8ys"] [sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_uh8ys"]
[sub_resource type="SpriteFrames" id="SpriteFrames_flbv2"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_ihiwq")
}, {
"duration": 1.0,
"texture": ExtResource("4_rc3td")
}, {
"duration": 1.0,
"texture": ExtResource("5_vso06")
}, {
"duration": 1.0,
"texture": ExtResource("6_b675y")
}, {
"duration": 1.0,
"texture": ExtResource("7_022vo")
}, {
"duration": 1.0,
"texture": ExtResource("8_deir0")
}, {
"duration": 1.0,
"texture": ExtResource("9_cj8kn")
}, {
"duration": 1.0,
"texture": ExtResource("10_10n5i")
}, {
"duration": 1.0,
"texture": ExtResource("11_opt5a")
}, {
"duration": 1.0,
"texture": ExtResource("12_5rx3n")
}, {
"duration": 1.0,
"texture": ExtResource("13_ybmgl")
}, {
"duration": 1.0,
"texture": ExtResource("14_k3fhl")
}, {
"duration": 1.0,
"texture": ExtResource("15_ck2ea")
}, {
"duration": 1.0,
"texture": ExtResource("16_h77sx")
}, {
"duration": 1.0,
"texture": ExtResource("17_3fhg6")
}, {
"duration": 1.0,
"texture": ExtResource("18_eiil4")
}, {
"duration": 1.0,
"texture": ExtResource("19_rkfgx")
}, {
"duration": 1.0,
"texture": ExtResource("20_g0u8b")
}, {
"duration": 1.0,
"texture": ExtResource("21_sgl1k")
}, {
"duration": 1.0,
"texture": ExtResource("22_wdj54")
}, {
"duration": 1.0,
"texture": ExtResource("23_0f8wp")
}],
"loop": true,
"name": &"default",
"speed": 15.0
}]
[sub_resource type="Animation" id="Animation_kla4h"] [sub_resource type="Animation" id="Animation_kla4h"]
length = 0.001 length = 0.001
tracks/0/type = "value" tracks/0/type = "value"
tracks/0/imported = false tracks/0/imported = false
tracks/0/enabled = true tracks/0/enabled = true
tracks/0/path = NodePath("CanvasLayer/Panel/back:texture") tracks/0/path = NodePath("door_view2/AudioStreamPlayer:playing")
tracks/0/interp = 1 tracks/0/interp = 1
tracks/0/loop_wrap = true tracks/0/loop_wrap = true
tracks/0/keys = { tracks/0/keys = {
"times": PackedFloat32Array(0), "times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1), "transitions": PackedFloat32Array(1),
"update": 1, "update": 1,
"values": [ExtResource("1_4srwi")] "values": [false]
} }
tracks/1/type = "value" tracks/1/type = "value"
tracks/1/imported = false tracks/1/imported = false
tracks/1/enabled = true tracks/1/enabled = true
tracks/1/path = NodePath("CanvasLayer/AudioStreamPlayer:playing") tracks/1/path = NodePath("door_view2/Panel/back:texture")
tracks/1/interp = 1 tracks/1/interp = 1
tracks/1/loop_wrap = true tracks/1/loop_wrap = true
tracks/1/keys = { tracks/1/keys = {
"times": PackedFloat32Array(0), "times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1), "transitions": PackedFloat32Array(1),
"update": 1, "update": 1,
"values": [false] "values": [ExtResource("1_4srwi")]
} }
tracks/2/type = "value" tracks/2/type = "value"
tracks/2/imported = false tracks/2/imported = false
tracks/2/enabled = true tracks/2/enabled = true
tracks/2/path = NodePath("CanvasLayer/Panel/mob:modulate") tracks/2/path = NodePath("door_view2/Panel/mob:modulate")
tracks/2/interp = 1 tracks/2/interp = 1
tracks/2/loop_wrap = true tracks/2/loop_wrap = true
tracks/2/keys = { tracks/2/keys = {
@@ -48,7 +141,7 @@ tracks/2/keys = {
tracks/3/type = "value" tracks/3/type = "value"
tracks/3/imported = false tracks/3/imported = false
tracks/3/enabled = true tracks/3/enabled = true
tracks/3/path = NodePath("CanvasLayer/VBoxContainer:visible") tracks/3/path = NodePath("door_view2/VBoxContainer:visible")
tracks/3/interp = 1 tracks/3/interp = 1
tracks/3/loop_wrap = true tracks/3/loop_wrap = true
tracks/3/keys = { tracks/3/keys = {
@@ -57,6 +150,18 @@ tracks/3/keys = {
"update": 1, "update": 1,
"values": [false] "values": [false]
} }
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("door_view2/AnimatedSprite2D:frame")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [15]
}
[sub_resource type="Animation" id="Animation_fd2lj"] [sub_resource type="Animation" id="Animation_fd2lj"]
resource_name = "enter" resource_name = "enter"
@@ -64,51 +169,63 @@ length = 3.0
tracks/0/type = "value" tracks/0/type = "value"
tracks/0/imported = false tracks/0/imported = false
tracks/0/enabled = true tracks/0/enabled = true
tracks/0/path = NodePath("CanvasLayer/Panel/back:texture") tracks/0/path = NodePath("door_view2/AudioStreamPlayer:playing")
tracks/0/interp = 1 tracks/0/interp = 1
tracks/0/loop_wrap = true tracks/0/loop_wrap = true
tracks/0/keys = { tracks/0/keys = {
"times": PackedFloat32Array(0, 1), "times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1, 1), "transitions": PackedFloat32Array(1),
"update": 1, "update": 1,
"values": [ExtResource("1_4srwi"), ExtResource("3_cdukw")] "values": [false]
} }
tracks/1/type = "value" tracks/1/type = "value"
tracks/1/imported = false tracks/1/imported = false
tracks/1/enabled = true tracks/1/enabled = true
tracks/1/path = NodePath("CanvasLayer/AudioStreamPlayer:playing") tracks/1/path = NodePath("door_view2/Panel/back:texture")
tracks/1/interp = 1 tracks/1/interp = 1
tracks/1/loop_wrap = true tracks/1/loop_wrap = true
tracks/1/keys = { tracks/1/keys = {
"times": PackedFloat32Array(0), "times": PackedFloat32Array(0, 0.966667),
"transitions": PackedFloat32Array(1), "transitions": PackedFloat32Array(1, 1),
"update": 1, "update": 1,
"values": [true] "values": [ExtResource("1_4srwi"), ExtResource("3_cdukw")]
} }
tracks/2/type = "value" tracks/2/type = "value"
tracks/2/imported = false tracks/2/imported = false
tracks/2/enabled = true tracks/2/enabled = true
tracks/2/path = NodePath("CanvasLayer/Panel/mob:modulate") tracks/2/path = NodePath("door_view2/Panel/mob:modulate")
tracks/2/interp = 1 tracks/2/interp = 1
tracks/2/loop_wrap = true tracks/2/loop_wrap = true
tracks/2/keys = { tracks/2/keys = {
"times": PackedFloat32Array(1.03333, 2), "times": PackedFloat32Array(0, 1, 2),
"transitions": PackedFloat32Array(1, 1), "transitions": PackedFloat32Array(1, 1, 1),
"update": 0, "update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)] "values": [Color(1, 1, 1, 0), Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
} }
tracks/3/type = "value" tracks/3/type = "value"
tracks/3/imported = false tracks/3/imported = false
tracks/3/enabled = true tracks/3/enabled = true
tracks/3/path = NodePath("CanvasLayer/VBoxContainer:visible") tracks/3/path = NodePath("door_view2/VBoxContainer:visible")
tracks/3/interp = 1 tracks/3/interp = 1
tracks/3/loop_wrap = true tracks/3/loop_wrap = true
tracks/3/keys = { tracks/3/keys = {
"times": PackedFloat32Array(3), "times": PackedFloat32Array(2.96667),
"transitions": PackedFloat32Array(1), "transitions": PackedFloat32Array(1),
"update": 1, "update": 1,
"values": [true] "values": [true]
} }
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("door_view2/AnimatedSprite2D:frame")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0.0333333),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_b36fu"] [sub_resource type="AnimationLibrary" id="AnimationLibrary_b36fu"]
_data = { _data = {
@@ -135,6 +252,12 @@ position = Vector2(134, 38)
texture = ExtResource("2_8ljyr") texture = ExtResource("2_8ljyr")
centered = false centered = false
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(239, 198)
sprite_frames = SubResource("SpriteFrames_flbv2")
autoplay = "default"
frame = 15
[node name="AnimationPlayer" type="AnimationPlayer" parent="."] [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
root_node = NodePath("../..") root_node = NodePath("../..")
libraries = { libraries = {
@@ -142,8 +265,10 @@ libraries = {
} }
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("4_ggc3w")
[node name="VBoxContainer" type="VBoxContainer" parent="."] [node name="VBoxContainer" type="VBoxContainer" parent="."]
visible = false
anchors_preset = 15 anchors_preset = 15
anchor_right = 1.0 anchor_right = 1.0
anchor_bottom = 1.0 anchor_bottom = 1.0

View File

@@ -0,0 +1,9 @@
[gd_scene load_steps=2 format=3 uid="uid://djhjv5q1dds1h"]
[ext_resource type="AudioStream" uid="uid://cidgnum8p2v15" path="res://sound/Silent.ogg" id="1_l24uh"]
[node name="music_principal" type="AudioStreamPlayer"]
process_mode = 3
stream = ExtResource("1_l24uh")
volume_db = -20.0
autoplay = true

View File

@@ -1,7 +1,8 @@
[gd_scene load_steps=33 format=3 uid="uid://4ubk6w44h4s2"] [gd_scene load_steps=34 format=3 uid="uid://4ubk6w44h4s2"]
[ext_resource type="Script" path="res://script/Player.cs" id="1_gmlsd"] [ext_resource type="Script" path="res://script/Player.cs" id="1_gmlsd"]
[ext_resource type="Texture2D" uid="uid://bo4q2rvn056p3" path="res://model/PatrickIdle1.png" id="2_w2lj6"] [ext_resource type="Texture2D" uid="uid://bo4q2rvn056p3" path="res://model/PatrickIdle1.png" id="2_w2lj6"]
[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="3_4cy24"]
[ext_resource type="PackedScene" uid="uid://co0u7xd45nxv1" path="res://scene/control/menu.tscn" id="3_6uvd0"] [ext_resource type="PackedScene" uid="uid://co0u7xd45nxv1" path="res://scene/control/menu.tscn" id="3_6uvd0"]
[ext_resource type="Texture2D" uid="uid://cgql6fnplgyeo" path="res://model/Glitch1.png" id="3_kao8s"] [ext_resource type="Texture2D" uid="uid://cgql6fnplgyeo" path="res://model/Glitch1.png" id="3_kao8s"]
[ext_resource type="PackedScene" uid="uid://bq2yxcm55h7n8" path="res://scene/control/door_view.tscn" id="4_0vwed"] [ext_resource type="PackedScene" uid="uid://bq2yxcm55h7n8" path="res://scene/control/door_view.tscn" id="4_0vwed"]
@@ -356,7 +357,7 @@ _data = {
"up": SubResource("Animation_7twwg") "up": SubResource("Animation_7twwg")
} }
[node name="CharacterBody2D" type="CharacterBody2D" node_paths=PackedStringArray("anim", "cam", "bar", "menu")] [node name="CharacterBody2D" type="CharacterBody2D" node_paths=PackedStringArray("anim", "cam", "bar", "menu", "time")]
position = Vector2(1, 1) position = Vector2(1, 1)
motion_mode = 1 motion_mode = 1
script = ExtResource("1_gmlsd") script = ExtResource("1_gmlsd")
@@ -366,6 +367,8 @@ anim = NodePath("anim")
cam = NodePath("Camera2D") cam = NodePath("Camera2D")
bar = NodePath("diabetmeter") bar = NodePath("diabetmeter")
menu = NodePath("Camera2D/menu") menu = NodePath("Camera2D/menu")
minute_part_second = 0.5
time = NodePath("time")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -2.5) position = Vector2(0, -2.5)
@@ -375,6 +378,21 @@ shape = SubResource("RectangleShape2D_2homw")
position = Vector2(2, 1) position = Vector2(2, 1)
texture = ExtResource("2_w2lj6") texture = ExtResource("2_w2lj6")
[node name="time" type="Label" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -25.0
offset_top = -118.0
offset_right = 21.0
offset_bottom = -90.0
grow_horizontal = 2
theme = ExtResource("3_4cy24")
theme_override_font_sizes/font_size = 26
text = "18:10"
horizontal_alignment = 1
vertical_alignment = 1
[node name="diabetmeter" type="TextureProgressBar" parent="."] [node name="diabetmeter" type="TextureProgressBar" parent="."]
texture_filter = 1 texture_filter = 1
anchors_preset = 15 anchors_preset = 15

View File

@@ -10,7 +10,10 @@ public partial class Player : CharacterBody2D
[Export] TextureProgressBar bar; [Export] TextureProgressBar bar;
[ExportGroup("controls")] [ExportGroup("controls")]
[Export] Control menu; [Export] Control menu;
[Export] float minute_part_second = 1;
[Export] Label time;
float minute;
int heure = 18;
@@ -35,6 +38,14 @@ public partial class Player : CharacterBody2D
} }
minute += minute_part_second * (float) delta;
if (minute >= 60)
{
minute = 0;
heure +=1;
}
UpdateTime();
Vector2 direction = Input.GetVector("left", "right", "up", "down"); Vector2 direction = Input.GetVector("left", "right", "up", "down");
direction = direction.Normalized(); direction = direction.Normalized();
@@ -85,4 +96,9 @@ public partial class Player : CharacterBody2D
Position = Position.Round(); Position = Position.Round();
} }
void UpdateTime()
{
time.Text = string.Format("{0:D2}:{1:D2}", heure, (int)Math.Floor(minute));
}
} }

BIN
sound/Silent.ogg Normal file

Binary file not shown.

19
sound/Silent.ogg.import Normal file
View File

@@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://cidgnum8p2v15"
path="res://.godot/imported/Silent.ogg-ff7a763f16ba646a410d2a7954d61a81.oggvorbisstr"
[deps]
source_file="res://sound/Silent.ogg"
dest_files=["res://.godot/imported/Silent.ogg-ff7a763f16ba646a410d2a7954d61a81.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4