internal void drawTimer(int posX, int posY, int angle) { if (this.imgTimer == null) { this.imgTimer = JavaLib.createImage("timer"); } int num = 7 - angle * 8 / 360; int width = this.imgTimer.getWidth() / 8; int height = this.imgTimer.getHeight(); this.drawImage(this.imgTimer, new Rectangle(posX, posY, width, height), new Rectangle(num * width, 0, width, height), Color.White); }
public static Image createImage(string name) { return(JavaLib.createImage(name)); }