TheAdamSmith / precursor

0 stars 0 forks source link

Add camera zoom and pan controls #19

Closed wchaney98 closed 6 months ago

wchaney98 commented 7 months ago

I thought the intention of the ticket was to adjust the camera rather than the actual game window, so I went with that.

Spent way too long getting the camera pan "velocity" to work decently, but was fun to get working.

Godot_v4 2 1-stable_win64_FmfcSk5rc6

wchaney98 commented 6 months ago

This works great! Can you add controller options for this too? I'm thinking pan with right stick, re-center by pushing in right stick or something

Tried implementing that. Also did it so holding L2 + right stick up/down zooms the camera in/out as well