mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2026-02-01 19:10:16 +07:00
fixes for PascalCase
This commit is contained in:
25
project_name/DefaultScene.cs
Normal file → Executable file
25
project_name/DefaultScene.cs
Normal file → Executable file
@@ -1,27 +1,26 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Nez;
|
||||
using Nez.ImGuiTools;
|
||||
|
||||
namespace project_name
|
||||
{
|
||||
public class DefaultScene : Scene
|
||||
public class DefaultScene : Scene
|
||||
{
|
||||
public override void initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
setDesignResolution(Screen.width, Screen.height, Scene.SceneResolutionPolicy.None);
|
||||
SetDesignResolution(Screen.Width, Screen.Height, Scene.SceneResolutionPolicy.None);
|
||||
|
||||
addRenderer(new DefaultRenderer());
|
||||
AddRenderer(new DefaultRenderer());
|
||||
|
||||
createEntity("demo imgui draw commands")
|
||||
.setPosition(new Vector2(150, 150))
|
||||
.addComponent<DemoComponent>()
|
||||
.addComponent(new PrototypeSprite(20, 20));
|
||||
CreateEntity("demo imgui draw commands")
|
||||
.SetPosition(new Vector2(150, 150))
|
||||
.AddComponent<DemoComponent>()
|
||||
.AddComponent(new PrototypeSprite(20, 20));
|
||||
|
||||
var logo = content.Load<Texture2D>("nez-logo-black");
|
||||
createEntity("logo")
|
||||
.setPosition(Screen.center)
|
||||
.addComponent(new Nez.Sprites.Sprite(logo));
|
||||
var logo = Content.Load<Texture2D>("nez-logo-black");
|
||||
CreateEntity("logo")
|
||||
.SetPosition(Screen.Center)
|
||||
.AddComponent(new Nez.Sprites.Sprite(logo));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user