Preserve current state before big refactor
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
@startuml AppLogic
|
||||
state "AppLogic State" as GameJamDungeon_AppLogic_State {
|
||||
state "SetupGameScene" as GameJamDungeon_AppLogic_State_SetupGameScene
|
||||
state "InGame" as GameJamDungeon_AppLogic_State_InGame
|
||||
state "LoadingScreen" as GameJamDungeon_AppLogic_State_LoadingScreen
|
||||
state "MainMenu" as GameJamDungeon_AppLogic_State_MainMenu
|
||||
state "LoadingScreen" as GameJamDungeon_AppLogic_State_LoadingScreen
|
||||
state "InGame" as GameJamDungeon_AppLogic_State_InGame
|
||||
}
|
||||
|
||||
GameJamDungeon_AppLogic_State_InGame --> GameJamDungeon_AppLogic_State_MainMenu : GameOver
|
||||
|
||||
@@ -1,26 +1,10 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Collections;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
|
||||
namespace GameJamDungeon;
|
||||
|
||||
public interface IEnemy : IRigidBody3D
|
||||
{
|
||||
public IEnemyLogic EnemyLogic { get; }
|
||||
|
||||
public AutoProp<double> CurrentHP { get; set; }
|
||||
|
||||
public EnemyStatResource EnemyStatResource { get; set; }
|
||||
|
||||
public NavigationAgent3D NavAgent { get; set; }
|
||||
|
||||
public Area3D LineOfSight { get; set; }
|
||||
|
||||
public Timer AttackTimer { get; set; }
|
||||
}
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class Enemy : RigidBody3D, IEnemy, IProvide<IEnemyLogic>
|
||||
{
|
||||
|
||||
20
src/enemy/IEnemy.cs
Normal file
20
src/enemy/IEnemy.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Chickensoft.Collections;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Godot;
|
||||
|
||||
namespace GameJamDungeon;
|
||||
|
||||
public interface IEnemy : IRigidBody3D
|
||||
{
|
||||
public IEnemyLogic EnemyLogic { get; }
|
||||
|
||||
public AutoProp<double> CurrentHP { get; set; }
|
||||
|
||||
public EnemyStatResource EnemyStatResource { get; set; }
|
||||
|
||||
public NavigationAgent3D NavAgent { get; set; }
|
||||
|
||||
public Area3D LineOfSight { get; set; }
|
||||
|
||||
public Timer AttackTimer { get; set; }
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b0gwivt7cw7nd"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/enemy/Enemy.cs" id="1_a6wro"]
|
||||
[ext_resource type="Script" path="res://src/enemy/EnemyStatResource.cs" id="2_x4pjh"]
|
||||
[ext_resource type="Script" uid="uid://2d34jler3rmv" path="res://src/enemy/Enemy.cs" id="1_a6wro"]
|
||||
[ext_resource type="Script" uid="uid://dnkmr0eq1sij0" path="res://src/enemy/EnemyStatResource.cs" id="2_x4pjh"]
|
||||
[ext_resource type="PackedScene" uid="uid://bjg8wyvp8q6oc" path="res://src/enemy/enemy_types/michael/MichaelModelView.tscn" id="3_wrps7"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_k2g1o"]
|
||||
@@ -76,7 +76,6 @@ shape = SubResource("CapsuleShape3D_0h5s2")
|
||||
[node name="NavAgent" type="NavigationAgent3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
avoidance_enabled = true
|
||||
debug_enabled = true
|
||||
debug_path_custom_color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="EnemyModelView" parent="." instance=ExtResource("3_wrps7")]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bksq62muhk3h5"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/enemy/Enemy.cs" id="1_7tinp"]
|
||||
[ext_resource type="Script" path="res://src/enemy/EnemyStatResource.cs" id="2_j3knd"]
|
||||
[ext_resource type="Script" uid="uid://2d34jler3rmv" path="res://src/enemy/Enemy.cs" id="1_7tinp"]
|
||||
[ext_resource type="Script" uid="uid://dnkmr0eq1sij0" path="res://src/enemy/EnemyStatResource.cs" id="2_j3knd"]
|
||||
[ext_resource type="PackedScene" uid="uid://bli0t0d6ommvi" path="res://src/enemy/enemy_types/sproingy/SproingyModelView.tscn" id="4_o3b7p"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rxw8v"]
|
||||
@@ -56,7 +56,6 @@ path_max_distance = 3.01
|
||||
simplify_path = true
|
||||
avoidance_enabled = true
|
||||
radius = 2.0
|
||||
debug_enabled = true
|
||||
debug_path_custom_color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="LineOfSight" type="Area3D" parent="."]
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
@startuml EnemyLogic
|
||||
state "EnemyLogic State" as GameJamDungeon_EnemyLogic_State {
|
||||
state "Defeated" as GameJamDungeon_EnemyLogic_State_Defeated
|
||||
state "Alive" as GameJamDungeon_EnemyLogic_State_Alive {
|
||||
state "FollowPlayer" as GameJamDungeon_EnemyLogic_State_FollowPlayer
|
||||
state "Idle" as GameJamDungeon_EnemyLogic_State_Idle
|
||||
}
|
||||
state "Defeated" as GameJamDungeon_EnemyLogic_State_Defeated
|
||||
}
|
||||
|
||||
GameJamDungeon_EnemyLogic_State_Alive --> GameJamDungeon_EnemyLogic_State_Alive : AttackTimer
|
||||
|
||||
@@ -2,34 +2,11 @@
|
||||
namespace GameJamDungeon;
|
||||
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using Chickensoft.Introspection;
|
||||
using Chickensoft.SaveFileBuilder;
|
||||
using GameJamDungeon.src.item_rescue;
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
public interface IGame : IProvide<IGameRepo>, IProvide<IGameEventDepot>, IProvide<IGame>, INode3D
|
||||
{
|
||||
event Game.StatRaisedAlertEventHandler StatRaisedAlert;
|
||||
|
||||
public IPlayer Player { get; }
|
||||
|
||||
public RescuedItemDatabase RescuedItems { get; }
|
||||
|
||||
public void DropItem(IInventoryItem item);
|
||||
|
||||
public void ThrowItem(IInventoryItem item);
|
||||
|
||||
public void HealHP(int amountToRaise);
|
||||
public void RaiseHP(int amountToRaise);
|
||||
|
||||
public void HealVT(int amountToRaise);
|
||||
public void RaiseVT(int amountToRaise);
|
||||
|
||||
public void DoubleEXP(TimeSpan lengthOfEffect);
|
||||
}
|
||||
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class Game : Node3D, IGame
|
||||
{
|
||||
@@ -151,12 +128,20 @@ public partial class Game : Node3D, IGame
|
||||
Player.MinimapButtonHeld += Player_MinimapButtonHeld;
|
||||
Player.PauseButtonPressed += Player_PauseButtonPressed;
|
||||
|
||||
GameRepo.PlayerData.CurrentHP.Sync += CurrentHP_Sync;
|
||||
|
||||
GameEventDepot.EnemyDefeated += OnEnemyDefeated;
|
||||
GameEventDepot.RestorativePickedUp += GameEventDepot_RestorativePickedUp;
|
||||
|
||||
DoubleEXPTimer.Timeout += DoubleEXPTimer_Timeout;
|
||||
}
|
||||
|
||||
private void CurrentHP_Sync(int currentHP)
|
||||
{
|
||||
if (currentHP <= 0)
|
||||
GameLogic.Input(new GameLogic.Input.GameOver());
|
||||
}
|
||||
|
||||
private void Inventory_PickedUpItem(string pickedUpItemName)
|
||||
{
|
||||
InGameUI.PlayerInfoUI.DisplayMessage($"{pickedUpItemName} picked up.");
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
@startuml GameLogic
|
||||
state "GameLogic State" as GameJamDungeon_GameLogic_State {
|
||||
state "GameStarted" as GameJamDungeon_GameLogic_State_GameStarted
|
||||
state "Quit" as GameJamDungeon_GameLogic_State_Quit
|
||||
state "Playing" as GameJamDungeon_GameLogic_State_Playing {
|
||||
state "AskForTeleport" as GameJamDungeon_GameLogic_State_AskForTeleport
|
||||
state "FloorClearedDecisionState" as GameJamDungeon_GameLogic_State_FloorClearedDecisionState
|
||||
state "InventoryOpened" as GameJamDungeon_GameLogic_State_InventoryOpened
|
||||
state "MinimapOpen" as GameJamDungeon_GameLogic_State_MinimapOpen
|
||||
state "Paused" as GameJamDungeon_GameLogic_State_Paused
|
||||
state "FloorClearedDecisionState" as GameJamDungeon_GameLogic_State_FloorClearedDecisionState
|
||||
state "AskForTeleport" as GameJamDungeon_GameLogic_State_AskForTeleport
|
||||
state "InventoryOpened" as GameJamDungeon_GameLogic_State_InventoryOpened
|
||||
state "Resuming" as GameJamDungeon_GameLogic_State_Resuming
|
||||
}
|
||||
state "Quit" as GameJamDungeon_GameLogic_State_Quit
|
||||
state "GameStarted" as GameJamDungeon_GameLogic_State_GameStarted
|
||||
}
|
||||
|
||||
GameJamDungeon_GameLogic_State_AskForTeleport --> GameJamDungeon_GameLogic_State_FloorClearedDecisionState : FloorExitReached
|
||||
|
||||
28
src/game/IGame.cs
Normal file
28
src/game/IGame.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
namespace GameJamDungeon;
|
||||
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.GodotNodeInterfaces;
|
||||
using GameJamDungeon.src.item_rescue;
|
||||
using System;
|
||||
|
||||
public interface IGame : IProvide<IGameRepo>, IProvide<IGameEventDepot>, IProvide<IGame>, INode3D
|
||||
{
|
||||
event Game.StatRaisedAlertEventHandler StatRaisedAlert;
|
||||
|
||||
public IPlayer Player { get; }
|
||||
|
||||
public RescuedItemDatabase RescuedItems { get; }
|
||||
|
||||
public void DropItem(IInventoryItem item);
|
||||
|
||||
public void ThrowItem(IInventoryItem item);
|
||||
|
||||
public void HealHP(int amountToRaise);
|
||||
public void RaiseHP(int amountToRaise);
|
||||
|
||||
public void HealVT(int amountToRaise);
|
||||
public void RaiseVT(int amountToRaise);
|
||||
|
||||
public void DoubleEXP(TimeSpan lengthOfEffect);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://twrj4wixcbu7"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/items/ItemDatabase.cs" id="1_7b315"]
|
||||
[ext_resource type="Script" uid="uid://vdunjh1f4jry" path="res://src/items/ItemDatabase.cs" id="1_7b315"]
|
||||
[ext_resource type="PackedScene" uid="uid://db206brufi83s" path="res://src/items/weapons/Weapon.tscn" id="2_wq002"]
|
||||
[ext_resource type="PackedScene" uid="uid://dorr7v1tkeiy0" path="res://src/items/armor/Armor.tscn" id="3_8wlg5"]
|
||||
[ext_resource type="PackedScene" uid="uid://b07srt3lckt4e" path="res://src/items/accessory/Accessory.tscn" id="4_pr7ub"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dofju2wfj12y4"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dy6iul5xgcj47" path="res://src/items/restorative/textures/divinity recall 2.PNG" id="1_1rwq6"]
|
||||
[ext_resource type="Script" path="res://src/items/restorative/Restorative.cs" id="1_3beyl"]
|
||||
[ext_resource type="Script" uid="uid://qjvotbwutcb5" path="res://src/items/restorative/Restorative.cs" id="1_3beyl"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_o8f22"]
|
||||
radius = 0.13613
|
||||
|
||||
@@ -1,6 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://1fl6s352e2ej"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://1fl6s352e2ej"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dj28ol2cpeiwm" path="res://src/items/throwable/ThrowableItem.cs" id="1_nac2l"]
|
||||
[ext_resource type="Script" uid="uid://d3wlunkcuv2w2" path="res://src/items/throwable/ThrowableItemStats.cs" id="2_8h2lx"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b0s4k"]
|
||||
script = ExtResource("2_8h2lx")
|
||||
ThrowableItemTags = Array[int]([])
|
||||
UsableItemTags = Array[int]([])
|
||||
Name = ""
|
||||
Description = ""
|
||||
SpawnRate = 0.5
|
||||
ThrowSpeed = 12.0
|
||||
HealHPAmount = 0
|
||||
HealVTAmount = 0
|
||||
ThrowDamage = 5
|
||||
metadata/_custom_type_script = ExtResource("2_8h2lx")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_03cqg"]
|
||||
size = Vector3(0.778381, 0.929947, 0.731567)
|
||||
@@ -8,6 +22,7 @@ size = Vector3(0.778381, 0.929947, 0.731567)
|
||||
[node name="ThrowableItem" type="Node3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.75, 0)
|
||||
script = ExtResource("1_nac2l")
|
||||
ThrowableItemInfo = SubResource("Resource_b0s4k")
|
||||
|
||||
[node name="Pickup" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://b1twcuneob5kt"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/items/thrown/ThrownItem.cs" id="1_wlplc"]
|
||||
[ext_resource type="Script" uid="uid://bx1k4yff3m82m" path="res://src/items/thrown/ThrownItem.cs" id="1_wlplc"]
|
||||
[ext_resource type="Texture2D" uid="uid://mi70lolgtf3n" path="res://src/items/throwable/textures/GEOMANCER-DICE.png" id="2_alcjn"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_s4ym5"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://db206brufi83s"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/items/weapons/Weapon.cs" id="1_7pkyf"]
|
||||
[ext_resource type="Script" uid="uid://bq8aaf1ae4afh" path="res://src/items/weapons/Weapon.cs" id="1_7pkyf"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wll7p"]
|
||||
radius = 0.470016
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=89 format=4 uid="uid://vdhl32je6hq2"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_j1kxr"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_6qgti"]
|
||||
[ext_resource type="Script" uid="uid://ce73fuh74l81l" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_j1kxr"]
|
||||
[ext_resource type="Script" uid="uid://daetb3e2nm56p" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_6qgti"]
|
||||
[ext_resource type="Texture2D" uid="uid://dytao2mlwn70b" path="res://src/map/dungeon/models/antechamber_2/ANTECHAMBER_TYPE2_VER3_STONE_PANEL_2png.png" id="3_po4ye"]
|
||||
[ext_resource type="Texture2D" uid="uid://donkyolj48lnx" path="res://src/map/dungeon/models/antechamber_2/ANTECHAMBER_TYPE2_VER3_SA003.jpg" id="4_u2s1f"]
|
||||
[ext_resource type="Texture2D" uid="uid://dq85on808gpsv" path="res://src/map/dungeon/models/antechamber_2/ANTECHAMBER_TYPE2_VER3_PIPE.jpg" id="5_5jr8j"]
|
||||
@@ -24,8 +24,8 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bkvegamuqdsdd" path="res://src/map/dungeon/corridor/CORRIDOR test_FLOOR1.jpg" id="22_3r6v3"]
|
||||
[ext_resource type="PackedScene" uid="uid://twrj4wixcbu7" path="res://src/items/ItemDatabase.tscn" id="23_rhlsp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbvr8ewajja6a" path="res://src/enemy/EnemyDatabase.tscn" id="24_168rc"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="25_8521a"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/MinimapManager.cs" id="26_tvm82"]
|
||||
[ext_resource type="Script" uid="uid://yl7wyeo5m725" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="25_8521a"]
|
||||
[ext_resource type="Script" uid="uid://c6s8hvdj3u3aq" path="res://src/map/dungeon/code/MinimapManager.cs" id="26_tvm82"]
|
||||
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="27_mgor6"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3iqv8"]
|
||||
@@ -1756,7 +1756,7 @@ flip_faces = true
|
||||
size = Vector3(16, 8, 16)
|
||||
|
||||
[node name="CSGBox2" type="CSGBox3D" parent="Antechamber2"]
|
||||
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 8.06523, 0.0211899, 1.9332)
|
||||
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 8.04886, 0.0211899, 1.9332)
|
||||
use_collision = true
|
||||
size = Vector3(4, 4, 0.5)
|
||||
material = SubResource("StandardMaterial3D_3mejj")
|
||||
@@ -1769,13 +1769,13 @@ size = Vector3(5.55383, 4, 2)
|
||||
material = SubResource("StandardMaterial3D_a7x8v")
|
||||
|
||||
[node name="CSGBox" type="CSGBox3D" parent="Antechamber2"]
|
||||
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, -1.89702, 0.21733, -8.00157)
|
||||
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, -1.89702, 0.0119586, -8.00157)
|
||||
use_collision = true
|
||||
size = Vector3(4, 4, 0.5)
|
||||
material = SubResource("StandardMaterial3D_3mejj")
|
||||
|
||||
[node name="DOOR?1" type="CSGBox3D" parent="Antechamber2/CSGBox"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.19209e-07, 0.0442526, 0.0686455)
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0487772, 0.0442526, 0.0686455)
|
||||
material_override = SubResource("StandardMaterial3D_2xt56")
|
||||
operation = 2
|
||||
size = Vector3(4, 4, 2)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=85 format=4 uid="uid://b7111krf365x0"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_jccmw"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_5p5p8"]
|
||||
[ext_resource type="Script" uid="uid://ce73fuh74l81l" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_jccmw"]
|
||||
[ext_resource type="Script" uid="uid://daetb3e2nm56p" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_5p5p8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bb7y5jjl32b11" path="res://src/map/dungeon/models/inner_balcony/INNER_BALCONY_ROOM_VER2_STONE_PANEL_2png.png" id="2_40w7a"]
|
||||
[ext_resource type="Texture2D" uid="uid://1bmgm045nm7e" path="res://src/map/dungeon/models/inner_balcony/INNER_BALCONY_ROOM_VER2_COLUMN.jpg" id="3_87bce"]
|
||||
[ext_resource type="Texture2D" uid="uid://dgceb3iovrvsf" path="res://src/map/dungeon/models/inner_balcony/INNER_BALCONY_ROOM_VER2_WALL TILE 1.jpg" id="4_j2bdg"]
|
||||
@@ -17,9 +17,9 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bkvegamuqdsdd" path="res://src/map/dungeon/corridor/CORRIDOR test_FLOOR1.jpg" id="14_vh3wx"]
|
||||
[ext_resource type="PackedScene" uid="uid://twrj4wixcbu7" path="res://src/items/ItemDatabase.tscn" id="15_n8s21"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbvr8ewajja6a" path="res://src/enemy/EnemyDatabase.tscn" id="16_mk0iw"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="17_atu1n"]
|
||||
[ext_resource type="Script" uid="uid://yl7wyeo5m725" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="17_atu1n"]
|
||||
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="19_dmkqn"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/MinimapManager.cs" id="19_gi8bh"]
|
||||
[ext_resource type="Script" uid="uid://c6s8hvdj3u3aq" path="res://src/map/dungeon/code/MinimapManager.cs" id="19_gi8bh"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ta5ix"]
|
||||
resource_name = "Material.003"
|
||||
@@ -861,11 +861,11 @@ data = PackedVector3Array(0.983567, -1, 0, 0.695487, -1, 0.695487, 0.695487, 1,
|
||||
albedo_texture = ExtResource("13_66rjw")
|
||||
texture_filter = 0
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ce8rm"]
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xw1ea"]
|
||||
albedo_color = Color(1, 1, 1, 0)
|
||||
albedo_texture = ExtResource("14_vh3wx")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xw1ea"]
|
||||
albedo_texture = ExtResource("14_vh3wx")
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ce8rm"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_suh2k"]
|
||||
size = Vector3(36, 8, 36)
|
||||
@@ -882,6 +882,7 @@ min_count = 1
|
||||
max_count = 1
|
||||
|
||||
[node name="InnerBalcony" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.041173)
|
||||
script = ExtResource("2_5p5p8")
|
||||
|
||||
[node name="INNER_BALCONY_ROOM_VER2" type="Node3D" parent="InnerBalcony"]
|
||||
@@ -1139,7 +1140,6 @@ material = SubResource("StandardMaterial3D_fgovc")
|
||||
|
||||
[node name="DOOR?" type="CSGBox3D" parent="InnerBalcony/CSGBox2"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00166607, -3.72529e-08, 0.0686455)
|
||||
material_override = SubResource("StandardMaterial3D_ce8rm")
|
||||
operation = 2
|
||||
size = Vector3(4, 4, 2)
|
||||
material = SubResource("StandardMaterial3D_xw1ea")
|
||||
@@ -1152,7 +1152,6 @@ material = SubResource("StandardMaterial3D_fgovc")
|
||||
|
||||
[node name="DOOR?" type="CSGBox3D" parent="InnerBalcony/CSGBox3"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00166607, -3.72529e-08, 0.0686455)
|
||||
material_override = SubResource("StandardMaterial3D_ce8rm")
|
||||
operation = 2
|
||||
size = Vector3(4, 4, 2)
|
||||
material = SubResource("StandardMaterial3D_xw1ea")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=87 format=4 uid="uid://cam640h4euewx"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_hww7y"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_abm0b"]
|
||||
[ext_resource type="Script" uid="uid://ce73fuh74l81l" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_hww7y"]
|
||||
[ext_resource type="Script" uid="uid://daetb3e2nm56p" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_abm0b"]
|
||||
[ext_resource type="Texture2D" uid="uid://yv16a32nmuwg" path="res://src/map/dungeon/models/pit_room/PIT_ROOM_VER2_tile2.png" id="2_hnabh"]
|
||||
[ext_resource type="Texture2D" uid="uid://ctmn1oyu2llal" path="res://src/map/dungeon/models/pit_room/PIT_ROOM_VER2_CEILING_1.jpg" id="3_dl8qf"]
|
||||
[ext_resource type="Texture2D" uid="uid://bworoo3u2hlob" path="res://src/map/dungeon/models/pit_room/PIT_ROOM_VER2_STONE_PANEL_2png.png" id="4_76lx1"]
|
||||
@@ -20,8 +20,8 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bkvegamuqdsdd" path="res://src/map/dungeon/corridor/CORRIDOR test_FLOOR1.jpg" id="17_4r724"]
|
||||
[ext_resource type="PackedScene" uid="uid://twrj4wixcbu7" path="res://src/items/ItemDatabase.tscn" id="19_yh0qc"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbvr8ewajja6a" path="res://src/enemy/EnemyDatabase.tscn" id="20_5xp0x"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="21_5mo1p"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/MinimapManager.cs" id="22_h4dhe"]
|
||||
[ext_resource type="Script" uid="uid://yl7wyeo5m725" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="21_5mo1p"]
|
||||
[ext_resource type="Script" uid="uid://c6s8hvdj3u3aq" path="res://src/map/dungeon/code/MinimapManager.cs" id="22_h4dhe"]
|
||||
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="23_2yaqs"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mbeyw"]
|
||||
@@ -1117,6 +1117,7 @@ min_count = 1
|
||||
max_count = 2
|
||||
|
||||
[node name="PitRoom" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.0629635)
|
||||
script = ExtResource("2_abm0b")
|
||||
|
||||
[node name="PIT_ROOM_VER2" type="Node3D" parent="PitRoom"]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=85 format=4 uid="uid://i781lbf2wb22"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_owolg"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_557rl"]
|
||||
[ext_resource type="Script" uid="uid://ce73fuh74l81l" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_owolg"]
|
||||
[ext_resource type="Script" uid="uid://daetb3e2nm56p" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_557rl"]
|
||||
[ext_resource type="Texture2D" uid="uid://b3sg8oamch2i1" path="res://src/map/dungeon/models/tree_room/TREE_ROOM_VER2_STONE_PANEL_2png.png" id="2_q760f"]
|
||||
[ext_resource type="Texture2D" uid="uid://dosfvqc483qru" path="res://src/map/dungeon/models/tree_room/TREE_ROOM_VER2_COLUMN.jpg" id="3_f73tr"]
|
||||
[ext_resource type="Texture2D" uid="uid://shedoef7js3k" path="res://src/map/dungeon/models/tree_room/TREE_ROOM_VER2_COLUM2N.png" id="4_qwvcf"]
|
||||
@@ -20,11 +20,11 @@
|
||||
[ext_resource type="Texture2D" uid="uid://cjjdttsu7sily" path="res://src/map/dungeon/models/tree_room/TREE_ROOM_VER2_starsigns.png" id="17_xt3ee"]
|
||||
[ext_resource type="PackedScene" uid="uid://twrj4wixcbu7" path="res://src/items/ItemDatabase.tscn" id="19_rlr0c"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbvr8ewajja6a" path="res://src/enemy/EnemyDatabase.tscn" id="20_blcsb"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="21_s12yd"]
|
||||
[ext_resource type="Script" uid="uid://yl7wyeo5m725" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="21_s12yd"]
|
||||
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="22_3xjct"]
|
||||
[ext_resource type="Texture2D" uid="uid://del2dfj3etokd" path="res://src/map/dungeon/textures/BLOCKED-DOOR_REGULAR.png" id="23_sd6x0"]
|
||||
[ext_resource type="Texture2D" uid="uid://bkvegamuqdsdd" path="res://src/map/dungeon/corridor/CORRIDOR test_FLOOR1.jpg" id="24_nv6nc"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/MinimapManager.cs" id="24_s8wpb"]
|
||||
[ext_resource type="Script" uid="uid://c6s8hvdj3u3aq" path="res://src/map/dungeon/code/MinimapManager.cs" id="24_s8wpb"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h5y3c"]
|
||||
resource_name = "Material.391"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=89 format=4 uid="uid://dfpyfpnya0f4u"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_ulct7"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_7yem4"]
|
||||
[ext_resource type="Script" uid="uid://ce73fuh74l81l" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_ulct7"]
|
||||
[ext_resource type="Script" uid="uid://daetb3e2nm56p" path="res://src/map/dungeon/code/DungeonRoom.cs" id="2_7yem4"]
|
||||
[ext_resource type="Texture2D" uid="uid://bn3fhfh4jpo6p" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_tile2.png" id="2_m6505"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxs4s61r4l127" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_CEILING_1.jpg" id="3_rjto0"]
|
||||
[ext_resource type="Texture2D" uid="uid://dkcmohd0v7cew" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_STONE_PANEL_2png.png" id="4_ou63s"]
|
||||
@@ -15,7 +15,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://dd4hrbee7mvf" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_CHAIN_TEX_16.png" id="12_litgw"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbdgpe3y7wk40" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_SD137.jpg" id="13_t7brn"]
|
||||
[ext_resource type="Texture2D" uid="uid://bmbvjyqrv1pfl" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_Stone4.png" id="14_gtr3o"]
|
||||
[ext_resource type="Shader" path="res://src/map/overworld/water.gdshader" id="15_na4gl"]
|
||||
[ext_resource type="Shader" uid="uid://blrcjqdo7emhs" path="res://src/map/overworld/water.gdshader" id="15_na4gl"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddxpjgvw2a70i" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_flower.png" id="15_o7x30"]
|
||||
[ext_resource type="Texture2D" uid="uid://bt7uu1n2fjl35" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_FLOOR1.jpg" id="16_v7iwe"]
|
||||
[ext_resource type="Texture2D" uid="uid://oaadtqvv1gj1" path="res://src/map/dungeon/models/water_room/WATER_ROOM_VER2_STONE_PANEL_1png_11.png" id="17_4pi80"]
|
||||
@@ -27,8 +27,8 @@
|
||||
[ext_resource type="PackedScene" uid="uid://twrj4wixcbu7" path="res://src/items/ItemDatabase.tscn" id="24_7qo1y"]
|
||||
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="24_w0ing"]
|
||||
[ext_resource type="PackedScene" uid="uid://dbvr8ewajja6a" path="res://src/enemy/EnemyDatabase.tscn" id="25_bfjom"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="26_c86xl"]
|
||||
[ext_resource type="Script" path="res://src/map/dungeon/code/MinimapManager.cs" id="28_txiha"]
|
||||
[ext_resource type="Script" uid="uid://yl7wyeo5m725" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="26_c86xl"]
|
||||
[ext_resource type="Script" uid="uid://c6s8hvdj3u3aq" path="res://src/map/dungeon/code/MinimapManager.cs" id="28_txiha"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mt2fa"]
|
||||
resource_name = "Material.010"
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dl6h1djc27ddl"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dl6h1djc27ddl"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cuhfkyh3d7noa" path="res://src/map/dungeon/code/Overworld.cs" id="1_2ce63"]
|
||||
[ext_resource type="PackedScene" uid="uid://duis2vhf5ojy3" path="res://src/item_rescue/ItemRescue.tscn" id="2_4ixnb"]
|
||||
[ext_resource type="PackedScene" uid="uid://tc5kdfoggrng" path="res://src/item_rescue/RescuedItems.tscn" id="3_tbcl3"]
|
||||
[ext_resource type="PackedScene" uid="uid://1fl6s352e2ej" path="res://src/items/throwable/ThrowableItem.tscn" id="4_wibf0"]
|
||||
[ext_resource type="Resource" uid="uid://bph8c6by4s047" path="res://src/items/throwable/resources/GeomanticDice.tres" id="5_wibf0"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pb22g"]
|
||||
|
||||
@@ -60,6 +59,5 @@ shape = SubResource("SphereShape3D_tbcl3")
|
||||
|
||||
[node name="ThrowableItem" parent="." instance=ExtResource("4_wibf0")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0)
|
||||
ThrowableItemInfo = ExtResource("5_wibf0")
|
||||
|
||||
[connection signal="body_entered" from="Spawn Rescued Items/Area3D" to="Rescued Items" method="OnSpawnItemsEntered"]
|
||||
|
||||
@@ -22,9 +22,9 @@ MaximumVT = 90
|
||||
CurrentExp = 0
|
||||
ExpToNextLevel = 10
|
||||
CurrentLevel = 1
|
||||
CurrentAttack = 50
|
||||
CurrentAttack = 8
|
||||
CurrentDefense = 12
|
||||
MaxAttack = 50
|
||||
MaxAttack = 8
|
||||
MaxDefense = 12
|
||||
BonusAttack = 0
|
||||
BonusDefense = 0
|
||||
@@ -426,3 +426,8 @@ spot_range = 11.4821
|
||||
spot_attenuation = -0.67
|
||||
spot_angle = 70.0
|
||||
spot_angle_attenuation = 2.0
|
||||
|
||||
[node name="OmniLight3D2" type="OmniLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.52838, 0.471719)
|
||||
omni_range = 78.167
|
||||
omni_attenuation = -0.156
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@startuml PlayerLogic
|
||||
state "PlayerLogic State" as GameJamDungeon_PlayerLogic_State {
|
||||
state "Disabled" as GameJamDungeon_PlayerLogic_State_Disabled
|
||||
state "Dead" as GameJamDungeon_PlayerLogic_State_Dead
|
||||
state "Alive" as GameJamDungeon_PlayerLogic_State_Alive {
|
||||
state "Attacking" as GameJamDungeon_PlayerLogic_State_Attacking
|
||||
state "Idle" as GameJamDungeon_PlayerLogic_State_Idle
|
||||
}
|
||||
state "Dead" as GameJamDungeon_PlayerLogic_State_Dead
|
||||
state "Disabled" as GameJamDungeon_PlayerLogic_State_Disabled
|
||||
}
|
||||
|
||||
GameJamDungeon_PlayerLogic_State_Alive --> GameJamDungeon_PlayerLogic_State_Alive : Moved
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dbtfgrtgpr4qg"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dbtfgrtgpr4qg"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/ui/death_menu/DeathMenu.cs" id="1_megey"]
|
||||
[ext_resource type="Script" uid="uid://caqsfstq2l0lq" path="res://src/ui/death_menu/DeathMenu.cs" id="1_megey"]
|
||||
[ext_resource type="FontFile" uid="uid://cm8j5vcdop5x0" path="res://src/ui/fonts/Mrs-Eaves-OT-Roman_31443.ttf" id="2_ip5p6"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6ji3u"]
|
||||
resource_name = "fade_out"
|
||||
length = 0.5
|
||||
[sub_resource type="Animation" id="Animation_qmlrq"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
@@ -12,10 +12,10 @@ tracks/0/path = NodePath(".:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_q2nvr"]
|
||||
@@ -34,8 +34,9 @@ tracks/0/keys = {
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qmlrq"]
|
||||
length = 0.001
|
||||
[sub_resource type="Animation" id="Animation_6ji3u"]
|
||||
resource_name = "fade_out"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
@@ -43,17 +44,17 @@ tracks/0/path = NodePath(".:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1)]
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ek7oy"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_qmlrq"),
|
||||
"fade_in": SubResource("Animation_q2nvr"),
|
||||
"fade_out": SubResource("Animation_6ji3u")
|
||||
&"RESET": SubResource("Animation_qmlrq"),
|
||||
&"fade_in": SubResource("Animation_q2nvr"),
|
||||
&"fade_out": SubResource("Animation_6ji3u")
|
||||
}
|
||||
|
||||
[node name="DeathMenu" type="Control"]
|
||||
@@ -78,5 +79,21 @@ color = Color(0.137255, 0.121569, 0.12549, 1)
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ek7oy")
|
||||
&"": SubResource("AnimationLibrary_ek7oy")
|
||||
}
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="GameOverPlaceholder" type="Label" parent="CenterContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0.545098, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 12
|
||||
theme_override_fonts/font = ExtResource("2_ip5p6")
|
||||
theme_override_font_sizes/font_size = 72
|
||||
text = "Game Over"
|
||||
|
||||
Reference in New Issue
Block a user