Back to project page iSlide.
The source code is released under:
MIT License
If you think the Android project iSlide listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.csun.group2.islide.engine.entity; /* ww w . jav a 2s.com*/ import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import edu.csun.group2.islide.interfaces.IRenderable; public class SlideTile implements IRenderable { public Sprite sprite; public int x; public int y; public int width; public int height; public int tile_id; public SlideTile(int x, int y, int width, int height, int id, Sprite sprite) { this.x = x; this.y = y; this.width = width; this.height = height; this.tile_id = id; this.sprite = sprite; } @Override public void update(long elapsedMillis) { this.sprite.setX(this.x); this.sprite.setY(this.y); } @Override public void draw(SpriteBatch spriteBatch) { this.sprite.draw(spriteBatch); } }