mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
22 lines
556 B
C#
Executable File
22 lines
556 B
C#
Executable File
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using Nez;
|
|
using Nez.Sprites;
|
|
|
|
namespace project_name
|
|
{
|
|
public class DefaultScene : Scene
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
SetDesignResolution(Screen.Width, Screen.Height, Scene.SceneResolutionPolicy.None);
|
|
|
|
CreateEntity("demo imgui draw commands")
|
|
.SetPosition(new Vector2(150, 150))
|
|
.AddComponent<DemoComponent>()
|
|
.AddComponent(new PrototypeSpriteRenderer(20, 20));
|
|
|
|
}
|
|
}
|
|
}
|