From 205879138802ac49dbda60b61ebff25a8853d6cc Mon Sep 17 00:00:00 2001 From: Manal Date: Sun, 28 Jan 2024 18:31:44 +0100 Subject: [PATCH] ajout robot --- ressources/assets/HotBots/green.png | 3 ++ ressources/assets/HotBots/green.png.import | 34 ++++++++++++++ ressources/assets/HotBots/green_bar.png | 3 ++ .../assets/HotBots/green_bar.png.import | 34 ++++++++++++++ ressources/assets/HotBots/red_bar.png | 3 ++ ressources/assets/HotBots/red_bar.png.import | 34 ++++++++++++++ ressources/assets/HotBots/red_ph.png | 3 ++ ressources/assets/HotBots/red_ph.png.import | 34 ++++++++++++++ .../assets/NormalAds/PosterCrab.png.import | 34 ++++++++++++++ .../assets/NormalAds/PosterCrab2.png.import | 34 ++++++++++++++ .../assets/NormalAds/PosterMeow.png.import | 34 ++++++++++++++ .../assets/NormalAds/PosterMeow2.png.import | 34 ++++++++++++++ scenes/game/ads/Ads_sexy_robot.tscn | 45 +++++++++++++++++++ scripts/ads/Ads_sexy_robot.gd | 19 ++++++++ 14 files changed, 348 insertions(+) create mode 100644 ressources/assets/HotBots/green.png create mode 100644 ressources/assets/HotBots/green.png.import create mode 100644 ressources/assets/HotBots/green_bar.png create mode 100644 ressources/assets/HotBots/green_bar.png.import create mode 100644 ressources/assets/HotBots/red_bar.png create mode 100644 ressources/assets/HotBots/red_bar.png.import create mode 100644 ressources/assets/HotBots/red_ph.png create mode 100644 ressources/assets/HotBots/red_ph.png.import create mode 100644 ressources/assets/NormalAds/PosterCrab.png.import create mode 100644 ressources/assets/NormalAds/PosterCrab2.png.import create mode 100644 ressources/assets/NormalAds/PosterMeow.png.import create mode 100644 ressources/assets/NormalAds/PosterMeow2.png.import create mode 100644 scenes/game/ads/Ads_sexy_robot.tscn create mode 100644 scripts/ads/Ads_sexy_robot.gd diff --git a/ressources/assets/HotBots/green.png b/ressources/assets/HotBots/green.png new file mode 100644 index 0000000..e0d5bdf --- /dev/null +++ b/ressources/assets/HotBots/green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4503bef1f773f04bd9e5687f09921bcac83be8044f5d22df903e2f7052aaf6a0 +size 1083 diff --git a/ressources/assets/HotBots/green.png.import b/ressources/assets/HotBots/green.png.import new file mode 100644 index 0000000..6a28190 --- /dev/null +++ b/ressources/assets/HotBots/green.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://1ykh1pt5osw6" +path="res://.godot/imported/green.png-037b632b6f555d97819d975c80a3d2b5.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/HotBots/green.png" +dest_files=["res://.godot/imported/green.png-037b632b6f555d97819d975c80a3d2b5.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/ressources/assets/HotBots/green_bar.png b/ressources/assets/HotBots/green_bar.png new file mode 100644 index 0000000..7d9f320 --- /dev/null +++ b/ressources/assets/HotBots/green_bar.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:173c9d89cad6a1b4f7bcc58f12308704dcc39f88a1d225df5c4dde4dd3cb3022 +size 1529 diff --git a/ressources/assets/HotBots/green_bar.png.import b/ressources/assets/HotBots/green_bar.png.import new file mode 100644 index 0000000..0f71f5c --- /dev/null +++ b/ressources/assets/HotBots/green_bar.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://yyj0dmf438qh" +path="res://.godot/imported/green_bar.png-e02c3cfe037ecfddf1ed73e18527d0ec.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/HotBots/green_bar.png" +dest_files=["res://.godot/imported/green_bar.png-e02c3cfe037ecfddf1ed73e18527d0ec.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/ressources/assets/HotBots/red_bar.png b/ressources/assets/HotBots/red_bar.png new file mode 100644 index 0000000..ddd7ce1 --- /dev/null +++ b/ressources/assets/HotBots/red_bar.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:788ad68240a4dab888bdaba0c3751160a354b2fd7064683015ddd3f9de39a8be +size 1525 diff --git a/ressources/assets/HotBots/red_bar.png.import b/ressources/assets/HotBots/red_bar.png.import new file mode 100644 index 0000000..f16cd72 --- /dev/null +++ b/ressources/assets/HotBots/red_bar.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://ep0sdrko1t76" +path="res://.godot/imported/red_bar.png-bc294d774105912ba8c31ea7e86dd5fe.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/HotBots/red_bar.png" +dest_files=["res://.godot/imported/red_bar.png-bc294d774105912ba8c31ea7e86dd5fe.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/ressources/assets/HotBots/red_ph.png b/ressources/assets/HotBots/red_ph.png new file mode 100644 index 0000000..5767f00 --- /dev/null +++ b/ressources/assets/HotBots/red_ph.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61438edd3f3de0c04672308a0f723d7e536c51e6855334431e0ec596ac1ccbe6 +size 1188 diff --git a/ressources/assets/HotBots/red_ph.png.import b/ressources/assets/HotBots/red_ph.png.import new file mode 100644 index 0000000..41da70a --- /dev/null +++ b/ressources/assets/HotBots/red_ph.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bj1p6t1pf51tj" +path="res://.godot/imported/red_ph.png-3882fc78f42106aed0e61c2fcfec7568.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/HotBots/red_ph.png" +dest_files=["res://.godot/imported/red_ph.png-3882fc78f42106aed0e61c2fcfec7568.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/ressources/assets/NormalAds/PosterCrab.png.import b/ressources/assets/NormalAds/PosterCrab.png.import new file mode 100644 index 0000000..26a87c3 --- /dev/null +++ b/ressources/assets/NormalAds/PosterCrab.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bj220xvakv0vg" +path="res://.godot/imported/PosterCrab.png-4f2deb7b5e96bb78ab1776966fdd4454.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/NormalAds/PosterCrab.png" +dest_files=["res://.godot/imported/PosterCrab.png-4f2deb7b5e96bb78ab1776966fdd4454.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/ressources/assets/NormalAds/PosterCrab2.png.import b/ressources/assets/NormalAds/PosterCrab2.png.import new file mode 100644 index 0000000..74e7347 --- /dev/null +++ b/ressources/assets/NormalAds/PosterCrab2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b7n17df676wmk" +path="res://.godot/imported/PosterCrab2.png-c5792da168046de3d551bb3ca9c8ad37.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/NormalAds/PosterCrab2.png" +dest_files=["res://.godot/imported/PosterCrab2.png-c5792da168046de3d551bb3ca9c8ad37.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/ressources/assets/NormalAds/PosterMeow.png.import b/ressources/assets/NormalAds/PosterMeow.png.import new file mode 100644 index 0000000..ee56a7f --- /dev/null +++ b/ressources/assets/NormalAds/PosterMeow.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://tjo4x8n8c77w" +path="res://.godot/imported/PosterMeow.png-206e72ea44849aad9bdab0eb84a17ca2.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/NormalAds/PosterMeow.png" +dest_files=["res://.godot/imported/PosterMeow.png-206e72ea44849aad9bdab0eb84a17ca2.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/ressources/assets/NormalAds/PosterMeow2.png.import b/ressources/assets/NormalAds/PosterMeow2.png.import new file mode 100644 index 0000000..f6ac8d3 --- /dev/null +++ b/ressources/assets/NormalAds/PosterMeow2.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dgt01j5wofns" +path="res://.godot/imported/PosterMeow2.png-888588100457b13c579d8d00c4a25eea.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://ressources/assets/NormalAds/PosterMeow2.png" +dest_files=["res://.godot/imported/PosterMeow2.png-888588100457b13c579d8d00c4a25eea.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/scenes/game/ads/Ads_sexy_robot.tscn b/scenes/game/ads/Ads_sexy_robot.tscn new file mode 100644 index 0000000..13b50c1 --- /dev/null +++ b/scenes/game/ads/Ads_sexy_robot.tscn @@ -0,0 +1,45 @@ +[gd_scene load_steps=8 format=3 uid="uid://cyxifateppwnk"] + +[ext_resource type="PackedScene" uid="uid://n06gkookqeml" path="res://scenes/game/windows/Ads.tscn" id="1_g6iem"] +[ext_resource type="Script" path="res://scripts/ads/Ads_sexy_robot.gd" id="2_17d4p"] +[ext_resource type="Texture2D" uid="uid://cmtwstnuggl05" path="res://ressources/assets/HotBots/HotBotsAround.png" id="8_buqmw"] +[ext_resource type="Texture2D" uid="uid://bj1p6t1pf51tj" path="res://ressources/assets/HotBots/red_ph.png" id="9_on2xk"] +[ext_resource type="Texture2D" uid="uid://1ykh1pt5osw6" path="res://ressources/assets/HotBots/green.png" id="10_txcpx"] + +[sub_resource type="StyleBoxLine" id="StyleBoxLine_devma"] +color = Color(0, 0.545098, 0, 1) +thickness = 20 + +[sub_resource type="StyleBoxLine" id="StyleBoxLine_xlpfw"] +color = Color(0.823529, 0, 0, 1) +thickness = 20 + +[node name="Windows" instance=ExtResource("1_g6iem")] +script = ExtResource("2_17d4p") + +[node name="Panel" parent="." index="0"] +offset_right = -19.0 +offset_bottom = 57.0 + +[node name="Panel2" parent="." index="1"] +offset_right = -28.0 + +[node name="HotBotsAround" type="Sprite2D" parent="Panel2" index="2"] +position = Vector2(230.625, 245.5) +scale = Vector2(0.390625, 0.409375) +texture = ExtResource("8_buqmw") + +[node name="HSlider" type="HSlider" parent="." index="2"] +offset_left = 56.0 +offset_top = 361.0 +offset_right = 432.0 +offset_bottom = 439.0 +theme_override_constants/center_grabber = -5 +theme_override_constants/grabber_offset = 1 +theme_override_icons/grabber = ExtResource("9_on2xk") +theme_override_icons/grabber_highlight = ExtResource("10_txcpx") +theme_override_icons/grabber_disabled = ExtResource("9_on2xk") +theme_override_styles/slider = SubResource("StyleBoxLine_devma") +theme_override_styles/grabber_area_highlight = SubResource("StyleBoxLine_xlpfw") + +[connection signal="value_changed" from="HSlider" to="." method="_on_h_slider_value_changed"] diff --git a/scripts/ads/Ads_sexy_robot.gd b/scripts/ads/Ads_sexy_robot.gd new file mode 100644 index 0000000..e4657c1 --- /dev/null +++ b/scripts/ads/Ads_sexy_robot.gd @@ -0,0 +1,19 @@ +extends "res://scripts/ads/ads_default.gd" + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +func exit_condition(): + return condition + +func _on_h_slider_value_changed(value): + print(value) + if (value > 98): + condition = true +