From 1d59fdca740645d53ea09309a024b36aa8d86a06 Mon Sep 17 00:00:00 2001 From: Renarde-dev Date: Fri, 24 Jan 2025 22:40:11 +0100 Subject: [PATCH] Add new slime textures --- scenes/Room.tscn | 2 +- scenes/enemies/slime.tscn | 25 +++++++++++++------------ scripts/Instrument/balle.gd | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/scenes/Room.tscn b/scenes/Room.tscn index 50b44f5..4c62dba 100644 --- a/scenes/Room.tscn +++ b/scenes/Room.tscn @@ -32,7 +32,7 @@ texture = ExtResource("2_torsx") stretch_mode = 1 [node name="Player_Melodie" parent="." instance=ExtResource("1_cl1wt")] -scale = Vector2(4, 4) +scale = Vector2(3, 3) [node name="StaticBody2D" type="StaticBody2D" parent="." groups=["World_Border"]] collision_layer = 3 diff --git a/scenes/enemies/slime.tscn b/scenes/enemies/slime.tscn index 1ace833..0256059 100644 --- a/scenes/enemies/slime.tscn +++ b/scenes/enemies/slime.tscn @@ -1,18 +1,18 @@ [gd_scene load_steps=7 format=3 uid="uid://cyvqa6g64cw37"] [ext_resource type="Script" path="res://scenes/enemies/slime.gd" id="1_hnufy"] -[ext_resource type="Texture2D" uid="uid://ba14nw87lxef4" path="res://ressources/images/blob-1.png.png" id="1_n4mgf"] -[ext_resource type="Texture2D" uid="uid://cpge55gmdllmi" path="res://ressources/images/blob-2-4.png.png" id="2_w8gqg"] -[ext_resource type="Texture2D" uid="uid://bst1iwqgqmcvl" path="res://ressources/images/blob-3.png.png" id="3_pwpfc"] +[ext_resource type="Texture2D" uid="uid://c85d5krtd4nks" path="res://ressources/images/blob-1.png" id="2_f4wf2"] +[ext_resource type="Texture2D" uid="uid://c0b6d7551nbcm" path="res://ressources/images/blob-2-4.png" id="3_dyq42"] +[ext_resource type="Texture2D" uid="uid://2gqy3xv26df1" path="res://ressources/images/blob-3.png" id="4_wwwjt"] [sub_resource type="SpriteFrames" id="SpriteFrames_qfla8"] animations = [{ "frames": [{ "duration": 1.0, -"texture": ExtResource("1_n4mgf") +"texture": ExtResource("2_f4wf2") }, { "duration": 1.0, -"texture": ExtResource("2_w8gqg") +"texture": ExtResource("3_dyq42") }], "loop": false, "name": &"idle", @@ -20,16 +20,19 @@ animations = [{ }, { "frames": [{ "duration": 1.0, -"texture": ExtResource("1_n4mgf") +"texture": ExtResource("2_f4wf2") }, { "duration": 1.0, -"texture": ExtResource("2_w8gqg") +"texture": ExtResource("3_dyq42") }, { "duration": 1.0, -"texture": ExtResource("3_pwpfc") +"texture": ExtResource("4_wwwjt") }, { "duration": 1.0, -"texture": ExtResource("2_w8gqg") +"texture": ExtResource("3_dyq42") +}, { +"duration": 1.0, +"texture": ExtResource("2_f4wf2") }], "loop": true, "name": &"walk_down", @@ -45,11 +48,9 @@ collision_mask = 3 script = ExtResource("1_hnufy") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] -position = Vector2(-3, 12) +scale = Vector2(0.2, 0.2) sprite_frames = SubResource("SpriteFrames_qfla8") animation = &"idle" -frame = 1 -frame_progress = 1.0 [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_bokrm") diff --git a/scripts/Instrument/balle.gd b/scripts/Instrument/balle.gd index 0bbc40c..b0dbad0 100644 --- a/scripts/Instrument/balle.gd +++ b/scripts/Instrument/balle.gd @@ -1,6 +1,6 @@ extends Area2D -@export var speed: float = 300 # Définir la vitesse de la balle +@export var speed: float = 500 # Définir la vitesse de la balle @export var raycast: RayCast2D # Direction initiale du mouvement