Ejemplo n.º 1
0
 public Cat(System.Media.SoundPlayer boing)
 {
     c       = new Controller();
     state   = CatState.ALIVE;
     physics = new PhysicsObject(new Position(100, 100), radius);
     physics.addAccel(speed * 10, speed * 10);
     drawElementAlive = new DrawElement("Assets/catAlive.png");
     drawElementDying = new DrawElement("Assets/catDying.png");
     drawElementDead  = new DrawElement("Assets/catDead.png");
     this.boing       = boing;
 }
Ejemplo n.º 2
0
 public Stage()
 {
     gen = new Random(this.GetHashCode());
     this.drawElement = new DrawElement("Assets/stage.png");
     this.drawElement.setPos(screenX, screenY);
 }