Description:
Clean up assets.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r40:c611f0add068 -

1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -18,4 +18,3
18 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.csproj.CoreCompileInputs.cache
18 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.csproj.CoreCompileInputs.cache
19 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.dll
19 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.dll
20 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.pdb
20 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.pdb
21 /Users/alys/repos/isometric-park-fna/FNA/obj/Debug/FNA.csprojAssemblyReference.cache
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -27,9 +27,7
27 private KeyboardState keyboardPrev = new KeyboardState();
27 private KeyboardState keyboardPrev = new KeyboardState();
28
28
29 private SpriteBatch batch;
29 private SpriteBatch batch;
30 private Texture2D texture;
31 private SoundEffect sound;
30 private SoundEffect sound;
32 private Song music;
33 private SpriteFont font;
31 private SpriteFont font;
34 private SpriteFont monoFont;
32 private SpriteFont monoFont;
35
33
@@ -88,8 +86,6
88 private FNAGame()
86 private FNAGame()
89 {
87 {
90 //this.device = new GraphicsDevice(GraphicsAdapter.DefaultAdapter, GraphicsProfile.)
88 //this.device = new GraphicsDevice(GraphicsAdapter.DefaultAdapter, GraphicsProfile.)
91
92 Console.Out.Write("TEST?");
93 #if DEBUG
89 #if DEBUG
94 foreach (System.Reflection.Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
90 foreach (System.Reflection.Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
95 {
91 {
@@ -160,31 +156,15
160
156
161 protected override void LoadContent()
157 protected override void LoadContent()
162 {
158 {
163 // Load textures, sounds, and so on in here...
164 // Create the batch...
159 // Create the batch...
165 batch = new SpriteBatch(GraphicsDevice);
160 batch = new SpriteBatch(GraphicsDevice);
166
161
167 // ... then load a texture from ./Content/FNATexture.png
168 texture = Content.Load<Texture2D>("FNATexture");
169 sound = Content.Load<SoundEffect>("FNASound");
162 sound = Content.Load<SoundEffect>("FNASound");
170 music = Content.Load<Song>("IfImWrong");
171 Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset");
163 Tile.TileSetTexture = Content.Load<Texture2D>(@"part4_tileset");
172
164
173 Line.initialize(GraphicsDevice);
165 Line.initialize(GraphicsDevice);
174
166
175 var fontBakeResult = TtfFontBaker.Bake(File.OpenRead(@"Content/DroidSans.ttf"),
167
176 25,
177 1024,
178 1024,
179 new[]
180 {
181 CharacterRange.BasicLatin,
182 CharacterRange.Latin1Supplement,
183 CharacterRange.LatinExtendedA
184 }
185 );
186
187
188 var bakedMono = TtfFontBaker.Bake(File.OpenRead(@"Content/iosevka-term-extendedmedium.ttf"),
168 var bakedMono = TtfFontBaker.Bake(File.OpenRead(@"Content/iosevka-term-extendedmedium.ttf"),
189 15,
169 15,
190 1024,
170 1024,
@@ -204,19 +184,16
204
184
205 this.debugWindow = new DebugWindow(this._imGuiRenderer, GraphicsDevice);
185 this.debugWindow = new DebugWindow(this._imGuiRenderer, GraphicsDevice);
206
186
207 font = fontBakeResult.CreateSpriteFont(GraphicsDevice);
187 //font = fontBakeResult.CreateSpriteFont(GraphicsDevice);
208 monoFont = bakedMono.CreateSpriteFont(GraphicsDevice);
188 monoFont = bakedMono.CreateSpriteFont(GraphicsDevice);
209 //DynamicSpriteFont font = DynamicSpriteFont.FromTtf(File.ReadAllBytes(@"Content/DroidSans.ttf"), 20);
210
189
211 }
190 }
212
191
213 protected override void UnloadContent()
192 protected override void UnloadContent()
214 {
193 {
215 // Clean up after yourself!
216 batch.Dispose();
194 batch.Dispose();
217 texture.Dispose();
218 sound.Dispose();
195 sound.Dispose();
219 music.Dispose();
196 Tile.TileSetTexture.Dispose();
220 }
197 }
221
198
222 Vector2 calculateMousegrid(Vector2 normalizedMousePos)
199 Vector2 calculateMousegrid(Vector2 normalizedMousePos)
@@ -341,7 +318,7
341 this.showGrid = !this.showGrid;
318 this.showGrid = !this.showGrid;
342
319
343 }
320 }
344 if (keyboardCur.IsKeyDown(Keys.Space) && keyboardPrev.IsKeyUp(Keys.Space))
321 if (keyboardCur.IsKeyDown(Keys.OemBackslash) && keyboardPrev.IsKeyUp(Keys.OemBackslash) && keyboardCur.IsKeyDown(Keys.LeftShift))
345 {
322 {
346 sound.Play(volume, pitch, pan);
323 sound.Play(volume, pitch, pan);
347 }
324 }
@@ -349,7 +326,7
349
326
350
327
351 #region gamerate_keys
328 #region gamerate_keys
352 if (keyboardCur.IsKeyDown(Keys.D0) && keyboardPrev.IsKeyUp(Keys.D0))
329 if (keyboardCur.IsKeyDown(Keys.D0) && keyboardPrev.IsKeyUp(Keys.D0) )
353 {
330 {
354 this.simulation.paused = !this.simulation.paused;
331 this.simulation.paused = !this.simulation.paused;
355
332
@@ -61,30 +61,12
61 </ProjectReference>
61 </ProjectReference>
62 </ItemGroup>
62 </ItemGroup>
63 <ItemGroup>
63 <ItemGroup>
64 <None Include="Content\FNATexture.png">
65 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
66 </None>
67 <None Include="Content\FNASound.wav">
64 <None Include="Content\FNASound.wav">
68 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
65 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
69 </None>
70 <None Include="Content\IfImWrong.mp3">
71 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
72 </None>
73 <None Include="Content\IfImWrong.ogg">
74 <CopyToOutputDirectory>Always</CopyToOutputDirectory>
75 </None>
76 <None Include="Content\Menlo.ttf">
77 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
78 </None>
66 </None>
79 <None Include="Content\DroidSans.ttf">
67 <None Include="Content\DroidSans.ttf">
80 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
68 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
81 </None>
69 </None>
82 <None Include="Content\ball.png">
83 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
84 </None>
85 <None Include="Content\paddle.png">
86 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
87 </None>
88 <None Include="packages.config" />
70 <None Include="packages.config" />
89 <None Include="Content\part4_tileset.png">
71 <None Include="Content\part4_tileset.png">
90 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
72 <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
1 NO CONTENT: file was removed, binary diff hidden
NO CONTENT: file was removed, binary diff hidden
You need to be logged in to leave comments. Login now