Skip to content

Commit

Permalink
Me fucking game crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperFreaksDev committed Dec 4, 2023
1 parent d08f2cb commit 6034125
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
1 change: 0 additions & 1 deletion Super Freaks 1 Ultimate Edition.resource_order
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,6 @@
{"name":"input_y","order":5,"path":"scripts/input_y/input_y.yy",},
{"name":"__input_class_gamepad_motion","order":8,"path":"scripts/__input_class_gamepad_motion/__input_class_gamepad_motion.yy",},
{"name":"rm_star_4","order":22,"path":"rooms/rm_star_4/rm_star_4.yy",},
{"name":"scr_approach","order":6,"path":"scripts/scr_approach/scr_approach.yy",},
{"name":"sfx_collect","order":8,"path":"sounds/sfx_collect/sfx_collect.yy",},
{"name":"msc_park","order":8,"path":"sounds/msc_park/msc_park.yy",},
{"name":"rm_cutscene_intro_kranion","order":13,"path":"rooms/rm_cutscene_intro_kranion/rm_cutscene_intro_kranion.yy",},
Expand Down
18 changes: 18 additions & 0 deletions Super Freaks 1 Ultimate Edition.yyp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions options/ios/options_ios.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion options/mac/options_mac.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions scripts/scr_math_general/scr_math_general.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,16 @@ function lerp_360(_angle_1, _angle_2, _amount = 0)
return _angle_1 - (angle_difference(_angle_1, _angle_2) * _amount);

gml_pragma("forceinline");
}

/// @function approach
/// @param _start
/// @param _target
/// @param _shift
function approach(_start, _target, _shift)
{
if (_start < _target)
return min(_start + _shift, _target);
else
return max(_start - _shift, _target);
}

0 comments on commit 6034125

Please sign in to comment.