View difference between Paste ID: DFxktzKh and H2HmBEfa
SHOW: | | - or go back to the newest paste.
1
if y < 0 {
2
    vspeed = abs(vspeed)
3
}
4
if y > room_height {
5
    vspeed = -abs(vspeed)
6
}
7
if x < 0 {
8
    hspeed = abs(hspeed)
9
}
10
if x > room_width {
11
    hspeed = -abs(hspeed)
12
}