Compare commits
No commits in common. "473256d1058378175ad9ae6220429cc545203c30" and "4870964cc5e72eff208b178df87b38c882b69347" have entirely different histories.
473256d105
...
4870964cc5
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
public static class Clock {
|
public class Clock {
|
||||||
public static void AddModelTime(double seconds) {
|
public static void AddModelTime(double seconds) {
|
||||||
ModelTime += TimeSpan.FromSeconds(seconds);
|
ModelTime += TimeSpan.FromSeconds(seconds);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace SemiColinGames {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public class FSM<T> {
|
public class FSM<T> {
|
||||||
readonly Dictionary<string, IState<T>> states;
|
Dictionary<string, IState<T>> states;
|
||||||
IState<T> state;
|
IState<T> state;
|
||||||
|
|
||||||
public FSM(Dictionary<string, IState<T>> states, string initial) {
|
public FSM(Dictionary<string, IState<T>> states, string initial) {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
public static class Line {
|
public class Line {
|
||||||
public static Point[] Rasterize(Point p1, Point p2) {
|
public static Point[] Rasterize(Point p1, Point p2) {
|
||||||
return Line.Rasterize(p1.X, p1.Y, p2.X, p2.Y);
|
return Line.Rasterize(p1.X, p1.Y, p2.X, p2.Y);
|
||||||
}
|
}
|
||||||
|
@ -121,7 +121,7 @@ namespace SemiColinGames {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (paused) {
|
if (paused) {
|
||||||
string text = Strings.Paused;
|
string text = "Paused";
|
||||||
Vector2 position = Textures.BannerFont.CenteredOn(text, camera.HalfSize);
|
Vector2 position = Textures.BannerFont.CenteredOn(text, camera.HalfSize);
|
||||||
Text.DrawOutlined(spriteBatch, Textures.BannerFont, text, position, Color.White);
|
Text.DrawOutlined(spriteBatch, Textures.BannerFont, text, position, Color.White);
|
||||||
music.Pause();
|
music.Pause();
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
<Compile Include="$(MSBuildThisFileDirectory)NPC.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)NPC.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)SoundEffects.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)SoundEffects.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)Sprites.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)Sprites.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)Strings.cs" />
|
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)Text.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)Text.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)Textures.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)Textures.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)Clock.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)Clock.cs" />
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
// This file contains all user-visible strings which might one day wish to be translated.
|
|
||||||
namespace SemiColinGames {
|
|
||||||
public static class Strings {
|
|
||||||
public const string Paused = "Paused";
|
|
||||||
}
|
|
||||||
}
|
|
@ -7,8 +7,8 @@ namespace SemiColinGames {
|
|||||||
private readonly Stopwatch stopwatch = new Stopwatch();
|
private readonly Stopwatch stopwatch = new Stopwatch();
|
||||||
private readonly double targetTime;
|
private readonly double targetTime;
|
||||||
private readonly string name;
|
private readonly string name;
|
||||||
private readonly int[] histogram = new int[21];
|
|
||||||
private double startTime = 0.0;
|
private double startTime = 0.0;
|
||||||
|
private int[] histogram = new int[21];
|
||||||
private int totalFrames = 0;
|
private int totalFrames = 0;
|
||||||
|
|
||||||
public Timer(double targetTime, string name) {
|
public Timer(double targetTime, string name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user