Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.vali.game;
- import com.vali.lib.Animation;
- import com.vali.lib.Entity;
- public class Block extends Entity{
- int ID;
- Animation def;
- public Block(int x, int y, int id){
- super(x,y,"images/tiles.png",16,16);
- def = addAnimation(tex, new int[]{id-1}, 0, false, 16, 16);
- playAnimation(def);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement