A simple .NET Framework to make 2D games quick and easy.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Progress

+57 -7
+13
.idea/.idea.Fjord.dir/.idea/.gitignore
··· 1 + # Default ignored files 2 + /shelf/ 3 + /workspace.xml 4 + # Rider ignored files 5 + /.idea.Fjord.iml 6 + /projectSettingsUpdater.xml 7 + /modules.xml 8 + /contentModel.xml 9 + # Editor-based HTTP Client requests 10 + /httpRequests/ 11 + # Datasource local storage ignored files 12 + /dataSources/ 13 + /dataSources.local.xml
+4
.idea/.idea.Fjord.dir/.idea/encodings.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <project version="4"> 3 + <component name="Encoding" addBOMForNewFiles="with BOM under Windows, with no BOM otherwise" /> 4 + </project>
+8
.idea/.idea.Fjord.dir/.idea/indexLayout.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <project version="4"> 3 + <component name="UserContentModel"> 4 + <attachedFolders /> 5 + <explicitIncludes /> 6 + <explicitExcludes /> 7 + </component> 8 + </project>
+6
.idea/.idea.Fjord.dir/.idea/vcs.xml
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <project version="4"> 3 + <component name="VcsDirectoryMappings"> 4 + <mapping directory="" vcs="Git" /> 5 + </component> 6 + </project>
+14 -3
GameManager.cs
··· 109 109 .Title("Debug") 110 110 .Container( 111 111 new UiBuilder() 112 - .Title("Scenes") 113 - .ForEach(SceneHandler.Scenes.ToList(), (val) => 112 + .Title("Unloaded Scenes") 113 + .ForEach(SceneHandler.Scenes.ToList().Where((v) => !SceneHandler.LoadedScenes.Contains(v.Key)).ToList(), (val) => 114 114 { 115 115 return new List<object>() { 116 116 new UiTitle(val.Key) , 117 117 new UiButton("Load", () => SceneHandler.Load(val.Key)), 118 - new UiButton("Unload", () => SceneHandler.Unload(val.Key)) 119 118 }; 119 + }) 120 + .Title("Loaded Scenes") 121 + .ForEach(SceneHandler.LoadedScenes, (scene) => 122 + { 123 + return new List<object>() 124 + { 125 + new UiTitle(scene), 126 + new UiButton("Unload", () => 127 + { 128 + SceneHandler.Unload(scene); 129 + }) 130 + }; 120 131 }) 121 132 .Build() 122 133 )
+12 -4
Program.cs
··· 34 34 h = 20 35 35 }; 36 36 37 - SDL_SetRenderDrawColor(Game.SDLRenderer, 255, 255, 255, 255); 38 - SDL_RenderFillRectF(Game.SDLRenderer, ref rect); 39 - SDL_SetRenderDrawColor(Game.SDLRenderer, 0, 0, 0, 255); 37 + // SDL_SetRenderDrawColor(Game.SDLRenderer, 255, 255, 255, 255); 38 + // SDL_RenderFillRectF(Game.SDLRenderer, ref rect); 39 + // SDL_SetRenderDrawColor(Game.SDLRenderer, 0, 0, 0, 255); 40 + 41 + Font.Draw(LocalMousePosition + new Vector2(-50, -50), Font.DefaultFont, LocalMousePosition.X.ToString(), 24, new SDL_Color() { 42 + r = 255, g = 255, b = 255, a = 255 43 + }); 44 + 45 + Font.Draw(LocalMousePosition + new Vector2(-50, -20), Font.DefaultFont, LocalMousePosition.Y.ToString(), 24, new SDL_Color() { 46 + r = 255, g = 255, b = 255, a = 255 47 + }); 40 48 41 49 new UiBuilder(new Vector2(200, 200), LocalMousePosition) 42 50 .Title("Test Ui") ··· 66 74 y = 0f, 67 75 w = 1f, 68 76 h = 1f, 69 - }).SetAllowWindowResize(false).SetAlwaysRebuildTexture(false)); 77 + }).SetAllowWindowResize(true).SetAlwaysRebuildTexture(false)); 70 78 SceneHandler.Load("Main"); 71 79 72 80 Game.Run();