game-dev #8

Merged
leon merged 9 commits from game-dev into dev/game 2023-09-24 13:32:16 +02:00
9 changed files with 221 additions and 157 deletions
Showing only changes of commit b231650cc6 - Show all commits

View File

@ -1,7 +0,0 @@
<Project Sdk="Godot.NET.Sdk/4.1.1">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
<RootNamespace>GodofAI</RootNamespace>
</PropertyGroup>
</Project>

View File

@ -1,19 +0,0 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "God of AI", "God of AI.csproj", "{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
ExportDebug|Any CPU = ExportDebug|Any CPU
ExportRelease|Any CPU = ExportRelease|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}.ExportDebug|Any CPU.ActiveCfg = ExportDebug|Any CPU
{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}.ExportDebug|Any CPU.Build.0 = ExportDebug|Any CPU
{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}.ExportRelease|Any CPU.ActiveCfg = ExportRelease|Any CPU
{DE6878AB-07CF-4EBE-8489-F3CFBFE1694C}.ExportRelease|Any CPU.Build.0 = ExportRelease|Any CPU
EndGlobalSection
EndGlobal

BIN
godot/GodofAi.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

34
godot/GodofAi.jpg.import Normal file
View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://vn2ficr8n4n5"
path="res://.godot/imported/GodofAi.jpg-def59ddc939d56f01f5cd6cd7522f115.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://GodofAi.jpg"
dest_files=["res://.godot/imported/GodofAi.jpg-def59ddc939d56f01f5cd6cd7522f115.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

19
godot/Hauptmenü.cs Normal file
View File

@ -0,0 +1,19 @@
using Godot;
using System;
public partial class Hauptmenü : Node2D
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
var node = this.GetNode<CanvasLayer>("HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame");
node.SetProcess(false);
node.Hide();
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}

27
godot/Playbutton.cs Normal file
View File

@ -0,0 +1,27 @@
using Godot;
using System;
public partial class Playbutton : Button
{
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
this.Pressed += ButtonPressed;
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
private void ButtonPressed()
{
GD.Print("a");
var node = this.GetNode<CanvasLayer>("Ingame/Ingame");
node.SetProcess(true);
node.Show();
var GParent = this.GetTree().Root.GetNode<CanvasLayer>("Root/Hauptmenü/HauptMenü");
GParent.Hide();
}
}

View File

@ -11,5 +11,6 @@ public partial class TextEdit : Godot.TextEdit
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
}

View File

