GithubHelp home page GithubHelp logo

Click rectangle is incorrect about fonts HOT 1 CLOSED

playcanvas avatar playcanvas commented on July 20, 2024
Click rectangle is incorrect

from fonts.

Comments (1)

willeastcott avatar willeastcott commented on July 20, 2024

I have fixed the link to the game. So it's been a while, but to fix the
selection box, I think I hacked in a fix by changing line 339 of
font_renderer.js to:

            tempCursorY = 0; //-yoffset; HACK!!

The problem with this hack is that some letters are no longer offset in Y
correctly - for example, check out the leaderboard screen in the game.

On Mon, Mar 16, 2015 at 11:29 AM, Nigh7Sh4de [email protected]
wrote:

@willeastcott https://github.com/willeastcott I notice that acceleronly
seems to be working fine now but I am experiencing the exact same issue in
one of my own projects and seeing as this issue report has no commits I am
assuming you did something in your project to fix it? My project is
engine-only so I dont have a link to the designer project but here is the
github repo: https://github.com/nigh7sh4de/tanky

The issue is specifically concerning the Start Game/Play Again button
where the bottom half of the text does not seem to function. By stepping
through the code it seems that the my variable in the onClick() method on
font_renderer.js is not calculated correctly (specifically in the bottom
half I get values like -0.1 and the top half is around 0.0).

P.S. your link is broken


Reply to this email directly or view it on GitHub
#1 (comment).

Will Eastcott (@willeastcott https://twitter.com/willeastcott)
CEO, PlayCanvas Ltd

http://playcanvas.com

It's not just me who thinks we're great:
Technical Innovation Award Nomination
http://www.developawards.com/finalists2
Top 100 Game Tech Company
http://www.develop-online.net/news/develop-100-27-uk-games-hardware-and-tools-named-in-tech-list/0194913
Featured by Apple at WWDC
https://developer.apple.com/videos/wwdc/2014/#509

from fonts.

Related Issues (5)

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.