From 585d6d787ef7461166ae916b8422c5130103af75 Mon Sep 17 00:00:00 2001 From: dukantic Date: Sat, 19 Oct 2024 17:51:07 +0200 Subject: [PATCH] je sais pas trop mais bcp --- model/frame_00_delay-0.1s.png.import | 34 +++ model/frame_01_delay-0.1s.png.import | 34 +++ model/frame_02_delay-0.1s.png.import | 34 +++ model/frame_03_delay-0.1s.png.import | 34 +++ model/frame_04_delay-0.1s.png.import | 34 +++ model/frame_05_delay-0.1s.png.import | 34 +++ model/frame_06_delay-0.1s.png.import | 34 +++ model/frame_07_delay-0.1s.png.import | 34 +++ model/frame_08_delay-0.1s.png.import | 34 +++ model/frame_09_delay-0.1s.png.import | 34 +++ model/frame_10_delay-0.1s.png.import | 34 +++ model/frame_11_delay-0.1s.png.import | 34 +++ model/frame_12_delay-0.1s.png.import | 34 +++ model/frame_13_delay-0.1s.png.import | 34 +++ model/frame_14_delay-0.1s.png.import | 34 +++ model/frame_15_delay-0.1s.png.import | 34 +++ model/frame_16_delay-0.1s.png.import | 34 +++ model/frame_17_delay-0.1s.png.import | 34 +++ model/frame_18_delay-0.1s.png.import | 34 +++ model/frame_19_delay-0.1s.png.import | 34 +++ model/frame_20_delay-0.1s.png.import | 34 +++ scene/city.tscn | 10 +- scene/control/door_view.tscn | 413 ++++++++++++++++++++++++++- scene/door.tscn | 9 +- scene/door_view_2.tscn | 175 ++++++++++++ scene/player.tscn | 4 +- script/Door.cs | 18 +- script/DoorView.cs | 46 +++ sound/back_menu2.png | Bin 0 -> 2796 bytes sound/back_menu2.png.import | 34 +++ themes/button.tres | 1 + 31 files changed, 1410 insertions(+), 14 deletions(-) create mode 100644 model/frame_00_delay-0.1s.png.import create mode 100644 model/frame_01_delay-0.1s.png.import create mode 100644 model/frame_02_delay-0.1s.png.import create mode 100644 model/frame_03_delay-0.1s.png.import create mode 100644 model/frame_04_delay-0.1s.png.import create mode 100644 model/frame_05_delay-0.1s.png.import create mode 100644 model/frame_06_delay-0.1s.png.import create mode 100644 model/frame_07_delay-0.1s.png.import create mode 100644 model/frame_08_delay-0.1s.png.import create mode 100644 model/frame_09_delay-0.1s.png.import create mode 100644 model/frame_10_delay-0.1s.png.import create mode 100644 model/frame_11_delay-0.1s.png.import create mode 100644 model/frame_12_delay-0.1s.png.import create mode 100644 model/frame_13_delay-0.1s.png.import create mode 100644 model/frame_14_delay-0.1s.png.import create mode 100644 model/frame_15_delay-0.1s.png.import create mode 100644 model/frame_16_delay-0.1s.png.import create mode 100644 model/frame_17_delay-0.1s.png.import create mode 100644 model/frame_18_delay-0.1s.png.import create mode 100644 model/frame_19_delay-0.1s.png.import create mode 100644 model/frame_20_delay-0.1s.png.import create mode 100644 scene/door_view_2.tscn create mode 100644 script/DoorView.cs create mode 100644 sound/back_menu2.png create mode 100644 sound/back_menu2.png.import diff --git a/model/frame_00_delay-0.1s.png.import b/model/frame_00_delay-0.1s.png.import new file mode 100644 index 0000000..42269df --- /dev/null +++ b/model/frame_00_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bo5rfykx4o7dj" +path="res://.godot/imported/frame_00_delay-0.1s.png-12840849b24869d30868e3efc8bfdbea.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_00_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_00_delay-0.1s.png-12840849b24869d30868e3efc8bfdbea.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_01_delay-0.1s.png.import b/model/frame_01_delay-0.1s.png.import new file mode 100644 index 0000000..ac7ac10 --- /dev/null +++ b/model/frame_01_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://borv8ayo6tunr" +path="res://.godot/imported/frame_01_delay-0.1s.png-7fe63bb1e0f4a5299ac8c58ed74869d1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_01_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_01_delay-0.1s.png-7fe63bb1e0f4a5299ac8c58ed74869d1.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_02_delay-0.1s.png.import b/model/frame_02_delay-0.1s.png.import new file mode 100644 index 0000000..e4b04ad --- /dev/null +++ b/model/frame_02_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ck36fe4ol2luh" +path="res://.godot/imported/frame_02_delay-0.1s.png-c4bdff46be7c130fe2710b5de9dcdaba.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_02_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_02_delay-0.1s.png-c4bdff46be7c130fe2710b5de9dcdaba.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_03_delay-0.1s.png.import b/model/frame_03_delay-0.1s.png.import new file mode 100644 index 0000000..cddbf47 --- /dev/null +++ b/model/frame_03_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bvpix8sqi8sm4" +path="res://.godot/imported/frame_03_delay-0.1s.png-acb38846483e8c90a88553065845a53b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_03_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_03_delay-0.1s.png-acb38846483e8c90a88553065845a53b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_04_delay-0.1s.png.import b/model/frame_04_delay-0.1s.png.import new file mode 100644 index 0000000..9b1858a --- /dev/null +++ b/model/frame_04_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cy6303a6p8a7k" +path="res://.godot/imported/frame_04_delay-0.1s.png-50202bc0901f483baa08245c09a194a2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_04_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_04_delay-0.1s.png-50202bc0901f483baa08245c09a194a2.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_05_delay-0.1s.png.import b/model/frame_05_delay-0.1s.png.import new file mode 100644 index 0000000..0cd9455 --- /dev/null +++ b/model/frame_05_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://swf03offqtmw" +path="res://.godot/imported/frame_05_delay-0.1s.png-a986669976eb22eaf04d8a8c14699af9.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_05_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_05_delay-0.1s.png-a986669976eb22eaf04d8a8c14699af9.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_06_delay-0.1s.png.import b/model/frame_06_delay-0.1s.png.import new file mode 100644 index 0000000..c096f05 --- /dev/null +++ b/model/frame_06_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cbmkdbjywsnqe" +path="res://.godot/imported/frame_06_delay-0.1s.png-03d95a16249d5f5ea8dc3da406f415d1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_06_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_06_delay-0.1s.png-03d95a16249d5f5ea8dc3da406f415d1.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_07_delay-0.1s.png.import b/model/frame_07_delay-0.1s.png.import new file mode 100644 index 0000000..23c41d9 --- /dev/null +++ b/model/frame_07_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dc7cls6j0f2y3" +path="res://.godot/imported/frame_07_delay-0.1s.png-80b6f1f0a389199ab68af040a4573530.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_07_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_07_delay-0.1s.png-80b6f1f0a389199ab68af040a4573530.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_08_delay-0.1s.png.import b/model/frame_08_delay-0.1s.png.import new file mode 100644 index 0000000..6859670 --- /dev/null +++ b/model/frame_08_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dwixrqec6acr5" +path="res://.godot/imported/frame_08_delay-0.1s.png-2f1cca0579e886d9ec5c031eb12486c0.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_08_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_08_delay-0.1s.png-2f1cca0579e886d9ec5c031eb12486c0.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_09_delay-0.1s.png.import b/model/frame_09_delay-0.1s.png.import new file mode 100644 index 0000000..0551529 --- /dev/null +++ b/model/frame_09_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dpo88vuxdjqx3" +path="res://.godot/imported/frame_09_delay-0.1s.png-3a0bc8195fe5245c110f2699720af62a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_09_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_09_delay-0.1s.png-3a0bc8195fe5245c110f2699720af62a.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_10_delay-0.1s.png.import b/model/frame_10_delay-0.1s.png.import new file mode 100644 index 0000000..2ac092e --- /dev/null +++ b/model/frame_10_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bkukqcnunks73" +path="res://.godot/imported/frame_10_delay-0.1s.png-3a605b0f2ec6b15f1dfc7f0113fca38e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_10_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_10_delay-0.1s.png-3a605b0f2ec6b15f1dfc7f0113fca38e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_11_delay-0.1s.png.import b/model/frame_11_delay-0.1s.png.import new file mode 100644 index 0000000..318adbf --- /dev/null +++ b/model/frame_11_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ce0cpwn2a8mc7" +path="res://.godot/imported/frame_11_delay-0.1s.png-622750dc3e09c66e5a341a34779b3f90.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_11_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_11_delay-0.1s.png-622750dc3e09c66e5a341a34779b3f90.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_12_delay-0.1s.png.import b/model/frame_12_delay-0.1s.png.import new file mode 100644 index 0000000..f0fbcf5 --- /dev/null +++ b/model/frame_12_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b4hliw16a3di0" +path="res://.godot/imported/frame_12_delay-0.1s.png-bcaacfb0c0d44cd7c5756d6dd6a7fd30.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_12_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_12_delay-0.1s.png-bcaacfb0c0d44cd7c5756d6dd6a7fd30.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_13_delay-0.1s.png.import b/model/frame_13_delay-0.1s.png.import new file mode 100644 index 0000000..0bba2d4 --- /dev/null +++ b/model/frame_13_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bg4lgbismwpgm" +path="res://.godot/imported/frame_13_delay-0.1s.png-634d2c3c4a42f9e5d2fb5512f30ff2df.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_13_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_13_delay-0.1s.png-634d2c3c4a42f9e5d2fb5512f30ff2df.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_14_delay-0.1s.png.import b/model/frame_14_delay-0.1s.png.import new file mode 100644 index 0000000..0b4bed6 --- /dev/null +++ b/model/frame_14_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c637m8pidgjlh" +path="res://.godot/imported/frame_14_delay-0.1s.png-ff99984423a8b0cb18954d9895590863.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_14_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_14_delay-0.1s.png-ff99984423a8b0cb18954d9895590863.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_15_delay-0.1s.png.import b/model/frame_15_delay-0.1s.png.import new file mode 100644 index 0000000..af47188 --- /dev/null +++ b/model/frame_15_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c1sjkarfjda64" +path="res://.godot/imported/frame_15_delay-0.1s.png-9f5d51788977fde1f2da55318cffda44.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_15_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_15_delay-0.1s.png-9f5d51788977fde1f2da55318cffda44.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_16_delay-0.1s.png.import b/model/frame_16_delay-0.1s.png.import new file mode 100644 index 0000000..f3bc68f --- /dev/null +++ b/model/frame_16_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bn3ymn1dyqdwx" +path="res://.godot/imported/frame_16_delay-0.1s.png-80e94fc3983985cdf70e047963691b1d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_16_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_16_delay-0.1s.png-80e94fc3983985cdf70e047963691b1d.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_17_delay-0.1s.png.import b/model/frame_17_delay-0.1s.png.import new file mode 100644 index 0000000..0d58750 --- /dev/null +++ b/model/frame_17_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dex2ky42rkfbg" +path="res://.godot/imported/frame_17_delay-0.1s.png-3601316b5d2edd3fac3d76b140e8bf7e.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_17_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_17_delay-0.1s.png-3601316b5d2edd3fac3d76b140e8bf7e.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_18_delay-0.1s.png.import b/model/frame_18_delay-0.1s.png.import new file mode 100644 index 0000000..e47942c --- /dev/null +++ b/model/frame_18_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://drvspvx3dpe8u" +path="res://.godot/imported/frame_18_delay-0.1s.png-9624f11ef542ee1957fe55b8af96ffed.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_18_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_18_delay-0.1s.png-9624f11ef542ee1957fe55b8af96ffed.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_19_delay-0.1s.png.import b/model/frame_19_delay-0.1s.png.import new file mode 100644 index 0000000..3e31849 --- /dev/null +++ b/model/frame_19_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cggbun65n8uo6" +path="res://.godot/imported/frame_19_delay-0.1s.png-6017e66a3318b3425d9da1a4216ae09f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_19_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_19_delay-0.1s.png-6017e66a3318b3425d9da1a4216ae09f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/model/frame_20_delay-0.1s.png.import b/model/frame_20_delay-0.1s.png.import new file mode 100644 index 0000000..b326d49 --- /dev/null +++ b/model/frame_20_delay-0.1s.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ob3tlldg8ta" +path="res://.godot/imported/frame_20_delay-0.1s.png-10661e4a5c82f09a0df36e6b640d01b7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://model/frame_20_delay-0.1s.png" +dest_files=["res://.godot/imported/frame_20_delay-0.1s.png-10661e4a5c82f09a0df36e6b640d01b7.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/scene/city.tscn b/scene/city.tscn index ef84628..84fb0a9 100644 --- a/scene/city.tscn +++ b/scene/city.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=13 format=4 uid="uid://1tfopbwug3ht"] +[gd_scene load_steps=14 format=4 uid="uid://1tfopbwug3ht"] [ext_resource type="Texture2D" uid="uid://dkg613gwabtd2" path="res://model/TileMap.png" id="1_w44h3"] [ext_resource type="Texture2D" uid="uid://bna4larududon" path="res://model/HouseTileMap.png" id="2_dofxf"] [ext_resource type="PackedScene" uid="uid://4ubk6w44h4s2" path="res://scene/player.tscn" id="2_nmm2d"] [ext_resource type="Texture2D" uid="uid://cfljnqr8b3gki" path="res://model/Light.png" id="4_vawiv"] +[ext_resource type="PackedScene" uid="uid://bmt2uv41t2dte" path="res://scene/door.tscn" id="5_rvft3"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_huo5x"] texture = ExtResource("1_w44h3") @@ -702,3 +703,10 @@ position = Vector2(372, 203) [node name="DirectionalLight2D" type="DirectionalLight2D" parent="."] color = Color(0.0499461, 0, 0.528618, 1) energy = 0.8 + +[node name="door" parent="." instance=ExtResource("5_rvft3")] +position = Vector2(333, 206) +text_char = "qwertyuiop" +answerA = "A" +answerB = "B" +answerA_good = true diff --git a/scene/control/door_view.tscn b/scene/control/door_view.tscn index 0c105f6..edb5f18 100644 --- a/scene/control/door_view.tscn +++ b/scene/control/door_view.tscn @@ -1,15 +1,416 @@ -[gd_scene load_steps=2 format=3 uid="uid://bq2yxcm55h7n8"] +[gd_scene load_steps=33 format=3 uid="uid://bq2yxcm55h7n8"] -[ext_resource type="Texture2D" uid="uid://dpqc1xv3cechw" path="res://model/House1Closed.jpg" id="1_rs1io"] +[ext_resource type="Script" path="res://script/DoorView.cs" id="1_nmul8"] +[ext_resource type="Texture2D" uid="uid://dpqc1xv3cechw" path="res://model/House1Closed.jpg" id="1_suqi6"] +[ext_resource type="Texture2D" uid="uid://b7dcgps5sedwl" path="res://model/House1Open.jpg" id="2_c5xhw"] +[ext_resource type="Texture2D" uid="uid://d0g144qe1ly7v" path="res://model/Guy1.png" id="3_b1cgq"] +[ext_resource type="Texture2D" uid="uid://bo5rfykx4o7dj" path="res://model/frame_00_delay-0.1s.png" id="4_xbfyi"] +[ext_resource type="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="5_50q8s"] +[ext_resource type="Texture2D" uid="uid://borv8ayo6tunr" path="res://model/frame_01_delay-0.1s.png" id="5_qi8gy"] +[ext_resource type="Texture2D" uid="uid://ck36fe4ol2luh" path="res://model/frame_02_delay-0.1s.png" id="6_r7ofc"] +[ext_resource type="Texture2D" uid="uid://bvpix8sqi8sm4" path="res://model/frame_03_delay-0.1s.png" id="7_18s6v"] +[ext_resource type="Texture2D" uid="uid://cy6303a6p8a7k" path="res://model/frame_04_delay-0.1s.png" id="8_joxva"] +[ext_resource type="Texture2D" uid="uid://swf03offqtmw" path="res://model/frame_05_delay-0.1s.png" id="9_0u0rh"] +[ext_resource type="Texture2D" uid="uid://cbmkdbjywsnqe" path="res://model/frame_06_delay-0.1s.png" id="10_l4x34"] +[ext_resource type="Texture2D" uid="uid://dc7cls6j0f2y3" path="res://model/frame_07_delay-0.1s.png" id="11_t3mjw"] +[ext_resource type="Texture2D" uid="uid://dwixrqec6acr5" path="res://model/frame_08_delay-0.1s.png" id="12_0pk2o"] +[ext_resource type="Texture2D" uid="uid://dpo88vuxdjqx3" path="res://model/frame_09_delay-0.1s.png" id="13_fjbga"] +[ext_resource type="Texture2D" uid="uid://bkukqcnunks73" path="res://model/frame_10_delay-0.1s.png" id="14_8drb8"] +[ext_resource type="Texture2D" uid="uid://ce0cpwn2a8mc7" path="res://model/frame_11_delay-0.1s.png" id="15_2248l"] +[ext_resource type="Texture2D" uid="uid://b4hliw16a3di0" path="res://model/frame_12_delay-0.1s.png" id="16_0yrtr"] +[ext_resource type="Texture2D" uid="uid://bg4lgbismwpgm" path="res://model/frame_13_delay-0.1s.png" id="17_qdp1t"] +[ext_resource type="Texture2D" uid="uid://c637m8pidgjlh" path="res://model/frame_14_delay-0.1s.png" id="18_4qpga"] +[ext_resource type="Texture2D" uid="uid://c1sjkarfjda64" path="res://model/frame_15_delay-0.1s.png" id="19_2ovmp"] +[ext_resource type="Texture2D" uid="uid://bn3ymn1dyqdwx" path="res://model/frame_16_delay-0.1s.png" id="20_uxtuq"] +[ext_resource type="Texture2D" uid="uid://dex2ky42rkfbg" path="res://model/frame_17_delay-0.1s.png" id="21_srb7y"] +[ext_resource type="Texture2D" uid="uid://drvspvx3dpe8u" path="res://model/frame_18_delay-0.1s.png" id="22_atju4"] +[ext_resource type="Texture2D" uid="uid://cggbun65n8uo6" path="res://model/frame_19_delay-0.1s.png" id="23_l4jpt"] +[ext_resource type="Texture2D" uid="uid://ob3tlldg8ta" path="res://model/frame_20_delay-0.1s.png" id="24_tjfip"] -[node name="door_view" type="Control"] +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_jooqt"] + +[sub_resource type="SpriteFrames" id="SpriteFrames_gtid6"] +animations = [{ +"frames": [{ +"duration": 1.0, +"texture": ExtResource("4_xbfyi") +}, { +"duration": 1.0, +"texture": ExtResource("5_qi8gy") +}, { +"duration": 1.0, +"texture": ExtResource("6_r7ofc") +}, { +"duration": 1.0, +"texture": ExtResource("7_18s6v") +}, { +"duration": 1.0, +"texture": ExtResource("8_joxva") +}, { +"duration": 1.0, +"texture": ExtResource("9_0u0rh") +}, { +"duration": 1.0, +"texture": ExtResource("10_l4x34") +}, { +"duration": 1.0, +"texture": ExtResource("11_t3mjw") +}, { +"duration": 1.0, +"texture": ExtResource("12_0pk2o") +}, { +"duration": 1.0, +"texture": ExtResource("13_fjbga") +}, { +"duration": 1.0, +"texture": ExtResource("14_8drb8") +}, { +"duration": 1.0, +"texture": ExtResource("15_2248l") +}, { +"duration": 1.0, +"texture": ExtResource("16_0yrtr") +}, { +"duration": 1.0, +"texture": ExtResource("17_qdp1t") +}, { +"duration": 1.0, +"texture": ExtResource("18_4qpga") +}, { +"duration": 1.0, +"texture": ExtResource("19_2ovmp") +}, { +"duration": 1.0, +"texture": ExtResource("20_uxtuq") +}, { +"duration": 1.0, +"texture": ExtResource("21_srb7y") +}, { +"duration": 1.0, +"texture": ExtResource("22_atju4") +}, { +"duration": 1.0, +"texture": ExtResource("23_l4jpt") +}, { +"duration": 1.0, +"texture": ExtResource("24_tjfip") +}], +"loop": true, +"name": &"default", +"speed": 15.0 +}] + +[sub_resource type="Animation" id="Animation_kla4h"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Panel/back:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("1_suqi6")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AudioStreamPlayer:playing") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("Trick:visible") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("Question:visible") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("Panel/mob:modulate") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Color(1, 1, 1, 1)] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("Panel/AnimatedSprite2D:visible") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/6/type = "value" +tracks/6/imported = false +tracks/6/enabled = true +tracks/6/path = NodePath("Panel/AnimatedSprite2D:frame") +tracks/6/interp = 1 +tracks/6/loop_wrap = true +tracks/6/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_fd2lj"] +resource_name = "enter" +length = 4.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Panel/back:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 2.26667), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [ExtResource("1_suqi6"), ExtResource("2_c5xhw")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("AudioStreamPlayer:playing") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("Trick:visible") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(3.83333), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("Panel/mob:modulate") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(2.3, 3.5), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)] +} +tracks/4/type = "value" +tracks/4/imported = false +tracks/4/enabled = true +tracks/4/path = NodePath("Panel/AnimatedSprite2D:visible") +tracks/4/interp = 1 +tracks/4/loop_wrap = true +tracks/4/keys = { +"times": PackedFloat32Array(0, 0.2, 1.5), +"transitions": PackedFloat32Array(1, 1, 1), +"update": 1, +"values": [false, true, false] +} +tracks/5/type = "value" +tracks/5/imported = false +tracks/5/enabled = true +tracks/5/path = NodePath("Panel/AnimatedSprite2D:frame") +tracks/5/interp = 1 +tracks/5/loop_wrap = true +tracks/5/keys = { +"times": PackedFloat32Array(0.2), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [0] +} + +[sub_resource type="Animation" id="Animation_ewnqr"] +resource_name = "question" +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("Trick:visible") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("Question:visible") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_b36fu"] +_data = { +"RESET": SubResource("Animation_kla4h"), +"enter": SubResource("Animation_fd2lj"), +"question": SubResource("Animation_ewnqr") +} + +[node name="door_view" type="Control" node_paths=PackedStringArray("mob", "anim", "text_mob", "butA", "butB")] +process_mode = 3 layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 +script = ExtResource("1_nmul8") +mob = NodePath("Panel/mob") +anim = NodePath("AnimationPlayer") +text_mob = NodePath("Question/Label") +butA = NodePath("Question/Button") +butB = NodePath("Question/Button2") -[node name="House1Closed" type="Sprite2D" parent="."] -position = Vector2(200, 150) -texture = ExtResource("1_rs1io") +[node name="Panel" type="Panel" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxEmpty_jooqt") + +[node name="back" type="Sprite2D" parent="Panel"] +texture = ExtResource("1_suqi6") + +[node name="mob" type="Sprite2D" parent="Panel"] +position = Vector2(-56, -101) +texture = ExtResource("3_b1cgq") +centered = false + +[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Panel"] +position = Vector2(56, 39) +sprite_frames = SubResource("SpriteFrames_gtid6") +autoplay = "default" + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +libraries = { +"": SubResource("AnimationLibrary_b36fu") +} + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] + +[node name="Trick" type="VBoxContainer" parent="."] +visible = false +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_top = 155.0 +offset_bottom = -2.0 +grow_horizontal = 2 +grow_vertical = 2 +metadata/_edit_use_anchors_ = true + +[node name="Label" type="Label" parent="Trick"] +custom_minimum_size = Vector2(263.595, 79.17) +layout_mode = 2 +theme = ExtResource("5_50q8s") +theme_override_font_sizes/font_size = 18 +text = "Trick or treat salut a tous les amis moi c'est davide la farge pokemon" +autowrap_mode = 2 + +[node name="Button" type="Button" parent="Trick"] +custom_minimum_size = Vector2(128.58, 0) +layout_mode = 2 +theme = ExtResource("5_50q8s") +theme_override_font_sizes/font_size = 18 +text = "Trick" + +[node name="Button2" type="Button" parent="Trick"] +layout_mode = 2 +theme = ExtResource("5_50q8s") +theme_override_font_sizes/font_size = 18 +text = "Treat +" + +[node name="Question" type="VBoxContainer" parent="."] +visible = false +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_top = 155.0 +offset_bottom = -2.0 +grow_horizontal = 2 +grow_vertical = 2 +metadata/_edit_use_anchors_ = true + +[node name="Label" type="Label" parent="Question"] +custom_minimum_size = Vector2(263.595, 79.17) +layout_mode = 2 +theme = ExtResource("5_50q8s") +theme_override_font_sizes/font_size = 18 +text = "Trick or treat salut a tous les amis moi c'est davide la farge pokemon" +autowrap_mode = 2 + +[node name="Button" type="Button" parent="Question"] +custom_minimum_size = Vector2(128.58, 0) +layout_mode = 2 +theme = ExtResource("5_50q8s") +theme_override_font_sizes/font_size = 18 +text = "Trick" + +[node name="Button2" type="Button" parent="Question"] +layout_mode = 2 +theme = ExtResource("5_50q8s") +theme_override_font_sizes/font_size = 18 +text = "Treat +" + +[connection signal="pressed" from="Trick/Button2" to="." method="TreatPressed"] +[connection signal="pressed" from="Question/Button2" to="." method="TreatPressed"] diff --git a/scene/door.tscn b/scene/door.tscn index 29ae4aa..dd42a26 100644 --- a/scene/door.tscn +++ b/scene/door.tscn @@ -1,17 +1,24 @@ -[gd_scene load_steps=3 format=3 uid="uid://bmt2uv41t2dte"] +[gd_scene load_steps=5 format=3 uid="uid://bmt2uv41t2dte"] [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://cx1w76xqxqe11" path="res://icon.svg" id="2_f3iv6"] [sub_resource type="CircleShape2D" id="CircleShape2D_aityf"] radius = 32.0 [node name="door" type="Node2D"] script = ExtResource("1_xvwbq") +image_mob = ExtResource("2_5xjot") [node name="Area2D" type="Area2D" parent="."] [node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] 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_exited" from="Area2D" to="." method="BodyExited"] diff --git a/scene/door_view_2.tscn b/scene/door_view_2.tscn new file mode 100644 index 0000000..ec80351 --- /dev/null +++ b/scene/door_view_2.tscn @@ -0,0 +1,175 @@ +[gd_scene load_steps=9 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://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="Theme" uid="uid://depo4fa5p8k8m" path="res://themes/button.tres" id="4_2rflv"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_uh8ys"] + +[sub_resource type="Animation" id="Animation_kla4h"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("CanvasLayer/Panel/back:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [ExtResource("1_4srwi")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("CanvasLayer/AudioStreamPlayer:playing") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("CanvasLayer/Panel/mob:modulate") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Color(1, 1, 1, 1)] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("CanvasLayer/VBoxContainer:visible") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [false] +} + +[sub_resource type="Animation" id="Animation_fd2lj"] +resource_name = "enter" +length = 3.0 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath("CanvasLayer/Panel/back:texture") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 1, +"values": [ExtResource("1_4srwi"), ExtResource("3_cdukw")] +} +tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true +tracks/1/path = NodePath("CanvasLayer/AudioStreamPlayer:playing") +tracks/1/interp = 1 +tracks/1/loop_wrap = true +tracks/1/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} +tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true +tracks/2/path = NodePath("CanvasLayer/Panel/mob:modulate") +tracks/2/interp = 1 +tracks/2/loop_wrap = true +tracks/2/keys = { +"times": PackedFloat32Array(1.03333, 2), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)] +} +tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true +tracks/3/path = NodePath("CanvasLayer/VBoxContainer:visible") +tracks/3/interp = 1 +tracks/3/loop_wrap = true +tracks/3/keys = { +"times": PackedFloat32Array(3), +"transitions": PackedFloat32Array(1), +"update": 1, +"values": [true] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_b36fu"] +_data = { +"RESET": SubResource("Animation_kla4h"), +"enter": SubResource("Animation_fd2lj") +} + +[node name="door_view2" type="CanvasLayer"] + +[node name="Panel" type="Panel" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_styles/panel = SubResource("StyleBoxEmpty_uh8ys") + +[node name="back" type="Sprite2D" parent="Panel"] +texture = ExtResource("1_4srwi") +centered = false + +[node name="mob" type="Sprite2D" parent="Panel"] +position = Vector2(134, 38) +texture = ExtResource("2_8ljyr") +centered = false + +[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +root_node = NodePath("../..") +libraries = { +"": SubResource("AnimationLibrary_b36fu") +} + +[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_top = 155.0 +offset_bottom = -2.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="Label" type="Label" parent="VBoxContainer"] +custom_minimum_size = Vector2(263.595, 79.17) +layout_mode = 2 +theme = ExtResource("4_2rflv") +theme_override_font_sizes/font_size = 18 +text = "Trick or treat salut a tous les amis moi c'est davide la farge pokemon" +autowrap_mode = 2 + +[node name="Button" type="Button" parent="VBoxContainer"] +custom_minimum_size = Vector2(128.58, 0) +layout_mode = 2 +theme = ExtResource("4_2rflv") +theme_override_font_sizes/font_size = 18 +text = "Trick" + +[node name="Button2" type="Button" parent="VBoxContainer"] +layout_mode = 2 +theme = ExtResource("4_2rflv") +theme_override_font_sizes/font_size = 18 +text = "Treat +" diff --git a/scene/player.tscn b/scene/player.tscn index 8eb4827..a7315db 100644 --- a/scene/player.tscn +++ b/scene/player.tscn @@ -372,6 +372,7 @@ position = Vector2(2, 1) texture = ExtResource("2_w2lj6") [node name="Camera2D" type="Camera2D" parent="."] +process_mode = 3 limit_smoothed = true position_smoothing_enabled = true rotation_smoothing_speed = 7.0 @@ -386,6 +387,7 @@ scale = Vector2(0.334, 0.334) anim = NodePath("../../anim") [node name="door_view" parent="Camera2D" instance=ExtResource("4_0vwed")] +visible = false [node name="CanvasLayer" type="CanvasLayer" parent="Camera2D"] @@ -407,5 +409,3 @@ libraries = { "": SubResource("AnimationLibrary_1e41b") } autoplay = "idle" - -[node name="PointLight2D" type="PointLight2D" parent="."] diff --git a/script/Door.cs b/script/Door.cs index 9552688..927ef4e 100644 --- a/script/Door.cs +++ b/script/Door.cs @@ -8,10 +8,12 @@ public partial class Door : Node2D [Export] string answerA; [Export] string answerB; [Export] bool answerA_good; + + [ExportGroup("image")] + [Export] Texture2D image_mob; bool player_in = false; - public override void _Ready() - { - } + CharacterBody2D player; + // Called every frame. 'delta' is the elapsed time since the previous frame. public override void _Process(double delta) @@ -19,14 +21,22 @@ public partial class Door : Node2D if(player_in && Input.IsActionPressed("interact")) { + Control view = player.GetNode("Camera2D/door_view"); + view.Set("text_char", text_char); + view.Set("answerA", answerA); + view.Set("answerB", answerB); + view.Set("answerA_good", answerA_good); + view.Set("mobTex", image_mob); + view.Call("start"); } } - public void BodyEntered(Node body) + public void BodyEntered(Node2D body) { if(body is CharacterBody2D) { + player = (CharacterBody2D)body; player_in = true; } } diff --git a/script/DoorView.cs b/script/DoorView.cs new file mode 100644 index 0000000..8388548 --- /dev/null +++ b/script/DoorView.cs @@ -0,0 +1,46 @@ +using Godot; +using System; +using System.Diagnostics; + +public partial class DoorView : Control +{ + [Export] Sprite2D mob; + [Export] AnimationPlayer anim; + Texture2D mobTex {get; set;} + + + string text_char{get; set;} + string answerA{get; set;} + string answerB{get; set;} + bool answerA_good {get; set;} + + [Export] Label text_mob; + [Export] Button butA; + [Export] Button butB; + // Called when the node enters the scene tree for the first time. + public void start() + { + GetParent().PositionSmoothingEnabled = false; + GetTree().Paused = true; + Visible = true; + mob.Texture = mobTex; + anim.Play("enter"); + } + + public void stop() + { + GetParent().PositionSmoothingEnabled = false; + GetTree().Paused = false; + Visible = false; + anim.Play("RESET"); + } + + public void TreatPressed() + { + anim.Play("question"); + text_mob.Text = text_char; + butA.Text = answerA; + butB.Text = answerB; + } + +} diff --git a/sound/back_menu2.png b/sound/back_menu2.png new file mode 100644 index 0000000000000000000000000000000000000000..82b1ecfbef193d496c318d4069e53a2d68d1dcd6 GIT binary patch literal 2796 zcmeAS@N?(olHy`uVBq!ia0y~yV4MKNIvi|3k+<8Q9s*LF1s;*b3=De8Ak0{?)V_>? zfoqo`vNI8wXHGfs?}{sn`W% z1XB_-3s7hR3yaD|OC^x0j2l6E1w5FTCf$$`1nO^SxB=43p~A@MnbQZ-@8FOF(#tZb zp+UvW9i(4D!3^voPX`B~*~%dO0s_*b&KV7z(X=y~vqsCE(NcM|k{GQ*M;jQ!p!s!x Z-*y%Y(^iT2=fLJGgQu&X%Q~loCIBCvL3IEC literal 0 HcmV?d00001 diff --git a/sound/back_menu2.png.import b/sound/back_menu2.png.import new file mode 100644 index 0000000..1b06e9d --- /dev/null +++ b/sound/back_menu2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c5luwi0ekq5he" +path="res://.godot/imported/back_menu2.png-ce7974e2e9793729e43fcf095529a482.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sound/back_menu2.png" +dest_files=["res://.godot/imported/back_menu2.png-ce7974e2e9793729e43fcf095529a482.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/themes/button.tres b/themes/button.tres index e1239db..5c460c0 100644 --- a/themes/button.tres +++ b/themes/button.tres @@ -60,6 +60,7 @@ border_width_bottom = 2 corner_detail = 5 [resource] +default_font = ExtResource("1_r1ivl") Button/colors/font_color = Color(0.875, 0.875, 0.875, 1) Button/colors/font_disabled_color = Color(0.875, 0.875, 0.875, 0.5) Button/colors/font_focus_color = Color(0.95, 0.95, 0.95, 1)