Advertisement
Guest User

Tile.java

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