Closed RobotWizard11 closed 4 years ago
You just need to change the 103 red value to 0, It worked for me
function StartState:render() -- title love.graphics.setFont(gFonts['large']) love.graphics.printf("BREAKOUT", 0, VIRTUAL_HEIGHT / 3, VIRTUAL_WIDTH, 'center')
-- instructions
love.graphics.setFont(gFonts['medium'])
-- if we're highlighting 1, render that option blue
if highlighted == 1 then
love.graphics.setColor**(0, 255, 255, 255)**
end
love.graphics.printf("START", 0, VIRTUAL_HEIGHT / 2 + 70,
VIRTUAL_WIDTH, 'center')
-- reset the color
love.graphics.setColor(255, 255, 255, 255)
-- render option 2 blue if we're highlighting that one
if highlighted == 2 then
love.graphics.setColor**(0, 255, 255, 255)**
end
love.graphics.printf("HIGH SCORES", 0, VIRTUAL_HEIGHT / 2 + 90,
VIRTUAL_WIDTH, 'center')
-- reset the color
love.graphics.setColor(255, 255, 255, 255)
end
Thank you!!!
Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10
From: YouLate notifications@github.com Sent: Thursday, May 7, 2020 3:30:45 PM To: games50/breakout breakout@noreply.github.com Cc: Alex Neufville alexneufville@hotmail.com; Author author@noreply.github.com Subject: Re: [games50/breakout] Unable to see the blue text on the menu screen (breakout1) (#7)
You just need to change the 103 red value to 0, It worked for me
function StartState:render() -- title love.graphics.setFont(gFonts['large']) love.graphics.printf("BREAKOUT", 0, VIRTUAL_HEIGHT / 3, VIRTUAL_WIDTH, 'center')
-- instructions love.graphics.setFont(gFonts['medium'])
-- if we're highlighting 1, render that option blue if highlighted == 1 then love.graphics.setColor(0, 255, 255, 255) end love.graphics.printf("START", 0, VIRTUAL_HEIGHT / 2 + 70, VIRTUAL_WIDTH, 'center')
-- reset the color love.graphics.setColor(255, 255, 255, 255)
-- render option 2 blue if we're highlighting that one if highlighted == 2 then love.graphics.setColor(0, 255, 255, 255) end love.graphics.printf("HIGH SCORES", 0, VIRTUAL_HEIGHT / 2 + 90, VIRTUAL_WIDTH, 'center')
-- reset the color love.graphics.setColor(255, 255, 255, 255)
end
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/games50/breakout/issues/7#issuecomment-625290681, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APKKRAEDVBAKMKLD6FLQCADRQLAZLANCNFSM4M2UHDPQ.
When I press up or down I am unable to see the text turn blue.