mike: changed col_detect to screen_col_detect; speed up ball; paddle now has collison detection and reversing ability
This commit is contained in:
@@ -57,7 +57,7 @@ function check_keys(object)
|
||||
-- newObject.y = newObject.y + newObject.speed
|
||||
-- end
|
||||
|
||||
if col_detect(newObject, screen) then
|
||||
if screen_col_detect(newObject, screen) then
|
||||
return newObject
|
||||
else
|
||||
return object
|
||||
|
||||
Reference in New Issue
Block a user