Merge branch 'dev' into ai

This commit is contained in:
Maruno17
2023-03-09 18:31:30 +00:00
30 changed files with 8535 additions and 8488 deletions

View File

@@ -127,6 +127,16 @@ module Enumerable
end
end
#===============================================================================
# Collision testing
#===============================================================================
class Rect < Object
def contains?(cx, cy)
return cx >= self.x && cx < self.x + self.width &&
cy >= self.y && cy < self.y + self.height
end
end
#===============================================================================
# class File
#===============================================================================