TriCot-Game-Studio / bullets

bullet heck game
MIT License
0 stars 0 forks source link

bounce #15

Closed AlexShepherd closed 3 years ago

AlexShepherd commented 3 years ago
AdamSpannbauer commented 3 years ago

@AlexShepherd

if you want a crack at bouncing bullets the psuedo code is:

if offscreen horizontally:
    dx *= -1
if offscreen vertically:
    dy *= -1