Smart-Jellyfish / SpaceShooter

Space Shooter Game
0 stars 0 forks source link

Set borders to automatically scale if the viewport is resized #2

Closed Smart-Jellyfish closed 6 months ago

Smart-Jellyfish commented 6 months ago

Borders are located at 0,0 as their midpoint. so calculation is needed.

border.x = viewport.width / 2 border.length = viewport.width

border.y = viewport.height / 2 border.height = viewport.width

Smart-Jellyfish commented 6 months ago

Fixed the issue in 12e52006dc5b46c143917578d768b261327c6dfb