Commits

Jake Albano committed 07cc95c

Updated Enemy class to work with animation (super constructor arguments missing);

  • Participants
  • Parent commits 08c94ff

Comments (0)

Files changed (5)

obj/IfritConfig.old

     </define>
     <define append="true">
       <name>CONFIG::timeStamp</name>
-      <value>'11/3/2011'</value>
+      <value>'11/4/2011'</value>
     </define>
     <verbose-stacktraces>true</verbose-stacktraces>
     <source-path append="true">
-      <path-element>C:\Dev\Flash Projects\ifrit\src</path-element>
-      <path-element>C:\Program Files\FlashDevelop\Library\AS3\classes</path-element>
+      <path-element>C:\Users\Jake\Documents\FlashDevelop\Ifrit\src</path-element>
+      <path-element>C:\Program Files (x86)\FlashDevelop\Library\AS3\classes</path-element>
     </source-path>
   </compiler>
   <file-specs>
-    <path-element>C:\Dev\Flash Projects\ifrit\src\Game.as</path-element>
+    <path-element>C:\Users\Jake\Documents\FlashDevelop\Ifrit\src\Game.as</path-element>
   </file-specs>
   <default-background-color>#FFFFFF</default-background-color>
   <default-frame-rate>30</default-frame-rate>

obj/IfritConfig.xml

     </define>
     <define append="true">
       <name>CONFIG::timeStamp</name>
-      <value>'11/3/2011'</value>
+      <value>'11/4/2011'</value>
     </define>
     <verbose-stacktraces>true</verbose-stacktraces>
     <source-path append="true">
-      <path-element>C:\Dev\Flash Projects\ifrit\src</path-element>
-      <path-element>C:\Program Files\FlashDevelop\Library\AS3\classes</path-element>
+      <path-element>C:\Users\Jake\Documents\FlashDevelop\Ifrit\src</path-element>
+      <path-element>C:\Program Files (x86)\FlashDevelop\Library\AS3\classes</path-element>
     </source-path>
   </compiler>
   <file-specs>
-    <path-element>C:\Dev\Flash Projects\ifrit\src\Game.as</path-element>
+    <path-element>C:\Users\Jake\Documents\FlashDevelop\Ifrit\src\Game.as</path-element>
   </file-specs>
   <default-background-color>#FFFFFF</default-background-color>
   <default-frame-rate>30</default-frame-rate>

src/ifrit/Enemy.as

 		
 		public function Enemy(x:Number, y:Number) 
 		{
-			super(x, y, Library.IMG("enemy.png") );
+			super(x, y, Library.IMG("enemy.png"), 13, 23 );
 			this.lastPosition = new Point(x, y);
 			this.heading = true;
 			this.fleeMode = false;
 			this.container = new Sprite;
 			addChild(container);
 			graphic = new Animation(bitmap, frameWidth, frameHeight);
+			
 			graphic.add("stand", [1], 0, true);
 			graphic.add("walk", [0, 1, 2, 3], 6, true);
 			graphic.add("attack", [6, 7, 8, 9], 12, false);

src/ifrit/Player.as

 	{		
 		public function Player(x:Number, y:Number) 
 		{
-			super( x, y, Library.IMG("mageWalk.png"), 18, 25 );
+			super( x, y, Library.IMG("mageAtkWalk.png"), 18, 25 );
 			this.friendly = true;
 		}