@ -1,116 +1,21 @@
[gd_scene load_steps=3 format=3 uid="uid://1gar30yhw8ay"]
[gd_scene load_steps=6 format=3 uid="uid://1gar30yhw8ay"]
[ext_resource type="Script" path="res://Hauptmenü.cs" id="1_4eu52"]
[ext_resource type="Script" path="res://TextEdit.cs" id="1_5gfrp"]
[ext_resource type="Texture2D" uid="uid://vn2ficr8n4n5" path="res://GodofAi.jpg" id="2_m684j"]
[ext_resource type="Script" path="res://Playbutton.cs" id="3_ucfae"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_ncw85"]
[node name="Node2D" type="Node2D"]
[node name="Root" type="Node2D"]
[node name="Ingame" type="CanvasLayer" parent="."]
visible = false
[node name="Hauptmenü" type="Node2D" parent="."]
position = Vector2(320, 20)
script = ExtResource("1_4eu52")
[node name="Eingabe" type="VBoxContainer" parent="Ingame"]
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -360.0
offset_right = -500.0
grow_horizontal = 2
grow_vertical = 0
size_flags_vertical = 0
[node name="HauptMenü" type="CanvasLayer" parent="Hauptmenü"]
[node name="TextEdit" type="TextEdit" parent="Ingame/Eingabe"]
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("1_5gfrp")
[node name="Story" type="VBoxContainer" parent="Ingame"]
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -500.0
grow_horizontal = 0
grow_vertical = 2
size_flags_horizontal = 8
[node name="TextEdit" type="TextEdit" parent="Ingame/Story"]
layout_mode = 2
size_flags_vertical = 3
placeholder_text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
editable = false
context_menu_enabled = false
wrap_mode = 1
[node name="Stats" type="VBoxContainer" parent="Ingame"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 1280.0
offset_right = -500.0
offset_bottom = -360.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextEdit" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
placeholder_text = "SampleStat = 1
"
editable = false
context_menu_enabled = false
[node name="TextEdit2" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit3" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit4" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit5" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit6" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit7" type="TextEdit" parent="Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="Szenerie" type="TextureRect" parent="."]
offset_left = -3.0
offset_top = -1.0
offset_right = 1277.0
offset_bottom = 719.0
focus_neighbor_left = NodePath("../Ingame/Stats")
focus_neighbor_bottom = NodePath("../Ingame/Eingabe")
texture = SubResource("CompressedTexture2D_ncw85")
expand_mode = 1
stretch_mode = 1
[node name="HauptMenü" type="CanvasLayer" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="HauptMenü"]
[node name="VBoxContainer" type="VBoxContainer" parent="Hauptmenü/HauptMenü"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
@ -124,11 +29,12 @@ grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 0
[node name="Titelbild" type="TextureRect" parent="HauptMenü/VBoxContainer"]
[node name="Titelbild" type="TextureRect" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(0, 200)
layout_mode = 2
texture = ExtResource("2_m684j")
[node name="Pop up Menu Szenen" type="MenuButton" parent="HauptMenü/VBoxContainer"]
[node name="Pop up Menu Szenen" type="MenuButton" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
@ -166,7 +72,7 @@ popup/item_10/id = 10
popup/item_11/text = "Krimi 2"
popup/item_11/id = 11
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 300)
layout_direction = 1
layout_mode = 2
@ -175,13 +81,13 @@ placeholder_text = "Enter a custom setting"
drag_and_drop_selection_enabled = false
middle_mouse_paste_enabled = false
[node name="Strength" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Strength" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="StrengthLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Strength"]
[node name="StrengthLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Strength"]
layout_mode = 2
size_flags_horizontal = 3
text = "Strength"
@ -194,19 +100,19 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Strength"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Strength"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Perception" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Perception" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="PerceptionLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Perception"]
[node name="PerceptionLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Perception"]
layout_mode = 2
size_flags_horizontal = 3
text = "Perception"
@ -219,19 +125,19 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Perception"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Perception"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Endurance" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Endurance" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="EnduranceLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Endurance"]
[node name="EnduranceLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Endurance"]
layout_mode = 2
size_flags_horizontal = 3
text = "Endurance"
@ -244,19 +150,19 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Endurance"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Endurance"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Charisma" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Charisma" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="CharismaLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Charisma"]
[node name="CharismaLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Charisma"]
layout_mode = 2
size_flags_horizontal = 3
text = "Charisma"
@ -269,19 +175,19 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Charisma"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Charisma"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Intelligence" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Intelligence" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="CharismaLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Intelligence"]
[node name="CharismaLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Intelligence"]
layout_mode = 2
size_flags_horizontal = 3
text = "Intelligence"
@ -294,19 +200,19 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Intelligence"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Intelligence"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Agillity" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Agillity" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="AgillityLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Agillity"]
[node name="AgillityLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Agillity"]
layout_mode = 2
size_flags_horizontal = 3
text = "Agillity"
@ -319,19 +225,19 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Agillity"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Agillity"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Luck" type="HBoxContainer" parent="HauptMenü/VBoxContainer"]
[node name="Luck" type="HBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer"]
custom_minimum_size = Vector2(520, 50)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 2
[node name="LuckLabel" type="TextEdit" parent="HauptMenü/VBoxContainer/Luck"]
[node name="LuckLabel" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Luck"]
layout_mode = 2
size_flags_horizontal = 3
text = "Luck"
@ -344,14 +250,117 @@ drag_and_drop_selection_enabled = false
virtual_keyboard_enabled = false
middle_mouse_paste_enabled = false
[node name="TextEdit" type="TextEdit" parent="HauptMenü/VBoxContainer/Luck"]
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Luck"]
clip_contents = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "0"
[node name="Playbutton" type="Button" parent="HauptMenü/VBoxContainer"]
[node name="Playbutton" type="Button" parent="Hauptmenü/HauptMenü/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 3
text = " PLAY "
script = ExtResource("3_ucfae")
[node name="Ingame" type="Node2D" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton"]
position = Vector2(-699, -1003)
[node name="Ingame" type="CanvasLayer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame"]
[node name="Eingabe" type="VBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -360.0
offset_right = -500.0
grow_horizontal = 2
grow_vertical = 0
size_flags_vertical = 0
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Eingabe"]
layout_mode = 2
size_flags_vertical = 3
script = ExtResource("1_5gfrp")
[node name="Story" type="VBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -500.0
grow_horizontal = 0
grow_vertical = 2
size_flags_horizontal = 8
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Story"]
layout_mode = 2
size_flags_vertical = 3
placeholder_text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
editable = false
context_menu_enabled = false
wrap_mode = 1
[node name="Stats" type="VBoxContainer" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 1280.0
offset_right = -500.0
offset_bottom = -360.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextEdit" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
placeholder_text = "SampleStat = 1
"
editable = false
context_menu_enabled = false
[node name="TextEdit2" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit3" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit4" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit5" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit6" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="TextEdit7" type="TextEdit" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame/Stats"]
layout_mode = 2
size_flags_vertical = 3
editable = false
context_menu_enabled = false
[node name="Szenerie" type="TextureRect" parent="Hauptmenü/HauptMenü/VBoxContainer/Playbutton/Ingame/Ingame"]
offset_left = -3.0
offset_top = -1.0
offset_right = 1277.0
offset_bottom = 719.0
texture = SubResource("CompressedTexture2D_ncw85")
expand_mode = 1
stretch_mode = 1

View File

@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c5xk7a15wrsip"
uid="uid://dp2wwugsa03q"
path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"
metadata={
"vram_texture": false