예제 #1
0
 public Water(int x, int y, Tile.ID type)
     : base(x, y, type)
 {
     water = new Animation();
     getImage();
 }
예제 #2
0
 public Lava(int x, int y, Tile.ID type)
     : base(x, y, type)
 {
     lava = new Animation();
     getImage();
 }
예제 #3
0
 private void loadAnimation()
 {
     mySkull = new Animation();
     Bitmap bitmap = Properties.Resources.skull;
     for(int i=0;i<bitmap.Width/32;i++){
         Image img = bitmap.Clone(new Rectangle(i * 32, 0, 32, 32), bitmap.PixelFormat);
         mySkull.addScene(img, 500);
     }
 }
예제 #4
0
 private void loadRoll()
 {
     roll=new Animation();
     Bitmap bitmap=Properties.Resources.alma_roll;
     for (int i = 0; i < bitmap.Width / 32; i++)
     {
         Image image = bitmap.Clone(new Rectangle(i * 32, 0, 32, 32), bitmap.PixelFormat);
         roll.addScene(image, 150);
     }
 }
예제 #5
0
 private void loadAnimation()
 {
     Don =new Animation();
     Bitmap bitmap = Properties.Resources.DonMedusa;
     for (int i = 0; i < bitmap.Width / 32; i++)
     {
         Image image = bitmap.Clone(new Rectangle(i * 32, 0, 32, 32), bitmap.PixelFormat);
         Don.addScene(image, 500);
     }
 }