Mark
/
celeste-ai
Archived
1
0
Fork 0

Modified celeste cart

master
Mark 2023-02-15 19:30:44 -08:00
parent f0c69e551c
commit aaab67e054
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 103 additions and 78 deletions

View File

@ -29,9 +29,16 @@ k_down=3
k_jump=4 k_jump=4
k_dash=5 k_dash=5
-- HACK: used to slow down frame rate
frame_counter = 0
-- entry point -- -- entry point --
----------------- -----------------
-- HACK: wait function to slow down frame rate
function wait(a) for i = 1,a do flip() end end
function _init() function _init()
title_screen() title_screen()
end end
@ -1177,7 +1184,25 @@ end
-- update function -- -- update function --
----------------------- -----------------------
-- _update30 runs at 30 fps
-- _update60 does 60 fps
-- default for celeste is 30.
function _update() function _update()
--wait(10)
old_update()
--[[
if frame_counter < 10 then
frame_counter+=1
else
frame_counter = 0
old_update()
end
]]--
end
function old_update()
frames=((frames+1)%30) frames=((frames+1)%30)
if frames==0 and level_index()<30 then if frames==0 and level_index()<30 then
seconds=((seconds+1)%60) seconds=((seconds+1)%60)