Advertisement
Guest User

Block.java

a guest
Mar 20th, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. package com.vali.game;
  2.  
  3. import com.vali.lib.Animation;
  4. import com.vali.lib.Entity;
  5.  
  6. public class Block extends Entity{
  7.  
  8.     int ID;
  9.     Animation def;
  10.     public Block(int x, int y, int id){
  11.         super(x,y,"images/tiles.png",16,16);
  12.         def = addAnimation(tex, new int[]{id-1}, 0, false, 16, 16);
  13.         playAnimation(def);
  14.     }
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement