games50 / pong

Atari's 1972 classic, implemented in Lua with LÖVE
843 stars 1.12k forks source link

Upgrade to push.lua v0.3 #3

Open mowsmith opened 6 years ago

mowsmith commented 6 years ago

LOVE 0.11.0 uses love.window.getDPIScale instead of getPixelScale, which causes an error in the included version of push.lua. It looks like the newest version of push.lua should handle both cases. I've tested it with LOVE 0.11.1, and it works for me.

LOVE doc: https://love2d.org/wiki/love.window.getDPIScale push.lua v0.3: https://raw.githubusercontent.com/Ulydev/push/master/push.lua

mttsmmrssprks commented 6 years ago

Thank you @mowsmith . This solved the problems I was having with push.lua and the white screen.

09jlardinois commented 6 years ago

Thank you @mowsmith for the solution. This fixed my issue with the Pong-1 example.