Init Tambour

This commit is contained in:
Elouan 2025-01-24 18:45:09 +01:00
parent 5cf819a4ba
commit b5a9a54f94
15 changed files with 370 additions and 21 deletions

View file

@ -1,15 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://btpp8l4efhrmj"]
[ext_resource type="Script" path="res://scripts/Instrument/balle.gd" id="1_4kd3w"]
[ext_resource type="Texture2D" uid="uid://csbrejwjfkspr" path="res://ressources/images/note1.png" id="1_qx664"]
[ext_resource type="Script" path="res://scripts/Instrument/balle.gd" id="1_mw8yb"]
[ext_resource type="Texture2D" uid="uid://csbrejwjfkspr" path="res://ressources/images/note1.png" id="2_xpv2h"]
[node name="Balle1" type="CharacterBody2D" node_paths=PackedStringArray("raycast")]
script = ExtResource("1_4kd3w")
script = ExtResource("1_mw8yb")
raycast = NodePath("RayCast2D")
[node name="Sprite2D" type="Sprite2D" parent="."]
rotation = 3.14159
texture = ExtResource("1_qx664")
texture = ExtResource("2_xpv2h")
[node name="RayCast2D" type="RayCast2D" parent="."]
position = Vector2(0, -7)

View file

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://crpjmum8m2m1b"]
[ext_resource type="Script" path="res://scripts/Instrument/balle.gd" id="1_gf62f"]
[ext_resource type="Texture2D" uid="uid://1xayae6jyuge" path="res://ressources/images/note2.png" id="2_5005k"]
[node name="Balle1" type="CharacterBody2D" node_paths=PackedStringArray("raycast")]
script = ExtResource("1_gf62f")
raycast = NodePath("RayCast2D")
[node name="Sprite2D" type="Sprite2D" parent="."]
rotation = 3.14159
texture = ExtResource("2_5005k")
[node name="RayCast2D" type="RayCast2D" parent="."]
position = Vector2(0, -7)
target_position = Vector2(0, 15)

View file

@ -0,0 +1,16 @@
[gd_scene load_steps=3 format=3 uid="uid://j4j8mg7jhuwy"]
[ext_resource type="Script" path="res://scripts/Instrument/balle.gd" id="1_7dxcl"]
[ext_resource type="Texture2D" uid="uid://cq5j2fb07d7f8" path="res://ressources/images/notes3.svg" id="2_gx4yt"]
[node name="Balle1" type="CharacterBody2D" node_paths=PackedStringArray("raycast")]
script = ExtResource("1_7dxcl")
raycast = NodePath("RayCast2D")
[node name="Sprite2D" type="Sprite2D" parent="."]
rotation = 3.14159
texture = ExtResource("2_gx4yt")
[node name="RayCast2D" type="RayCast2D" parent="."]
position = Vector2(0, -7)
target_position = Vector2(0, 15)

19
scenes/attaques/Onde.tscn Normal file
View file

@ -0,0 +1,19 @@
[gd_scene load_steps=4 format=3 uid="uid://y2j5qtyg4vt3"]
[ext_resource type="Script" path="res://scripts/Instrument/onde.gd" id="1_6377h"]
[ext_resource type="Texture2D" uid="uid://bq2gg8sxvwth2" path="res://ressources/images/ronde tambour.png.png" id="1_oawub"]
[sub_resource type="CircleShape2D" id="CircleShape2D_r81ru"]
radius = 125.575
[node name="Onde" type="CharacterBody2D"]
collision_layer = 2
collision_mask = 2
script = ExtResource("1_6377h")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(2.5, 2.5)
texture = ExtResource("1_oawub")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_r81ru")