This commit is contained in:
Dukantic
2024-10-23 20:19:08 +02:00
parent 34900b4180
commit b84f5a3871
8 changed files with 170 additions and 4 deletions

30
script/Gameboy.cs Normal file
View File

@@ -0,0 +1,30 @@
using Godot;
using System;
public partial class Gameboy : CanvasLayer
{
[Export] CharacterBody2D player;
// Called when the node enters the scene tree for the first time.
public override void _Ready()
{
}
// Called every frame. 'delta' is the elapsed time since the previous frame.
public override void _Process(double delta)
{
}
void start()
{
player.Set("pausable", false);
this.Visible = true;
}
void stop()
{
player.Set("pausable", true);
this.Visible = false;
}
}