Beispiel #1
0
 public Bridge(FroggerBoard board, Point p, string board_name)
     : base(board,new Rectangle(p.x,p.y,1.0f,3.0f))
 {
     level=Level.Floor;
     animation=new FroggerAnimation("bridge");
     this.board_name = board_name;
 }
Beispiel #2
0
        public Rock(FroggerBoard board,Point p)
            : base(board,new Rectangle(p.x,p.y,1.0f,1.0f))
        {
            level=Level.Floor;
            animation=new FroggerAnimation("rock");
            animation.Seek(Utils.rand.Next(3));

            //this.MoveBy(new Point((float)Utils.rand.NextDouble()*0.1f-0.05f,(float)Utils.rand.NextDouble()*0.1f-0.05f));
        }
Beispiel #3
0
 public Log(FroggerBoard board,Point p)
     : base(board,new Rectangle(p.x,p.y,3.0f,1.0f))
 {
     animation=new FroggerAnimation("log");
 }
Beispiel #4
0
 public LittleFrog(FroggerBoard board,Point p)
     : base(board,new Rectangle(p.x,p.y,1.0f,1.0f))
 {
     level=Level.Walking;
     animation=new FroggerAnimation("little_frog");
 }
Beispiel #5
0
 public Home(FroggerBoard board,Point p)
     : base(board,new Rectangle(p.x,p.y,2.0f,2.0f))
 {
     level=Level.Floor;
     animation=new FroggerAnimation("home");
 }
Beispiel #6
0
 public Frog(FroggerBoard board, Point p)
     : base(board,new Rectangle(p.x,p.y,1.0f,1.0f))
 {
     starting_location = p;
     level=Level.Walking;
     animation=new FroggerAnimation("frog");
 }
Beispiel #7
0
        public Fly(FroggerBoard board,Point p)
            : base(board,new Rectangle(p.x,p.y,1.0f,1.0f))
        {
            level=Level.Air;
            animation=new FroggerAnimation("fly");

            //this.Go(new Point(1.0f,0.0f),float.PositiveInfinity);
        }