Added dll

This commit is contained in:
Michael Chen 2018-01-11 16:40:36 +01:00
parent 05f523b138
commit db5f91ccf7
3 changed files with 1 additions and 0 deletions

BIN
Dokumentation.pdf Normal file

Binary file not shown.

Binary file not shown.

View File

@ -133,6 +133,7 @@ void BALL_Update(Ball * obj, Paddle * paddle){
if (BALL_CollideWithRect(obj, &(paddle->TargetRect))) { if (BALL_CollideWithRect(obj, &(paddle->TargetRect))) {
(obj->Location) = vectorSub((obj->Location), lastMomentum); // Maybe remove this (obj->Location) = vectorSub((obj->Location), lastMomentum); // Maybe remove this
BALL_SteerMomentum(obj, &(paddle->TargetRect));
(obj->Location) = vectorAdd((obj->Location), (obj->Momentum)); // Maybe remove this (obj->Location) = vectorAdd((obj->Location), (obj->Momentum)); // Maybe remove this
} }