Giter Club home page Giter Club logo

Comments (1)

SharkDemon avatar SharkDemon commented on July 16, 2024 4

I believe it's possible to get the Pong exercise to work with Love 11.

The first problem is in push.lua with the call to getPixelScale(). There are two instances in that lua file (one in push:initValues(), the other in push:resize()) where the call
love.window.getPixelScale()
is made, and you need to replace these calls with
love.window.getDPIScale()

The second problem is that running the program results in incorrect white background display, with only the green FPS getting displayed...things don't seem to be working there. Per the recommendation on the Mario demo issues, you can modify the main.lua file, and replace the line (which is currently line 310):
love.graphics.clear(40, 45, 52, 255)
with the following line:
love.graphics.clear(108/255, 140/255, 255/255, 255/255)

After making these updates, the program appears to run correctly under Love 11.

from assignment0.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.