mirror of
https://github.com/prime31/FNA-VSCode-Template.git
synced 2025-10-31 21:50:44 +07:00
core jank
This commit is contained in:
parent
5317c2745d
commit
2869dffff5
7
.vscode/tasks.json
vendored
7
.vscode/tasks.json
vendored
@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
@ -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));
|
||||||
|
|||||||
@ -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();
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user