Advertisement
Guest User

Tiles

a guest
Jun 13th, 2013
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. package com.thecherno.rain.level.tile;
  2.  
  3. import com.thecherno.rain.graphics.Screen;
  4. import com.thecherno.rain.graphics.Sprite;
  5.  
  6. public class Tile {
  7.    
  8.     public int x, y;
  9.     public Sprite sprite;
  10.    
  11.     public static Tile grass = new GrassTile(Sprite.grass);
  12.     public static Tile voidTile = new voidTile(Sprite.voidSprite);
  13.    
  14.     public Tile(Sprite sprite) {
  15.         this.sprite = sprite;
  16.     }
  17.    
  18.     public void render(int x, int y, Screen screen) {
  19.        
  20.     }
  21.    
  22.     public boolean solid() {
  23.         return false;
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement