diff --git a/ProjectName/ProjectName.Framework.csproj b/ProjectName/ProjectName.Framework.csproj
index 58e6a9b..5f721a3 100644
--- a/ProjectName/ProjectName.Framework.csproj
+++ b/ProjectName/ProjectName.Framework.csproj
@@ -27,6 +27,7 @@
+
diff --git a/ProjectName/ProjectNameGame.cs b/ProjectName/ProjectNameGame.cs
index 7949ffa..ab32b18 100644
--- a/ProjectName/ProjectNameGame.cs
+++ b/ProjectName/ProjectNameGame.cs
@@ -1,3 +1,4 @@
+using Encompass;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
@@ -7,6 +8,9 @@ namespace ProjectName
{
GraphicsDeviceManager graphics;
+ WorldBuilder WorldBuilder { get; } = new WorldBuilder();
+ World World { get; set; }
+
public ProjectNameGame()
{
graphics = new GraphicsDeviceManager(this);
@@ -21,7 +25,7 @@ namespace ProjectName
protected override void LoadContent()
{
- base.LoadContent();
+ World = WorldBuilder.Build();
}
protected override void UnloadContent()
@@ -31,21 +35,17 @@ namespace ProjectName
protected override void Update(GameTime gameTime)
{
- //
- // Insert your game update logic here.
- //
+ World.Update(gameTime.ElapsedGameTime.TotalSeconds);
base.Update(gameTime);
}
protected override void Draw(GameTime gameTime)
{
- //
- // Replace this with your own drawing code.
- //
-
GraphicsDevice.Clear(Color.CornflowerBlue);
+ World.Draw();
+
base.Draw(gameTime);
}
}