The-Brains / ClickAndPointLib

Library to make point & click game in the browser
https://the-brains.github.io/ClickAndPointLib/demo.html
MIT License
1 stars 1 forks source link

Support retina graphics #15

Open jacklehamster opened 6 years ago

jacklehamster commented 6 years ago

Right now, the canvas looks pixelated on a retina macbook. To solve that, the canvas' width and height attributes have to be double of the style's width/height.

leobenkel commented 6 years ago

So that would be here: https://github.com/The-Brains/ClickAndPointLib/blob/master/js/utility/resize-canvas.js#L11-L14 ? How do you know it's a retina screen tho ?

jacklehamster commented 6 years ago

In retina.js

jacklehamster commented 6 years ago

Last pull request fixes this