Commits

mcc committed 68ccec9

Center board on screen

  • Participants
  • Parent commits 76032f1

Comments (0)

Files changed (2)

media/overlay/play/onLoad.lua

 		gm.deadat = ticks
 		gm.fatal = touched
 		fill(dos, 0,safeline,40,3,"#")
-		dos:set_centered(0,safeline,40,   "DEAD!!!!#YOU#ARE#A#TERRIBLE PLAYER", false)
+		dos:set_centered(0,safeline,40,   "DEAD!!!!#YOU#ARE#A#TERRIBLE#PLAYER", false)
 		dos:set_centered(0,safeline+1,40, "PRESS#\010#TO#CONTINUE", false)
 		dos:set_centered(0,safeline+2,40, "(OR#Q#IF#THIS#LEVEL#IS#IMPOSSIBLE)", false)
 	end

media/overlay/pregame/onLoad.lua

 	end
 end
 function Spec:load(g)
-	if not tinydebug then g.p:setNormalizedCoordinates(true, (self.ydim+2)*self.scale) end
+	if not tinydebug then
+		g.p:setNormalizedCoordinates(true, (self.ydim+2)*self.scale)
+		g.p:setScreenOffset(((surface_width/surface_height)*self.ydim - self.xdim)*self.scale/2,0)
+	end
 	g.p:setGravity(Vector3(0,9.8*3,0))
 	self:insert(g.p)
 	do -- player