Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if y < 0 {
- vspeed = abs(vspeed)
- }
- if y > room_height {
- vspeed = -abs(vspeed)
- }
- if x < 0 {
- hspeed = abs(hspeed)
- }
- if x > room_width {
- hspeed = -abs(hspeed)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement