Fixed some little errors with the drawing functions.
[luagame.git] / base / Rect.lua
blob5da6a14b18cf6817ad3030b760ac5ba18eaffebf
1 --Rect object (used for collision detection)
3 Rect = {}
4 Rect.x = 0
5 Rect.y = 0
6 Rect.w = 0
7 Rect.h = 0
8 Rect.id = "" --string returned from collision tests
11 --creates a new rect
12 function Rect:new(o)
13 o = o or {}
14 setmetatable(o, self)
15 self.__index = self
16 return o
17 end