Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setColour in displayFPS() does not work right #70

Open
tkzv opened this issue Apr 21, 2021 · 1 comment
Open

setColour in displayFPS() does not work right #70

tkzv opened this issue Apr 21, 2021 · 1 comment

Comments

@tkzv
Copy link

tkzv commented Apr 21, 2021

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.

@Blauelf
Copy link

Blauelf commented Oct 17, 2021

Version 0.9.1-4 is pretty old.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants