DasBabyPixel / Orbits

0 stars 1 forks source link

Steuerung #10

Open m-mm-12 opened 1 year ago

m-mm-12 commented 1 year ago

-EINE Taste (um in Orbit einzutreten + Ball schießen) (-zweite Taste für Powerups) -Möglichkeit um Spiel zu stoppen (Esc)

DasBabyPixel commented 1 year ago

Möglichkeit um Spiel zu stoppen auch in die Mitte des Spielfeldes tippen für android aber auch für pc

Nibelcole commented 1 year ago

zur Festlegung, ob der Ball sich links oder rechts vom Orbitmittelpunkt befindet:

Variablen: b: Ball xp/yp: X-/Y-Position des Balls xv/yv: X-/Y-Wert des Ballvektors x/y: X-/Y-Position des Orbitmittelpunkts

Wenn (b.xp - (b.xp+b.xv))(y - (b.yp+b.yv)) > (b.yp - (b.yp+b.yv))(x - (b.xp+b.xv)) zutrifft, ist der Mittelpunkt des Orbits links vom Mittelpunkt, ansonsten rechts (Ausnahme: Wenn sie gleich sind, liegen sie aber auf der gleichen Linie)