gameboy add

This commit is contained in:
Dukantic
2024-10-23 17:37:49 +02:00
parent 7817049a20
commit 87aa51513b
9 changed files with 205 additions and 76 deletions

File diff suppressed because one or more lines are too long

29
scene/gameboy.tscn Normal file
View File

@@ -0,0 +1,29 @@
[gd_scene load_steps=3 format=3 uid="uid://bj1ita42m6vj5"]
[ext_resource type="Texture2D" uid="uid://blkdbhu6usvic" path="res://model/GameConsole.png" id="1_1xnas"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_fjb7e"]
bg_color = Color(0.0862745, 0.0862745, 0.0862745, 0.596078)
[node name="CanvasLayer" 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("StyleBoxFlat_fjb7e")
[node name="CenterContainer" type="CenterContainer" parent="Panel"]
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
[node name="GameConsole" type="Sprite2D" parent="Panel/CenterContainer"]
texture = ExtResource("1_1xnas")

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=3 uid="uid://cru3yl7laeiem"]
[gd_scene load_steps=11 format=3 uid="uid://cru3yl7laeiem"]
[ext_resource type="Texture2D" uid="uid://mr6hi8icwyle" path="res://model/Trick or treatBG.png" id="1_4oira"]
[ext_resource type="Script" path="res://script/Principal.cs" id="1_5hpqm"]
@@ -6,12 +6,6 @@
[ext_resource type="StyleBox" uid="uid://cl1mx7tnohwg6" path="res://themes/back_principal.tres" id="5_tyto3"]
[ext_resource type="Texture2D" uid="uid://cf12hst5y4gfr" path="res://model/Credit.png" id="6_px85q"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8wh7p"]
bg_color = Color(0.0728426, 0.0728426, 0.0728426, 0.890196)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kg8au"]
bg_color = Color(0.0728426, 0.0728426, 0.0728426, 0.890196)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_luosh"]
bg_color = Color(0, 0, 0, 0.745098)
@@ -245,40 +239,12 @@ theme_override_styles/panel = ExtResource("5_tyto3")
texture = ExtResource("6_px85q")
centered = false
[node name="Label" type="Label" parent="credit"]
layout_mode = 0
offset_left = 13.0
offset_top = 248.0
offset_right = 207.0
offset_bottom = 293.0
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 38
theme_override_styles/normal = SubResource("StyleBoxFlat_8wh7p")
text = "Programming
"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label2" type="Label" parent="credit"]
layout_mode = 0
offset_left = 322.0
offset_top = 252.0
offset_right = 386.0
offset_bottom = 296.0
theme = ExtResource("2_ab0tu")
theme_override_font_sizes/font_size = 38
theme_override_styles/normal = SubResource("StyleBoxFlat_kg8au")
text = "Art
"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Button" type="Button" parent="credit"]
layout_mode = 0
offset_left = 163.0
offset_top = 15.0
offset_right = 215.0
offset_bottom = 53.0
offset_left = 333.0
offset_top = 248.0
offset_right = 385.0
offset_bottom = 286.0
theme = ExtResource("2_ab0tu")
text = "Exit
"

View File

@@ -6,7 +6,7 @@ using System.Collections.Generic;
public partial class remplissage : Node2D
{
[Export] Array<Texture2D> _textures;
[Export] Array<string> _text;
List<string> questions = new List<string>
{
@@ -63,7 +63,7 @@ public partial class remplissage : Node2D
{
_nodes.Add(node);
}
shuffle(_nodes, RandSeed);
foreach (Node2D node in _nodes)