Skip to content

Commit

Permalink
Fixed the bug with enemies not being unloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
thakyZ committed Mar 18, 2015
1 parent daa66da commit 7470e7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions WrathOfJohn/WrathOfJohn/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,10 @@ public override void Draw(GameTime gameTime)
{
platformRectangles.RemoveRange(0, platformRectangles.Count);
platformList.RemoveRange(0, platformList.Count);
cEnemyList.RemoveRange(0, cEnemyList.Count);
sEnemyList.RemoveRange(0, sEnemyList.Count);
tEnemyList.RemoveRange(0, tEnemyList.Count);


SpawnBricks(level);

Expand Down
2 changes: 1 addition & 1 deletion WrathOfJohn/WrathOfJohn/Maps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static List<string> Plains()
Lines.Add("................................................................................................................................................................................................................................................................");
Lines.Add(".......................................................................................................................................................633338.....................................33333333333333................................................");
Lines.Add(".......................................................................................234............................................................3..............................33..........3bbbbbbbbbbbbbb3....333333333333333333333......................");
Lines.Add("................................................................................234....bbb8.....................................................3..................................33bb33.......3bbbbbbbbbbbbbbbb3.33bbbbbbbbbbbbbbbbbbbbb3.....................");
Lines.Add("............>...................................................................234....bbb8.....................................................3..................................33bb33.......3bbbbbbbbbbbbbbbb3.33bbbbbbbbbbbbbbbbbbbbb3.....................");
Lines.Add("................................3..................3...............638....638..........bbbb8...................................................6b.................................6bbbbbb3....33bbbbbbbbbbbbbbbbbb3bbbbbbbbbbbbbbbbbbbbbbbb.....................");
Lines.Add("......................3.........b.................6b8.............6bbb....bbb8.........bbbbb38................................................6bb38..............................6bbbbbbbb3333bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb3....................");
Lines.Add("3333333333333333333333b333333333b33333333333333333bbb3333333333333bbbb....bbbb333333333bbbbbbb33333333333333..6333333.....33333333333333333333bbbbb33333333..............63333333bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb33333333333333333333");
Expand Down

0 comments on commit 7470e7f

Please sign in to comment.