arthurquinn / solitaire

A solitaire engine and game interface that will eventually be deployed to the web.
0 stars 0 forks source link

Cards are blurry, pixel drawing seems off #36

Closed arthurquinn closed 6 years ago

arthurquinn commented 6 years ago

Figure out why the pixels seem blurry on the canvas. Must have something to do with the pixel x pixel size of the canvas vs the card.

arthurquinn commented 6 years ago

The issue here was the element size (actual DOM size of the canvas) was larger than the internal (drawing area) canvas size. When they are matched, the drawn image are scaled 1:1.

MSaIim commented 6 years ago

If you want better looking sprites: https://opengameart.org/content/boardgame-pack. It comes with sounds, spritesheets, and individual images. License is public domain as well (you can see license info on the left side on the site).