Guest User

Tile

a guest
Jun 29th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. ..
  2. public class Tile { //abstract class
  3.     ..
  4.     public static Tile water = new WaterTile(Sprite.water);
  5.     .. 
  6.     public static final int waterColor = 0xFF0026FF;
  7.     ..
  8.     public Tile(Sprite sprite) {
  9.         this.sprite = sprite;
  10.     }
  11.  
  12.     public void render(int x, int y, Screen screen) {
  13.  
  14.     }
  15.    
  16.     public boolean isSolid() {
  17.         return false;
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment