lundi 25 mai 2015
javafx translation
Posted on 17:29 by verona
Hallo.
import javax.microedition.lcdui.Graphics;
public void translate(int x,int y)
Translates the origin of the graphics context to the point (x, y) in the current coordinate system.
All coordinates used in subsequent rendering operations on this graphics context will be relative to this new origin.
Gibt es eigentlich sowas auch bei javafx? Der translation Befehl etc. koennen das jendenfalls nicht.
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Graphics;
public void translate(int x,int y)
Translates the origin of the graphics context to the point (x, y) in the current coordinate system.
All coordinates used in subsequent rendering operations on this graphics context will be relative to this new origin.
Gibt es eigentlich sowas auch bei javafx? Der translation Befehl etc. koennen das jendenfalls nicht.
import javax.microedition.lcdui.Graphics;
Java Code:
-
-
actor.move(g);
-
actor.scrollMap(g);
-
Level.drawTiles(g);
-
SpriteTool.drawSprites(g);
-
actor.draw(g);
-
-
g.translate(-Actor.xt,-Actor.yt);
javafx translation
Categories: javafx translation
Inscription à :
Publier les commentaires (Atom)
0 commentaires:
Enregistrer un commentaire