STANNcam v2.2.0
Runner_GhtH9eqLJB.mp4
New sidescroller example room has been added
New features
-
Resize camera
The same way you can zoom and move the camera over time, you can now resize it -
Offset
You can offset the camera from it's x and y position over time -
Debug draw
.debug_draw is off by default, but if turned on, follow is set, you will see the bounding box for the camera rendered, and when the followed objects is touching the edges of the bounding box, red lines will be drawn to show how it works.
This also showcases bounds_dist_w and bounds_dist_h which show how far away the followed object is from the bounds edges. -
Animation curves
Each stanncam instance now has new variablesanim_curve
,anim_curve_zoom
,anim_curve_size
,anim_curve_offset
Which handle camera movement (when not following something) and zooming respectively. You can set these variables to your own animation curves to specify how the camera moves or zooms. And change them at run time! -
Smooth Zoom
Now by default smooth zoom is on. And let's the graphics appear smooth even when zoomed out. It will scale the camera's surface up only when zoomed out, to allow more to be visible. If turned off, when zoomed out everything will appear much more pixelated. Which if you are a pixel-perfect purist might still be what you want! -
Ability to drag and resize windows
If you have "Allow window resize" turned on, you can drag the game window around, and the resolution will update to match. -
Borderless windowed option
It will fill up your monitor like fullscreen, but be a borderless window
Important changes
- Toggle_fullscreen() has been removed, and replaced with stanncam_set_window_mode()
because there's now 3 modes, windowed fullscreen and borderless. A toggle didn't make sense. Read the wiki!