欢迎来到 Luma Engine 官方 Wiki!
Luma Engine 是一个使用 C++ 构建的 2D 游戏引擎,支持 C# 脚本和编辑器插件扩展。
using Luma.SDK; public class PlayerController : Script { [Export] public float Speed = 5.0f; public override void OnUpdate(float deltaTime) { if (Input.IsKeyPressed(Scancode.D)) transform.Position += Vector2.Right * Speed * deltaTime; } }
using Luma.SDK.Plugins; public class MyPlugin : EditorPlugin { public override string Id => "com.example.plugin"; public override string Name => "我的插件"; public override string Version => "1.0.0"; }
There was an error while loading. Please reload this page.