Emulator does not work with 11.0

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Wilma456
Prole
Posts: 12
Joined: Mon Jul 03, 2017 2:27 pm
Location: Germany

Emulator does not work with 11.0

Post by Wilma456 »

Today I get a Upgrade to Version 11.0. I had made a ComputerCraft Emulator with Löve2d. You can find it here. But this Emulator does not work in the latest Version of Löve2d. It only shows a white screen. I know there a some deprecated messages, but it only means this Function will be removed in the Future and is still available at the Moment. I don't know the reason for the white Screen. It works perfect with 0.10. Had somebody a Idea?
JoshGrams
Prole
Posts: 33
Joined: Sat May 27, 2017 10:58 am

Re: Emulator does not work with 11.0

Post by JoshGrams »

Yeah, version 11 has a big code-breaking change: RGB values are in the range 0-1 instead of 0-255. So anywhere you use love.graphics.setColor or love.graphics.setBackgroundColor, you need to divide the values by 255 (unless you got them straight from getColor/getBackgroundColor).

--Josh
User avatar
Wilma456
Prole
Posts: 12
Joined: Mon Jul 03, 2017 2:27 pm
Location: Germany

Re: Emulator does not work with 11.0

Post by Wilma456 »

That works. Thank You!
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest