Zach
-Convert Player to a class
-Correct turret line-drawing function
-Allow enemy to chase player when it passes the gate
-Add score
-Add turret creation
Sam
-Menu & intro movie
-Sounds & sound code
Mike
-Enemy spawning code
-Sounds & sound code
Monday, April 30, 2012
Monday, April 23, 2012
Code
The code below has yet to be debugged.
package
{
public class GoatEnemy
{
private var health:int;
private var hspeed:int;
private var vspeed:int;
private var image:MovieClip;
private var x:int;
private var y:int;
public function GoatEnemy(iniHealth:int,iniImage:MovieClip,iniX:int,iniY:int)
{
health = iniHealth;
hspeed = 0;
vspeed = 0;
image = iniImage;
x = iniX;
y = iniY;
}
public function GoatEnemy()
{
this(10,null,0,0);
}
public function update():void
{
x += hspeed;
y += vspeed;
image.x = x;
image.y = y;
}
public function damage(dmg:int):void
{
health = health - dmg;
}
public function getHealth():int
{
return health;
}
public function setImage(nImage:MovieClip):void
{
image = nImage;
}
public function getImage():MovieClip
{
return image;
}
public function setLoc(nLoc:Point):void
{
x = nLoc.x;
y = nLoc.y;
}
public function getX():int
{
return x;
}
public function getY():int
{
return y;
}
}
}
package
{
public class GoatTurret
{
private var image:MovieClip;
private var x:int;
private var y:int;
public function GoatTurret(iniImage:MovieClip,iniX:int,iniY:int)
{
image = iniImage;
x = iniX;
y = iniY;
}
public function GoatTurret()
{
this(null,0,0);
}
public function update():void
{
//Nothing for now
}
public function setImage(nImage:MovieClip):void
{
image = nImage;
}
public function getImage():MovieClip
{
return image;
}
public function setLoc(nLoc:Point):void
{
x = nLoc.x;
y = nLoc.y;
}
public function getX():int
{
return x;
}
public function getY():int
{
return y;
}
}
}
package
{
public class GoatEnemy
{
private var health:int;
private var hspeed:int;
private var vspeed:int;
private var image:MovieClip;
private var x:int;
private var y:int;
public function GoatEnemy(iniHealth:int,iniImage:MovieClip,iniX:int,iniY:int)
{
health = iniHealth;
hspeed = 0;
vspeed = 0;
image = iniImage;
x = iniX;
y = iniY;
}
public function GoatEnemy()
{
this(10,null,0,0);
}
public function update():void
{
x += hspeed;
y += vspeed;
image.x = x;
image.y = y;
}
public function damage(dmg:int):void
{
health = health - dmg;
}
public function getHealth():int
{
return health;
}
public function setImage(nImage:MovieClip):void
{
image = nImage;
}
public function getImage():MovieClip
{
return image;
}
public function setLoc(nLoc:Point):void
{
x = nLoc.x;
y = nLoc.y;
}
public function getX():int
{
return x;
}
public function getY():int
{
return y;
}
}
}
package
{
public class GoatTurret
{
private var image:MovieClip;
private var x:int;
private var y:int;
public function GoatTurret(iniImage:MovieClip,iniX:int,iniY:int)
{
image = iniImage;
x = iniX;
y = iniY;
}
public function GoatTurret()
{
this(null,0,0);
}
public function update():void
{
//Nothing for now
}
public function setImage(nImage:MovieClip):void
{
image = nImage;
}
public function getImage():MovieClip
{
return image;
}
public function setLoc(nLoc:Point):void
{
x = nLoc.x;
y = nLoc.y;
}
public function getX():int
{
return x;
}
public function getY():int
{
return y;
}
}
}
Wednesday, April 18, 2012
Task list for 4/23
Zach:
-Create enemy & turret classes
-Create node class
-Add interaction between node and enemies
Sam:
-Complete player, enemy, and turret design
-Begin animations for in-game objects(firing animation, death animation)
Mike:
-Design enemy, turret, and player stats
-Initial design for wave progression
-Create enemy & turret classes
-Create node class
-Add interaction between node and enemies
Sam:
-Complete player, enemy, and turret design
-Begin animations for in-game objects(firing animation, death animation)
Mike:
-Design enemy, turret, and player stats
-Initial design for wave progression
Wednesday, April 11, 2012
Wednesday, April 4, 2012
Week 2 Milestones
Zach
-Smoother player movement, fix bugs
-Add obstacles(walls, furniture, taxidermy)
Sam
-Begin intro movie graphics & animations
Mike
-Design game level
-Begin enemy design
Subscribe to:
Posts (Atom)