FNA-VSCode-Template/project_name/DefaultScene.cs
Terrannus befae36401
Removed references to MonoGame Pipeline Tool
No longer included with MonoGame.
2021-10-20 16:14:31 +02:00

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));
}
}
}