31 lines
512 B
C#
31 lines
512 B
C#
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;
|
|
}
|
|
}
|