Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Commit

Permalink
Fix some bugs
Browse files Browse the repository at this point in the history
audio duplication bug was fixed lol
  • Loading branch information
devkcud committed Mar 22, 2022
1 parent 9260c49 commit 411918a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions objects/objPlacer/Step_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ yy = clamp(round(mouse_y / GRID_WxH) * GRID_WxH, (GRID_BUFFER + GRID_WxH), room_
if (keyboard_check_pressed(ord("D"))) imgAngle -= 90;
if (keyboard_check_pressed(ord("A"))) imgAngle += 90;

with (objCursor) if (!place_free(x, y) || place_meeting(x, y, objScore) || distance_to_object(objScore) < other.minDist) return;
with (objCursor) if (!place_free(x, y) || place_meeting(x, y, objPush) || place_meeting(x, y, objScore) || distance_to_object(objScore) < other.minDist) return;

if (mouse_check_button_pressed(mb_left) && objRoomManager.quantityOfPushs > 0) {
objRoomManager.quantityOfPushs -= 1;
var obj = instance_create_layer(xx, yy, layer, objPush);
with (obj) image_angle = other.imgAngle;
audio_play_sound(sndPlace, 0, false);
if (!audio_is_playing(sndPlace)) audio_play_sound(sndPlace, 0, false);
}
2 changes: 1 addition & 1 deletion objects/objPush/Alarm_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ if (place_meeting(x + xx, y, objFlipLeft) || place_meeting(x, y + yy, objFlipLef
if (place_free(x + xx, y) && place_free(x, y + yy)) {
x += xx;
y += yy;
audio_play_sound(sndWalk, 0, false);
if (!audio_is_playing(sndWalk)) audio_play_sound(sndWalk, 0, false);
}
2 changes: 1 addition & 1 deletion objects/objPush/Mouse_5.gml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ if (runMode == true || gamePoints == gamePointsTotal) return;
objRoomManager.quantityOfPushs += 1;

instance_destroy();
audio_play_sound(sndRemove, 0, false);
if (!audio_is_playing(sndRemove)) audio_play_sound(sndRemove, 0, false);
5 changes: 2 additions & 3 deletions objects/objShader/Create_0.gml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/// @desc ?
horrifi_enable(true);

horrifi_bloom_set(true, 15.00, 0.30, 0.65);
horrifi_bloom_set(true, 15.00, 0.20, 0.65);
horrifi_chromaticab_set(true, 0.15);
horrifi_scanlines_set(true, 0.30);
horrifi_vhs_set(true, 0.30);
horrifi_vhs_set(true, 0.20);
horrifi_vignette_set(true, 0.30, 1.00);
horrifi_crt_set(false, 1.45);
horrifi_noise_set(true, 0.25);
Binary file modified sprites/sprPush/f289f542-af80-4279-bc75-93a4bac2246a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 411918a

Please sign in to comment.