Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.image.BufferedImage;
- import ea.internal.io.ImageLoader;
- import java.io.*;
- /**
- * Write a description of class Coin here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Coin
- {
- private int animation = 0;
- public BufferedImage coinBil[] = new BufferedImage[6];
- public Coin(){
- }
- public int animiereCoin(){
- if(animation <5){
- animation++;
- }else{
- animation = 0;
- }
- return animation;
- }
- public void ladeCoin(){
- for(int i =0; i<coinBil.length; i++){
- coinBil[i] = ImageLoader.loadExternalImage("object/coin/" + (i+1)+ ".png");
- }
- }
- }
Add Comment
Please, Sign In to add comment