diff --git a/CREDITS b/CREDITS
index cfaff1e..b3f12f2 100644
--- a/CREDITS
+++ b/CREDITS
@@ -2,8 +2,9 @@ Credits for the used resources:
- WorldMap.jpg = http://www.foofa.net/maps/UnfairyTales/
- Darkville Farms Level
* character: http://www.spriters-resource.com/custom_edited/zelda/sheet/17565
+ * enemy: http://www.spriters-resource.com/snes/zeldalinkpast/sheet/7587
-
+- Postcards: http://env1ro.deviantart.com/gallery/12151317#/d29sqn3
- Maps = http://www.spriters-resource.com/snes/zeldalinkpast/ , ``Backgrounds & Maps" category
\ No newline at end of file
diff --git a/egp_story/Assets.cs b/egp_story/Assets.cs
index 407527b..11f2e37 100644
--- a/egp_story/Assets.cs
+++ b/egp_story/Assets.cs
@@ -42,6 +42,9 @@ public class Assets
public static Texture2D DarkvilleFarmsBackground { get; private set; }
public static Texture2D DarkvilleFarmsBackgroundMask { get; private set; }
+ public static Texture2D LoseMessage { get; private set; }
+ public static Texture2D WinMessage { get; private set; }
+
///
/// A blank 1x1 pixel (used by default for drawing lines)
///
@@ -73,6 +76,9 @@ public static void LoadAssets( ContentManager content )
BugWalkNorth = content.Load( "gfx/mobs/bug_walk_n" );
BugWalkEast = content.Load( "gfx/mobs/bug_walk_e" );
+ LoseMessage = content.Load( "gfx/postcard_lose" );
+ WinMessage = content.Load( "gfx/postcard_win" );
+
// create the blank pixel
GraphicsDeviceManager graphicsManager = ( GraphicsDeviceManager )
content.ServiceProvider.GetService( typeof( IGraphicsDeviceManager ) );
diff --git a/egp_story/GameActor.cs b/egp_story/GameActor.cs
index f9a8829..5c8401b 100644
--- a/egp_story/GameActor.cs
+++ b/egp_story/GameActor.cs
@@ -33,6 +33,7 @@ public abstract class GameActor : IDrawable
public AnimatedSprite ProjectileEastAnim { get; set; }
public AnimatedSprite CurrentAnimation { get; set; }
+ public bool IsDead { get; set; }
public Rectangle BoundingBox
{
diff --git a/egp_story/Levels/DarkvilleFarmsLevel.cs b/egp_story/Levels/DarkvilleFarmsLevel.cs
index 1208f29..c156b3e 100644
--- a/egp_story/Levels/DarkvilleFarmsLevel.cs
+++ b/egp_story/Levels/DarkvilleFarmsLevel.cs
@@ -19,6 +19,8 @@ public class DarkvilleFarmsLevel : IStoryLevel
{
#region IStoryLevel Members
private LevelMap _map;
+ private bool _gameEnded;
+ private bool _won;
public DarkvilleFarmsLevel( Game game )
{
@@ -51,12 +53,22 @@ public DarkvilleFarmsLevel( Game game )
public void Update( GameTime gameTime )
{
- _map.Update( gameTime );
+ if ( !_gameEnded ) {
+ _map.Update( gameTime );
+
+ if ( _map.ActorObjects.Count == 0 ) {
+ _gameEnded = true;
+ }
+ }
}
public void Draw( SpriteBatch spriteBatch, GameTime gameTime )
{
_map.Draw( spriteBatch, gameTime );
+
+ if ( _gameEnded ) {
+
+ }
}
#endregion
}
diff --git a/egp_storyContent/gfx/postcard_lose.pdn b/egp_storyContent/gfx/postcard_lose.pdn
new file mode 100644
index 0000000..aa65525
--- /dev/null
+++ b/egp_storyContent/gfx/postcard_lose.pdn
@@ -0,0 +1,2743 @@
+PDN3#