You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FPS counter is not visible in pong-6, pong-7, pong-8, pong-11 and pong-12.
The line love.graphics.setColor(0, 255/255, 0, 255/255) in function displayFPS() in main.lua is wrong. pong-10 and pong-11 have the correct line love.graphics.setColor(0, 255, 0, 255), the colours are in range 0-255, not 0.0-1.0.
Observed in Ubuntu Linux 18.04, Love 0.9.1-4.
The text was updated successfully, but these errors were encountered:
When the course started, version 0.10.2 was the current version, so lectures use values 0-255.
Since LÖVE has changed since then, in July 2020 the sources got updated to work with a newer 11.x version of LÖVE (and matching push.lua), which expect 0.0-1.0 instead.
The FPS counter is not visible in pong-6, pong-7, pong-8, pong-11 and pong-12.
The line
love.graphics.setColor(0, 255/255, 0, 255/255)
infunction displayFPS()
inmain.lua
is wrong. pong-10 and pong-11 have the correct linelove.graphics.setColor(0, 255, 0, 255)
, the colours are in range 0-255, not 0.0-1.0.Observed in Ubuntu Linux 18.04, Love 0.9.1-4.
The text was updated successfully, but these errors were encountered: