remplissage, menu, gamin audio et autre

This commit is contained in:
Dukantic
2024-10-22 22:11:03 +02:00
parent 8bfc2c8515
commit b9c3f980f6
18 changed files with 2649 additions and 479 deletions

View File

@@ -2,12 +2,14 @@ using Godot;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection.Emit;
public partial class DoorView : Control
{
[Export] Sprite2D mob;
[Export] AnimationPlayer anim;
[Export] Control menu;
[Export] CanvasLayer layer;
Texture2D mobTex {get; set;}
@@ -23,7 +25,7 @@ public partial class DoorView : Control
CharacterBody2D player;
[Export] Label text_mob;
[Export] Godot.Label text_mob;
[Export] Button butA;
[Export] Button butB;
@@ -46,11 +48,12 @@ public partial class DoorView : Control
txt.Add("Spectral visions of mental warfare");
player = (CharacterBody2D)GetParent().GetParent();
}
public async void start()
{
public void start()
{
trick_bool = false;
GetParent<Camera2D>().PositionSmoothingEnabled = false;
Input.MouseMode = Input.MouseModeEnum.Visible;
layer.Visible = true;
Input.MouseMode = Input.MouseModeEnum.Visible;
GetTree().Paused = true;
Visible = true;
mob.Texture = mobTex;
@@ -73,9 +76,12 @@ public partial class DoorView : Control
public void stop()
{
Input.MouseMode = Input.MouseModeEnum.Hidden;
layer.Visible = false;
Input.MouseMode = Input.MouseModeEnum.Hidden;
GetParent<Camera2D>().PositionSmoothingEnabled = false;
GetTree().Paused = false;
GetTree().Paused = false;
Visible = false;
anim.Play("RESET");
}