Added dll
This commit is contained in:
parent
05f523b138
commit
db5f91ccf7
BIN
Dokumentation.pdf
Normal file
BIN
Dokumentation.pdf
Normal file
Binary file not shown.
BIN
bin/zlib1.dll
BIN
bin/zlib1.dll
Binary file not shown.
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user