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

7
.vscode/tasks.json vendored
View File

@ -5,12 +5,13 @@
"label": "dotnet Build and Run (Debug)", "label": "dotnet Build and Run (Debug)",
"type": "shell", "type": "shell",
"group": "build", "group": "build",
"osx":{ "options": {
"command": "dotnet ${workspaceFolder}/project_name/bin/Debug/project_name.dll", "cwd": "${workspaceFolder}/project_name",
"env": { "env": {
"DYLD_LIBRARY_PATH": "${workspaceFolder}/project_name/bin/Debug/osx/" "DYLD_LIBRARY_PATH": "${workspaceFolder}/project_name/bin/Debug/osx/"
}
}, },
}, "command": "dotnet ${workspaceFolder}/project_name/bin/Debug/project_name.dll",
"dependsOn": "Build (Debug)", "dependsOn": "Build (Debug)",
"problemMatcher": "$msCompile" "problemMatcher": "$msCompile"
}, },

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<DemoComponent>()
.AddComponent(new PrototypeSpriteRenderer(20, 20)); .AddComponent(new PrototypeSpriteRenderer(20, 20));
var logo = Content.Load<Texture2D>("nez-logo-black"); var logo = Content.Load<Texture2D>("Textures/nez-logo-black");
CreateEntity("logo") CreateEntity("logo")
.SetPosition(Screen.Center) .SetPosition(Screen.Center)
.AddComponent(new SpriteRenderer(logo)); .AddComponent(new SpriteRenderer(logo));

View File

@ -21,7 +21,9 @@ namespace project_name
Scene = new DefaultScene(); Scene = new DefaultScene();
#if DEBUG #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 // optionally render Nez in an ImGui window
var imGuiManager = new ImGuiManager(); 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: {libraryName} ---------");
} }
Console.WriteLine($"----- no case for library load: {libHandle} ---------");
return libHandle; return libHandle;
} }
} }

View File

@ -15,8 +15,8 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="../FNA/FNA.Core.csproj"/> <ProjectReference Include="../FNA/FNA.Core.csproj"/>
<ProjectReference Include="../Nez/Nez.Portable/Nez.FNA.Standard.csproj"/> <ProjectReference Include="../Nez/Nez.Portable/Nez.FNA.Standard.csproj"/>
<ProjectReference Include="../Nez/Nez.Persistence/Nez.FNA.Persistence.csproj" /> <ProjectReference Include="../Nez/Nez.Persistence/Nez.FNA.Standard.Persistence.csproj" />
<ProjectReference Include="../Nez/Nez.ImGui/Nez.FNA.ImGui.csproj"/> <ProjectReference Include="../Nez/Nez.ImGui/Nez.FNA.Standard.ImGui.csproj"/>
<!-- <ProjectReference Include="../Nez/Nez.FarseerPhysics/Nez.FNA.FarseerPhysics.csproj" /> --> <!-- <ProjectReference Include="../Nez/Nez.FarseerPhysics/Nez.FNA.FarseerPhysics.csproj" /> -->
</ItemGroup> </ItemGroup>
@ -51,7 +51,7 @@
<None Remove="CompiledContent\.*"/> <None Remove="CompiledContent\.*"/>
</ItemGroup> </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> <ItemGroup>
<MonoGameContentReference Include="CompiledContent\Content.mgcb"/> <MonoGameContentReference Include="CompiledContent\Content.mgcb"/>
</ItemGroup> </ItemGroup>