Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean testCollision(int Cx, int Cy)
- {
- for(Tile t : g.tileMap)
- {
- if(t.id == Tile.TILE_NORMAL)
- {
- return x + Cx >= t.x && x + Cx <= t.x + 32 && y + Cy >= t.y && y + Cy <= t.y + 32;
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement