Skip to content

Commit

Permalink
1.3.1 hotfix
Browse files Browse the repository at this point in the history
- Fixed a rare menu settings bug
- Dogs restored
- iOS & Mac build settings updated.
  • Loading branch information
nkrapivin committed Oct 15, 2019
1 parent d80e293 commit c158f55
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 16 deletions.
3 changes: 2 additions & 1 deletion objects/oBall/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ activated = true;
mx = -1;
my = -1;
gp_timerx = 0;
gp_timery = 0;
gp_timery = 0;
stoptimer = 0;
4 changes: 3 additions & 1 deletion objects/oBall/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ key_right = keyboard_check_pressed(vk_right) || gamepad_button_check_pressed(glo
key_up = keyboard_check_pressed(vk_up) || gamepad_button_check_pressed(global.gp_id,gp_padu) || gp_timery < 1 && gamepad_axis_value(global.gp_id,gp_axislv) < -0.5;
key_down = keyboard_check_pressed(vk_down) || gamepad_button_check_pressed(global.gp_id,gp_padd) || gp_timery < 1 && gamepad_axis_value(global.gp_id,gp_axislv) > 0.5;

if (mouse_check_button(mb_left) && !moving && scrIsMobile())
stoptimer = max(0,stoptimer-1);

if (mouse_check_button(mb_left) && stoptimer == 0 && !moving && scrIsMobile())
{
touch_pos[1] = mouse_y;
touch_pos[0] = mouse_x;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ if (!Approached)
oBall.moving = false;
oBall.x = x;
oBall.y = y;
if (scrIsMobile()) mouse_clear(mb_left);
if (scrIsMobile())
{
mouse_clear(mb_left);
oBall.stoptimer = 5;
}
audio_play_sound(sfxBallMove,5,false);
}
2 changes: 1 addition & 1 deletion objects/oLevelSelectorNew/Draw_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else
else if (os_browser != browser_not_a_browser) //is HTML5
draw_text(960/2,544/2,"Custom Levels aren't supported on HTML5.\nSorry about that!\nJust click left trigger.");
else if (scrIsMobile())
draw_text(960/2,544/2,"No custom levels were found.\nPress 'Back' button to save your level.\nIf you saved your level but still don't see it\nTry re-opening this menu.");
draw_text(960/2,544/2,"Mobile platforms do not support custom levels.");
}
}

Expand Down
6 changes: 5 additions & 1 deletion objects/oLevelSelectorNew/KeyPress_8.gml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/// @description write level as base64

//room_goto(rMenu);

/*
if (selectedWorld != 3) && (os_browser != browser_not_a_browser || !scrIsMobile()) exit;//mobile only!!!
var fname = get_string("Enter level file name (no extension!):","custom");
var lvlstr= get_string("Enter level base64 string:","");
scrWriteLevel(lvlstr,fname);
scrWriteLevel(lvlstr,fname);*/
2 changes: 1 addition & 1 deletion objects/objLevelSelectBack/Step_0.gml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// @description go back to main menu
if (mouse_check_button_released(mb_left) && position_meeting(mouse_x,mouse_y,self)) || (keyboard_check_pressed(vk_escape)) || (gamepad_button_check_pressed(global.gp_id,gp_face2)) || (position_meeting(global.mousex,global.mousey,self) && gamepad_button_check_pressed(global.gp_id,gp_face1))
if (mouse_check_button_released(mb_left) && position_meeting(mouse_x,mouse_y,self)) || (keyboard_check_pressed(vk_escape)) || keyboard_check_pressed(vk_backspace) || (gamepad_button_check_pressed(global.gp_id,gp_face2)) || (position_meeting(global.mousex,global.mousey,self) && gamepad_button_check_pressed(global.gp_id,gp_face1))
{
room_goto(rMenu);
}
2 changes: 1 addition & 1 deletion options/android/options_android.yy

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

2 changes: 1 addition & 1 deletion options/html5/options_html5.yy

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

6 changes: 3 additions & 3 deletions options/ios/options_ios.yy

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

2 changes: 1 addition & 1 deletion options/linux/options_linux.yy

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

4 changes: 2 additions & 2 deletions options/mac/options_mac.yy

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

2 changes: 1 addition & 1 deletion options/windows/options_windows.yy

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

2 changes: 1 addition & 1 deletion options/windowsuap/options_windowsuap.yy

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

10 changes: 10 additions & 0 deletions scripts/scrSettingsSave/scrSettingsSave.gml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
global.savebuff = buffer_create(1,buffer_grow,1);

ini_open_from_string("");

//bugfix
for (var i = 1; i < 31; i++)
{
ini_write_real("World1Unlocked",string(i),global.UnlockedLevels[1,i]);
ini_write_real("World2Unlocked",string(i),global.UnlockedLevels[2,i]);
ini_write_real("World1Stars",string(i),global.StarCount[1,i]);
ini_write_real("World2Stars",string(i),global.StarCount[2,i]);
}

ini_write_real("Settings","BgmGain",global.BgmGain);
ini_write_real("Settings","SndGain",global.SndGain);
var inistring = ini_close();
Expand Down

0 comments on commit c158f55

Please sign in to comment.