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); }
protected override void Dispose(bool disposing) { this.javalib = (JavaLib)null; base.Dispose(disposing); }
public void MyCallbackFunction() { this.javalib = new JavaLib((Game)this, JavaLibGame.GraphicsDeviceManager.GraphicsDevice); this.javalib.LoadMIDlet(this.loadMIDlet()); JavaLibGame.isLoaded = true; }
public static Image createImage(string name) { return(JavaLib.createImage(name)); }