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