Added hud
This commit is contained in:
parent
7e309db351
commit
31692d8b4e
6 changed files with 110 additions and 64 deletions
|
|
@ -108,9 +108,14 @@ public class BitmapText extends Entity{
|
|||
} // Loop Until All 256 Are Built
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the bound of this class
|
||||
*/
|
||||
public Rectangle getBound() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
return new Rectangle(
|
||||
(int)getLocation().getX(),
|
||||
(int)getLocation().getY(),
|
||||
16*(text!=null?text.length():0),16);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue