Add new Parallax2D node

This commit is contained in:
markdibarry
2024-01-17 12:09:52 -05:00
parent f2045ba822
commit a62870956a
22 changed files with 751 additions and 53 deletions

View File

@ -45,7 +45,7 @@ void ParallaxBackground::_notification(int p_what) {
}
}
void ParallaxBackground::_camera_moved(const Transform2D &p_transform, const Point2 &p_screen_offset) {
void ParallaxBackground::_camera_moved(const Transform2D &p_transform, const Point2 &p_screen_offset, const Point2 &p_adj_screen_offset) {
screen_offset = p_screen_offset;
set_scroll_scale(p_transform.get_scale().dot(Vector2(0.5, 0.5)));