-
Notifications
You must be signed in to change notification settings - Fork 42
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
push.lua #2
Comments
the problem appears with löve 11.1 not with the previous version löve 0.10 |
yes because in love 0.11.1 'love.window.getPixelScale()' is replaced with 'love.window.getDPIScale()'. |
Tweaked it a bit for love 11.2: |
it does not work for me. still the same push.lua 101 error |
You can find Love 0.10 here https://bitbucket.org/rude/love/downloads/ |
Error push.lua:101: attempt to call field 'getPixelScale' (a nil value) Traceback push.lua:101: in function 'initValues' push.lua:48: in function 'setupScreen' main.lua:26: in function 'load' [C]: in function 'xpcall' [C]: in function 'xpcall' cs50/mario-demo#2
new in game development with lua . finally run this. |
For those that want to make the effort of knowing what changed between Löve versions, the wiki offers a handy page for that: https://love2d.org/wiki/Version_History |
Just update to the latest push.lua from the github page for new Love2d users! It worked for pretty fine after that for all the codes! |
anybody have this running the github lovedemo ? :
Error
push.lua:101: attempt to call field 'getPixelScale' (a nil value)
Traceback
push.lua:101: in function 'initValues'
push.lua:48: in function 'setupScreen'
main.lua:26: in function 'load'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
The text was updated successfully, but these errors were encountered: