Added FPS counter and testing larger world size memory usage
This commit is contained in:
parent
75228367d0
commit
ab1605cf41
@ -6,8 +6,8 @@ namespace Tiles;
|
||||
public class Game
|
||||
{
|
||||
const int _tileSize = 8;
|
||||
const int _worldWidth = 1000;
|
||||
const int _worldHeight = 1000;
|
||||
const int _worldWidth = 2000;
|
||||
const int _worldHeight = 2000;
|
||||
|
||||
private int _screenWidth;
|
||||
private int _screenHeight;
|
||||
@ -139,6 +139,7 @@ public class Game
|
||||
Raylib.DrawText("Global: " + _playerPosition.ToString(), textPositionX, textPositionY + (textSize*2), textSize, Color.White);
|
||||
Raylib.DrawText("Grid: " + GetGridPositionFromGlobalPosition((int)_playerPosition.X, (int)_playerPosition.Y).ToString().ToUpper(),
|
||||
textPositionX, textPositionY + (textSize * 3), textSize, Color.White);
|
||||
Raylib.DrawText("FPS: " + Raylib.GetFPS(), textPositionX, textPositionY + (textSize*4), textSize, Color.White);
|
||||
}
|
||||
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("Tiles")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ea6267d407dae7d4981288325746fe1899ea0d97")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+75228367d0d87d3758b20be7fd09e3038af1f1c7")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("Tiles")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("Tiles")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
@ -1 +1 @@
|
||||
751e661809e7029162ecad1e1e6ec0d5e40f6b6270e4727ea3241e818e0aec19
|
||||
cae709149bdcf00c3bc3e20eb638da90c936807ebc10f2db91589fe9edf764da
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user