public Water(int x, int y, Tile.ID type) : base(x, y, type) { water = new Animation(); getImage(); }
public Lava(int x, int y, Tile.ID type) : base(x, y, type) { lava = new Animation(); getImage(); }
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); } }
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); } }
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); } }