gabrielflorit / script-8.github.io

A JavaScript-based (React + Redux) fantasy computer for making, sharing, and playing tiny retro-looking games.
https://script-8.github.io/
MIT License
646 stars 35 forks source link

Actually fix camera bug #232

Closed Kethku closed 5 years ago

Kethku commented 5 years ago

Previous PR updated _cameraX and _cameraY to use Math.floor, but forgo to update the actual call to context2D.translate. This fixes that.

My bad :(