From 02a1f048efa1b6d4132860a1919e127cca1e2167 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 2 Feb 2016 14:40:37 -0500 Subject: Small adjustment to the connect the dots minigame to keep all dots fully on the screen --- gamemode/hud/games/connectthedots.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gamemode/hud/games/connectthedots.lua b/gamemode/hud/games/connectthedots.lua index b0cdaf9..fe6cef2 100644 --- a/gamemode/hud/games/connectthedots.lua +++ b/gamemode/hud/games/connectthedots.lua @@ -56,7 +56,7 @@ Game.Draw = function(self) if not input.IsKeyTrapping() then input.StartKeyTrapping() end - draw.DrawText( "You're casting a spell!", "TargetID", ScrW() * 0.5, ScrH() * 0.25, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER ) + draw.DrawText( "Connect the dots by moveing you mouse!", "TargetID", ScrW() * 0.5, ScrH() * 0.25, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER ) for k,v in pairs(self.dots) do local tcolor = Color(255,0,0,255) @@ -154,10 +154,10 @@ Game.AddRegDot = function(spelltab) --Pick a random distance from this dot to the screen edge, and put a dot there, but at least 20 pixels local rand = 0 - local totop = fd[1] - local toleft = fd[0] - local tobot = ScrH() - totop - local toright = ScrW() - toleft + local totop = fd[1] + 20 + local toleft = fd[0] + 20 + local tobot = ScrH() - totop - 40 + local toright = ScrW() - toleft - 40 --If we're in the first quadrent if(position > 0 and position <= 90) then -- cgit v1.2.3-70-g09d2