Exemplo n.º 1
0
        // Create new arrow/fireball
        public void newArrowProjectile(Point p, float angle)
        {
            TransparentPictureBox newArrow = new TransparentPictureBox(arrow.getZOrder());

            newArrow.Image = arrow.Image;
            newArrow.rotateTo(angle);
            newArrow.SetBounds((int)p.getX(), (int)p.getY(), arrow.Width, arrow.Height);
            arrowList.Add(newArrow);
            gamePanel.Controls.Add(newArrow);
            newArrow.BringToFront();
        }
Exemplo n.º 2
0
        public void newFireball(Point p, float angle)
        {
            TransparentPictureBox newFireball = new TransparentPictureBox(fireball.getZOrder());

            newFireball.Image = fireball.Image;
            newFireball.rotateTo(angle);
            newFireball.SetBounds((int)p.getX(), (int)p.getY(), fireball.Width, fireball.Height);
            fireballList.Add(newFireball);
            gamePanel.Controls.Add(newFireball);
            newFireball.BringToFront();
        }
Exemplo n.º 3
0
 public void drawRoom(Point p)
 {
     room.SetBounds((int)p.getX() - room.Width / 2, (int)p.getY() - room.Height / 2, 1840, 1600);
 }