core jank

This commit is contained in:
Mike
2020-11-03 08:34:46 -08:00
parent 5317c2745d
commit 2869dffff5
6 changed files with 12 additions and 9 deletions

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -16,7 +16,7 @@ namespace project_name
.AddComponent<DemoComponent>()
.AddComponent(new PrototypeSpriteRenderer(20, 20));
var logo = Content.Load<Texture2D>("nez-logo-black");
var logo = Content.Load<Texture2D>("Textures/nez-logo-black");
CreateEntity("logo")
.SetPosition(Screen.Center)
.AddComponent(new SpriteRenderer(logo));

View File

@@ -21,7 +21,9 @@ namespace project_name
Scene = new DefaultScene();
#if DEBUG
// System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
#if NET47
System.Diagnostics.Debug.Listeners.Add(new System.Diagnostics.TextWriterTraceListener(System.Console.Out));
#endif
// optionally render Nez in an ImGui window
var imGuiManager = new ImGuiManager();

View File

@@ -75,7 +75,7 @@ namespace project_name
{
Console.WriteLine($"----- no case for library load: {libraryName} ---------");
}
Console.WriteLine($"----- no case for library load: {libHandle} ---------");
return libHandle;
}
}

View File

@@ -15,8 +15,8 @@
<ItemGroup>
<ProjectReference Include="../FNA/FNA.Core.csproj"/>
<ProjectReference Include="../Nez/Nez.Portable/Nez.FNA.Standard.csproj"/>
<ProjectReference Include="../Nez/Nez.Persistence/Nez.FNA.Persistence.csproj" />
<ProjectReference Include="../Nez/Nez.ImGui/Nez.FNA.ImGui.csproj"/>
<ProjectReference Include="../Nez/Nez.Persistence/Nez.FNA.Standard.Persistence.csproj" />
<ProjectReference Include="../Nez/Nez.ImGui/Nez.FNA.Standard.ImGui.csproj"/>
<!-- <ProjectReference Include="../Nez/Nez.FarseerPhysics/Nez.FNA.FarseerPhysics.csproj" /> -->
</ItemGroup>
@@ -51,7 +51,7 @@
<None Remove="CompiledContent\.*"/>
</ItemGroup>
<!-- optional: MonoGame's content pipeline needs this defined
<!-- optional: MonoGame's content pipeline needs this defined. Uncomment if you intend to use it.
<ItemGroup>
<MonoGameContentReference Include="CompiledContent\Content.mgcb"/>
</ItemGroup>