cleaned up project

This commit is contained in:
2023-01-03 19:04:11 +01:00
parent 0234bf3fc8
commit f1cbea5b8a
8 changed files with 19 additions and 145 deletions

20
src/window.cs Normal file
View File

@@ -0,0 +1,20 @@
using Godot;
using System;
public partial class window : Node
{
public override void _Ready()
{
ProjectSettings.SetSetting("physics/common/physics_ticks_per_second", Performance.GetMonitor(Performance.Monitor.TimeFps));
}
public override void _Process(double delta)
{
if (Input.IsActionJustPressed("fullscreen"))
{
if (DisplayServer.WindowGetMode() == DisplayServer.WindowMode.Fullscreen)
DisplayServer.WindowSetMode(DisplayServer.WindowMode.Windowed);
else DisplayServer.WindowSetMode(DisplayServer.WindowMode.Fullscreen);
}
}
}