mono_sample/game/TestSprite.cs

23 lines
511 B
C#
Raw Normal View History

2023-06-02 01:16:10 +02:00
using Godot;
using System;
public class TestSprite : Sprite
{
// Declare member variables here. Examples:
// private int a = 2;
// private string b = "text";
// 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(float delta)
{
//Position += new Vector2(PMath.sin(delta) * 100, PMath.cos(delta) * 100);
Position += new Vector2(1, 1);
}
}