gameboy manque juste des texture et leur animation

This commit is contained in:
Dukantic
2024-10-25 10:53:21 +02:00
parent d784b0ef85
commit a110c15271
15 changed files with 614 additions and 11 deletions

View File

@@ -1,15 +1,202 @@
[gd_scene load_steps=6 format=3 uid="uid://bj1ita42m6vj5"]
[gd_scene load_steps=17 format=3 uid="uid://bj1ita42m6vj5"]
[ext_resource type="Texture2D" uid="uid://blkdbhu6usvic" path="res://model/GameConsole.png" id="1_1xnas"]
[ext_resource type="Script" path="res://script/Gameboy.cs" id="1_8q5hj"]
[ext_resource type="Texture2D" uid="uid://uudw2vydoal1" path="res://model/GCMenu.png" id="2_06g1x"]
[ext_resource type="Texture2D" uid="uid://bf4apksygpavq" path="res://model/Boss1Phase1.png" id="4_4qacm"]
[ext_resource type="Theme" uid="uid://547aer6bl6w8" path="res://themes/theme_buttons_gameboy.tres" id="4_a5nt6"]
[ext_resource type="Texture2D" uid="uid://ddtdf5ipblr61" path="res://model/Boss1Phase2.png" id="6_45a70"]
[ext_resource type="Theme" uid="uid://d0wymiuig18m3" path="res://themes/label.tres" id="6_pwgdt"]
[ext_resource type="Texture2D" uid="uid://jckl6jmf3f5k" path="res://model/Boss2Phase1.png" id="7_qjgmv"]
[ext_resource type="Texture2D" uid="uid://b0qlf56ngggfx" path="res://model/Boss2Phase2.png" id="8_n7m7p"]
[ext_resource type="Texture2D" uid="uid://cb8hbsxgq1mp5" path="res://model/Boss3Phase1.png" id="9_15ltb"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fjb7e"]
bg_color = Color(0.0862745, 0.0862745, 0.0862745, 0.596078)
[node name="CanvasLayer" type="CanvasLayer"]
[sub_resource type="Animation" id="Animation_pwrbo"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel/CenterContainer/GcMenu:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("2_06g1x")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Panel/CenterContainer/boss:texture")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("4_4qacm")]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Label:text")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["wedwedwdwdwde"]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Label: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/CenterContainer/GcMenu:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Panel/CenterContainer/boss:visible")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0.001),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_4imyd"]
resource_name = "start"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel/CenterContainer/boss:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [ExtResource("4_4qacm")]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:text")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.0333334),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": ["Black spell of destruction"]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Label:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.2),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Panel/CenterContainer/GcMenu:visible")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 0.2, 0.2001),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [true, false, false]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Panel/CenterContainer/boss:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0.2),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="Animation" id="Animation_r3lxe"]
resource_name = "1"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel/CenterContainer/boss:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [ExtResource("6_45a70"), ExtResource("4_4qacm"), ExtResource("6_45a70"), ExtResource("4_4qacm"), ExtResource("6_45a70"), ExtResource("7_qjgmv")]
}
[sub_resource type="Animation" id="Animation_fg42v"]
resource_name = "2"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Panel/CenterContainer/boss:texture")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.05, 0.1, 0.15, 0.2, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [ExtResource("8_n7m7p"), ExtResource("6_45a70"), ExtResource("8_n7m7p"), ExtResource("6_45a70"), ExtResource("8_n7m7p"), ExtResource("9_15ltb")]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_tpw5q"]
_data = {
"1": SubResource("Animation_r3lxe"),
"2": SubResource("Animation_fg42v"),
"RESET": SubResource("Animation_pwrbo"),
"start": SubResource("Animation_4imyd")
}
[node name="gameboy" type="CanvasLayer" node_paths=PackedStringArray("anim", "scoreLabel")]
script = ExtResource("1_8q5hj")
anim = NodePath("AnimationPlayer")
scoreLabel = NodePath("score")
[node name="Panel" type="Panel" parent="."]
anchors_preset = 15
@@ -35,6 +222,10 @@ texture = ExtResource("1_1xnas")
[node name="GcMenu" type="Sprite2D" parent="Panel/CenterContainer"]
texture = ExtResource("2_06g1x")
[node name="boss" type="Sprite2D" parent="Panel/CenterContainer"]
visible = false
texture = ExtResource("4_4qacm")
[node name="A" type="Button" parent="."]
offset_left = 125.0
offset_top = 186.0
@@ -51,6 +242,32 @@ offset_bottom = 239.0
theme = ExtResource("4_a5nt6")
text = " "
[node name="ScrollContainer" type="ScrollContainer" parent="."]
offset_right = 40.0
offset_bottom = 40.0
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_tpw5q")
}
[node name="Label" type="Label" parent="."]
visible = false
offset_left = 124.0
offset_top = 143.0
offset_right = 279.0
offset_bottom = 166.0
theme = ExtResource("6_pwgdt")
theme_override_colors/font_color = Color(1, 1, 1, 1)
theme_override_font_sizes/font_size = 14
text = "wedwedwdwdwde"
vertical_alignment = 2
autowrap_mode = 3
[node name="score" type="Label" parent="."]
offset_left = 112.0
offset_top = 44.0
offset_right = 152.0
offset_bottom = 67.0
theme = ExtResource("6_pwgdt")
theme_override_font_sizes/font_size = 16
text = "High Score : 0"
[connection signal="pressed" from="A" to="." method="APressed"]
[connection signal="pressed" from="B" to="." method="BPressed"]