Camera movement - this took way to long to implement


I implemented camera movement and zooming in my little game, this took way to long to implement, since pygame really doesn't like large images. This is problematic, since the background image in galaxy view is becoming very large at the event of zooming in.

At first i tried to tile the image into multiple parts, which didn't work, because you could very clearly see the tiling.

I then gave up for a few days until i noticed, that the solution was to only adjust the size of the image at the event of a change in zoom strength and not every frame, now it works :D

new controls are:

mousewheel: zooming

q: zoom in

e: zoom out

w,a,s,d: movement

Files

pre Alpha Build 7.zip 11 MB
Oct 06, 2023

Get Procedural Universe

Leave a comment

Log in with itch.io to leave a comment.