Commits

VideroBoy committed 6218620

Update physics world constructor to Löve 0.7.0 syntax

  • Participants
  • Parent commits cb7ba7b

Comments (0)

Files changed (2)

File Space Ninja.tmproj

 <plist version="1.0">
 <dict>
 	<key>currentDocument</key>
-	<string>main.lua</string>
+	<string>levels.lua</string>
 	<key>documents</key>
 	<array>
 		<dict>
+			<key>expanded</key>
+			<true/>
 			<key>name</key>
 			<string>ai</string>
 			<key>regexFolderFilter</key>
 			<key>filename</key>
 			<string>actor.lua</string>
 			<key>lastUsed</key>
-			<date>2010-12-03T17:37:15Z</date>
+			<date>2010-12-05T18:07:16Z</date>
 		</dict>
 		<dict>
 			<key>filename</key>
 			<string>ai.lua</string>
 			<key>lastUsed</key>
-			<date>2010-10-19T16:31:01Z</date>
+			<date>2010-12-05T18:08:58Z</date>
 		</dict>
 		<dict>
 			<key>filename</key>
 			<key>filename</key>
 			<string>constants.lua</string>
 			<key>lastUsed</key>
-			<date>2010-12-03T17:37:07Z</date>
+			<date>2010-12-05T20:12:15Z</date>
 		</dict>
 		<dict>
 			<key>filename</key>
-			<string>graphics.lua</string>
-			<key>lastUsed</key>
-			<date>2010-12-03T01:40:49Z</date>
+			<string>gfx.lua</string>
 		</dict>
 		<dict>
 			<key>filename</key>
 			<string>levels.lua</string>
 			<key>lastUsed</key>
-			<date>2010-12-03T17:49:47Z</date>
+			<date>2010-12-12T16:28:08Z</date>
+			<key>selected</key>
+			<true/>
 		</dict>
 		<dict>
 			<key>filename</key>
 			<string>main.lua</string>
 			<key>lastUsed</key>
-			<date>2010-12-04T23:31:38Z</date>
-			<key>selected</key>
-			<true/>
+			<date>2010-12-09T13:47:59Z</date>
 		</dict>
 		<dict>
 			<key>filename</key>
 			<string>utility.lua</string>
 			<key>lastUsed</key>
-			<date>2010-12-03T01:24:39Z</date>
+			<date>2010-12-05T18:09:11Z</date>
 		</dict>
 	</array>
 	<key>fileHierarchyDrawerWidth</key>
 	<integer>200</integer>
 	<key>metaData</key>
 	<dict>
+		<key>actor.lua</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>0</integer>
+				<key>line</key>
+				<integer>18</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>11</integer>
+		</dict>
+		<key>ai.lua</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>0</integer>
+				<key>line</key>
+				<integer>21</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>0</integer>
+		</dict>
+		<key>ai/wander.lua</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>1</integer>
+				<key>line</key>
+				<integer>89</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>4</integer>
+		</dict>
+		<key>levels.lua</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>48</integer>
+				<key>line</key>
+				<integer>322</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>207</integer>
+		</dict>
 		<key>main.lua</key>
 		<dict>
 			<key>caret</key>
 				<key>column</key>
 				<integer>0</integer>
 				<key>line</key>
-				<integer>0</integer>
+				<integer>49</integer>
+			</dict>
+			<key>firstVisibleColumn</key>
+			<integer>0</integer>
+			<key>firstVisibleLine</key>
+			<integer>29</integer>
+		</dict>
+		<key>utility.lua</key>
+		<dict>
+			<key>caret</key>
+			<dict>
+				<key>column</key>
+				<integer>42</integer>
+				<key>line</key>
+				<integer>43</integer>
 			</dict>
 			<key>firstVisibleColumn</key>
 			<integer>0</integer>
 	<key>openDocuments</key>
 	<array>
 		<string>main.lua</string>
+		<string>ai/wander.lua</string>
+		<string>levels.lua</string>
+		<string>actor.lua</string>
+		<string>ai.lua</string>
+		<string>utility.lua</string>
 	</array>
 	<key>showFileHierarchyDrawer</key>
 	<true/>
 	<key>windowFrame</key>
-	<string>{{995, 159}, {632, 1019}}</string>
+	<string>{{760, 159}, {632, 1019}}</string>
 </dict>
 </plist>
 end
 
 local function loadPhysics(level)
-    local physicsWorld = love.physics.newWorld(
-      levels.pixelWidth(level), levels.truePixelHeight(level))
+    local width = levels.pixelWidth(level)
+    local height = levels.truePixelHeight(level)
+
+    local physicsWorld = love.physics.newWorld(-width, -height,
+      width, height)
 
     physicsWorld:setGravity(0, 0)
     physicsWorld:setMeter(levels.TILE_SIZE)