diff --git a/celeste/resources/carts/hackcel.p8 b/celeste/resources/carts/hackcel.p8 index fc55b07..5d4bfd2 100755 --- a/celeste/resources/carts/hackcel.p8 +++ b/celeste/resources/carts/hackcel.p8 @@ -30,6 +30,16 @@ k_jump=4 k_dash=5 +-- Set to false while training or running the model. +-- Set to true to play the game manually with debug print. +-- (good for finding coordinates of checkpoints) +-- +-- If true, disables most hack features: +-- - screenshots at every frame +-- - frame skipping +-- - waiting for input +hack_human_mode = false + -- If true, disable screensake hack_no_shake = true @@ -1209,6 +1219,10 @@ end -- _update60 does 60 fps -- default for celeste is 30. function _update() + if hack_human_mode then + old_update() + return + end -- Run at full speed until ready if not hack_ready then @@ -1304,7 +1318,10 @@ end -- Called at the same rate as _update, -- but not necessarily at the same time. function _draw() - --old_draw() + if hack_human_mode then + old_draw() + return + end end function old_update()