Tuesday, May 1, 2012

Make-Up Work

Minor Project 8: Pseudo Code has been posted on the blog previously:

http://zckohlberg-gdd200.blogspot.com/2012/03/minor-project-8.html

Minor Project 11: Write a function that responds to a listener, function below:

public function fl_KeyboardDownHandler(event:KeyboardEvent):void
        {
            switch (event.keyCode)
            {
                case Keyboard.A:
                case Keyboard.LEFT:
                    hspeed = -6;
                    break;
                case Keyboard.D:
                case Keyboard.RIGHT:
                    hspeed = 6;
                    break;
                case Keyboard.W:
                case Keyboard.UP:
                    vspeed = -6;
                    break;
                case Keyboard.S:
                case Keyboard.DOWN:
                    vspeed = 6;
                    break;
            }
        }

Minor Project 14: I believe we went over this problem in class. My primary issue at the time was using the line-drawing function to display attacks from the turrets.

Major Project 12: The checklist created after Professor Faye's class has been posted on this blog:

http://zckohlberg-gdd200.blogspot.com/2012/04/prioritized-task-list.html

Monday, April 30, 2012

Task List

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 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;
        }
    }
}

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

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

Wednesday, March 28, 2012

Major Project 9 - Week 1 Milestones



Sam:
-Complete a storyboard for the game's intro movie.

Zach:
-Complete a simple prototype level with a character that moves using WASD and always faces the mouse pointer.

Mike:
-Design each of the game menus: main menu, high score menu, and in-game upgrade menu.