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:
public static void play(Graphics g){
actor.move(g);
actor.scrollMap(g);
Level.drawTiles(g);
SpriteTool.drawSprites(g);
actor.draw(g);
g.translate(-Actor.xt,-Actor.yt);