This hack for the collision map was a terrible idea

I'm committing these changes before undoing these, and coding it properly.
This commit is contained in:
Kayne Ruse
2014-07-01 22:04:45 +10:00
parent 8c9d071c7a
commit 8df1ecd804
8 changed files with 45 additions and 21 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
print("Lua script check (./rsc)")
print("Lua script check")
--uber lazy declarations
function square(x) return x*x end
@@ -33,10 +33,10 @@ end
newRoom = RoomMgr.CreateRoom("overworld")
pager = Room.GetPager(newRoom)
regionTable = {
RegionPager.GetRegion(pager, 0, 0),
RegionPager.GetRegion(pager, 0, -20),
RegionPager.GetRegion(pager, -20, 0),
RegionPager.GetRegion(pager, -20, -20)
RegionPager.GetRegion(pager, Region.GetWidth() * 0, Region.GetHeight() * 0),
RegionPager.GetRegion(pager, Region.GetWidth() *-1, Region.GetHeight() * 0),
RegionPager.GetRegion(pager, Region.GetWidth() * 0, Region.GetHeight() *-1),
RegionPager.GetRegion(pager, Region.GetWidth() *-1, Region.GetHeight() *-1)
}
print("Finished the lua script")