Skip to content

Commit

Permalink
The Destroy Trigger was spelt wrong! whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian R McDonald committed Jan 29, 2012
1 parent 03764b8 commit d5bf6fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package
{
public class DestoryTutorialTrigger extends TutorialTrigger
public class DestroyTutorialTrigger extends TutorialTrigger
{
[Embed(source="../assets/destroyMessage.png")] protected var DesTut:Class;

public function DestoryTutorialTrigger(X:int, Y:int)
public function DestroyTutorialTrigger(X:int, Y:int)
{
super(X, Y);
SetUpMessage(DesTut);
Expand Down
2 changes: 1 addition & 1 deletion src/Exit.as
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package

public class Exit extends FlxSprite
{
[Embed(source="../assets/exit.png")] private static var ImgExit:Class;
[Embed(source="../assets/main_ExitFlag.png")] private static var ImgExit:Class;

function Exit(X:Number=0, Y:Number=0)
{
Expand Down
10 changes: 5 additions & 5 deletions src/MapMainMap.as
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,31 @@ package {
override public function addSpritesToLayerMainGame(onAddCallback:Function = null):void {
var obj:FlxSprite;

obj = new Exit(1192, 328);;
obj = new Player(64, 272);;
obj.x+=obj.offset.x;
obj.y+=obj.offset.y;
FlxG.state.add(obj);
if(onAddCallback != null)
onAddCallback(obj);
obj = new Player(64, 272);;
obj = new CreateTutorialTrigger(192, 272);;
obj.x+=obj.offset.x;
obj.y+=obj.offset.y;
FlxG.state.add(obj);
if(onAddCallback != null)
onAddCallback(obj);
obj = new CreateTutorialTrigger(192, 272);;
obj = new DestroyTutorialTrigger(608, 272);;
obj.x+=obj.offset.x;
obj.y+=obj.offset.y;
FlxG.state.add(obj);
if(onAddCallback != null)
onAddCallback(obj);
obj = new DestoryTutorialTrigger(608, 272);;
obj = new Pickup(448, 320);;
obj.x+=obj.offset.x;
obj.y+=obj.offset.y;
FlxG.state.add(obj);
if(onAddCallback != null)
onAddCallback(obj);
obj = new Pickup(448, 320);;
obj = new Exit(1168, 208);;
obj.x+=obj.offset.x;
obj.y+=obj.offset.y;
FlxG.state.add(obj);
Expand Down

0 comments on commit d5bf6fe

Please sign in to comment.