Clash of Clans mit Javascript

  • JavaScript

    Clash of Clans mit Javascript

    Hallo Leute,
    ich programmiere zurzeit ein Spiel wie Clash of Clans mit HTML 5 und Javascript.
    Es läuft alles gut, dass Problem ist nur, dass der Spieler selbst entscheiden soll wo er dass Gebäude bauen soll.
    Also drückt er auf Bauen, ein Popup öffnet sich und er wählt ein Gebäude aus danach soll er auf der Karte eine Position andrücken.
    Dass Problem ist: wie werte ich in Javascript die Mausposition aus und stelle genau da dass Bild hin?
    Bei der Bild Position währe doch style="top, left" möglich? Aber mir fehlen ja die Mauskoordinaten
    Viele Grüße,
    DragonSlayerMarc
    There are only 10 types of people in the world: Those who understand binary and those who don't.