Pong/GodotCharacter.cs

17 lines
266 B
C#
Raw Normal View History

2023-05-17 03:28:26 +00:00
using Godot;
namespace Pong;
public partial class GodotCharacter : Sprite2D
{
private const double Meter = 10;
[Export]
private double _moveSpeed;
public override void _Process(double delta)
{
Position += Vector2.Right * Meter * _moveSpeed * delta;
}
}