LuposX / LetsCreateGame

My Classmates and Me are trying to create a 2d-game
MIT License
3 stars 1 forks source link

Method: Projectile hit wall #11

Closed GloeStoe closed 4 years ago

GloeStoe commented 4 years ago

The update method should check if a arrow hit a wall. If so, the abstract method "hitWall()" should get triggered. Add this method. The Classes that extend (Projectile) implement their own reactions to the hitting of the wall.

LuposX commented 4 years ago

26 needs to be done first.

LuposX commented 4 years ago

Information for bouncing off: https://stackoverflow.com/questions/55793641/2d-perfect-projectile-reflection-with-rotation https://math.stackexchange.com/questions/1737382/projectile-motion-solving-for-x-and-y-when-reflected-by-a-given-point-at-a-give

Physik unterricht "Einschlagswinkel" == "Auschlagswinkel" Aber speed muss verloren gehen bzw. je nach item untershciedlich viel brauchen eine variable die sagt wie viel speed verloren geht und je nach item ist die untershciedlich groß.

GloeStoe commented 4 years ago

Eingeführt. Die Methode wallHitSpecialReaction() ersetzt hitWall().