Advertisement
BigETI

Maßstab - Karte zu Textdraw

Jul 22nd, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. x := x Koordinate (Zeichenfläche)
  2. y := y Koordinate (Zeichenfläche)
  3. KL := Länge der Landschaft (y)
  4. KB := Breite der Landschaft (x)
  5. Kminx := Kleinster Punkt auf der Karte (x) (z.B. -3000.0)
  6. Kminy := Kleinster Punkt auf der Karte (y) (z.B. -3000.0)
  7. TKx := Texdraw Karte (x)
  8. TKy := Texdraw Karte (y)
  9. TKH := Texdraw Karte Höhe
  10. TKB := Texdraw Karte Breite
  11. Sx := Spielerposition (x)
  12. Sy := Spielerposition (y)
  13.  
  14. {x, y} = {(((Sx - Kminx) * TKB) / KB) + TKx, (((Sy - Kminy) * TKH) / KL) + TKy}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement