From 0b8f6931ce80a7baee458ccc9625d4a6d66538bc Mon Sep 17 00:00:00 2001 From: Brent Frymire Date: Sun, 2 Jun 2024 10:36:17 -0400 Subject: [PATCH] Fix parallax typo --- objects/obj_camera_sidescroller/Create_0.gml | 12 ++++++------ objects/obj_camera_sidescroller/Draw_77.gml | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/objects/obj_camera_sidescroller/Create_0.gml b/objects/obj_camera_sidescroller/Create_0.gml index b1374b7..51b2494 100644 --- a/objects/obj_camera_sidescroller/Create_0.gml +++ b/objects/obj_camera_sidescroller/Create_0.gml @@ -41,8 +41,8 @@ draw_zones = false; surface = -1; -parralax_bg = function(_cam){ - //the background is scaled up so it appears smooth when being parralaxed +parallax_bg = function(_cam){ + //the background is scaled up so it appears smooth when being parallaxed var _scalex = stanncam_get_res_scale_x(); var _scaley = stanncam_get_res_scale_y(); @@ -59,10 +59,10 @@ parralax_bg = function(_cam){ draw_sprite_ext_tiled(spr_underwater_layer05, 0, _pos_x + (_offset_x * 1.0), _pos_y, 2, 1, _scalex, _scaley); } -parralax_bg1 = function(){ - parralax_bg(cam1); +parallax_bg1 = function(){ + parallax_bg(cam1); } -parralax_bg2 = function(){ - parralax_bg(cam2); +parallax_bg2 = function(){ + parallax_bg(cam2); } diff --git a/objects/obj_camera_sidescroller/Draw_77.gml b/objects/obj_camera_sidescroller/Draw_77.gml index 7ff3818..b8726a4 100644 --- a/objects/obj_camera_sidescroller/Draw_77.gml +++ b/objects/obj_camera_sidescroller/Draw_77.gml @@ -5,18 +5,18 @@ draw_sprite_tiled(spr_bg2, 0, 0, 0); var _width = global.res_w; var _height = global.res_h; -//the parralax drawing is scaled down again +//the parallax drawing is scaled down again var _scalex = 1 / stanncam_get_res_scale_x(); var _scaley = 1 / stanncam_get_res_scale_y(); if(!split_screen){ - cam1.draw_special(parralax_bg1, 0, 0, _width, _height, _scalex, _scaley); + cam1.draw_special(parallax_bg1, 0, 0, _width, _height, _scalex, _scaley); cam1.draw(0, 0); } else { //fancy splitscreen rendering - cam1.draw_special(parralax_bg1, 0, 0, _width * 0.5, _height, _scalex, _scaley); + cam1.draw_special(parallax_bg1, 0, 0, _width * 0.5, _height, _scalex, _scaley); cam1.draw(0, 0); - cam2.draw_special(parralax_bg2, global.game_w * 0.5, 0, _width * 0.5, _height, _scalex, _scaley); + cam2.draw_special(parallax_bg2, global.game_w * 0.5, 0, _width * 0.5, _height, _scalex, _scaley); cam2.draw(global.game_w * 0.5, 0); }