mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2026-02-01 19:10:16 +07:00
new scene and game template
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Nez;
|
||||
using Nez.Sprites;
|
||||
|
||||
namespace project_name
|
||||
{
|
||||
@@ -10,8 +11,6 @@ namespace project_name
|
||||
{
|
||||
SetDesignResolution(Screen.Width, Screen.Height, Scene.SceneResolutionPolicy.None);
|
||||
|
||||
AddRenderer(new DefaultRenderer());
|
||||
|
||||
CreateEntity("demo imgui draw commands")
|
||||
.SetPosition(new Vector2(150, 150))
|
||||
.AddComponent<DemoComponent>()
|
||||
@@ -20,7 +19,7 @@ namespace project_name
|
||||
var logo = Content.Load<Texture2D>("nez-logo-black");
|
||||
CreateEntity("logo")
|
||||
.SetPosition(Screen.Center)
|
||||
.AddComponent(new Nez.Sprites.Sprite(logo));
|
||||
.AddComponent(new SpriteRenderer(logo));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user