Compare commits
No commits in common. "811df579509b02eba7b6af697ce0d4ffb3e055c6" and "d926d23b3f4053a0456e3a5cbef52381f8668ba6" have entirely different histories.
811df57950
...
d926d23b3f
@ -6,7 +6,7 @@ using System;
|
|||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
public class Camera {
|
public class Camera {
|
||||||
// Screen size in pixels is 1920x1080 divided by 4.
|
// Screen size in pixels is 1920x1080 divided by 4.
|
||||||
private Rectangle bbox = new Rectangle(0, 0, 1920 / 4, 1080 / 4);
|
private Rectangle bbox = new Rectangle(0, 0, 480, 270);
|
||||||
public int Width { get => bbox.Width; }
|
public int Width { get => bbox.Width; }
|
||||||
public int Height { get => bbox.Height; }
|
public int Height { get => bbox.Height; }
|
||||||
public int Left { get => bbox.Left; }
|
public int Left { get => bbox.Left; }
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
using System;
|
|
||||||
|
|
||||||
namespace SemiColinGames {
|
|
||||||
public interface IWorld : IDisposable {
|
|
||||||
void Update(float modelTime, History<Input> input);
|
|
||||||
Camera Camera { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -56,8 +56,7 @@ namespace SemiColinGames {
|
|||||||
GC.SuppressFinalize(this);
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Draw(bool isRunningSlowly, IWorld iworld, bool paused) {
|
public void Draw(bool isRunningSlowly, World world, bool paused) {
|
||||||
World world = (World) iworld;
|
|
||||||
graphics.SetRenderTarget(null);
|
graphics.SetRenderTarget(null);
|
||||||
graphics.Clear(backgroundColor);
|
graphics.Clear(backgroundColor);
|
||||||
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
<Compile Include="$(MSBuildThisFileDirectory)Camera.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)Camera.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)ExtensionMethods.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)FSM.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)FSM.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)IWorld.cs" />
|
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)NPC.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)NPC.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)ProfilingList.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)ProfilingList.cs" />
|
||||||
<Compile Include="$(MSBuildThisFileDirectory)SoundEffects.cs" />
|
<Compile Include="$(MSBuildThisFileDirectory)SoundEffects.cs" />
|
||||||
|
@ -22,7 +22,7 @@ namespace SemiColinGames {
|
|||||||
readonly Timer drawTimer = new Timer(TARGET_FRAME_TIME / 2.0, "DrawTimer");
|
readonly Timer drawTimer = new Timer(TARGET_FRAME_TIME / 2.0, "DrawTimer");
|
||||||
|
|
||||||
Scene scene;
|
Scene scene;
|
||||||
IWorld world;
|
World world;
|
||||||
|
|
||||||
public SneakGame() {
|
public SneakGame() {
|
||||||
Debug.WriteLine("MonoGame platform: " + PlatformInfo.MonoGamePlatform +
|
Debug.WriteLine("MonoGame platform: " + PlatformInfo.MonoGamePlatform +
|
||||||
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||||||
|
|
||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
|
|
||||||
public sealed class World : IWorld {
|
public sealed class World : IDisposable {
|
||||||
|
|
||||||
// Size of World in terms of tile grid.
|
// Size of World in terms of tile grid.
|
||||||
private int gridWidth;
|
private int gridWidth;
|
||||||
|
Loading…
Reference in New Issue
Block a user