microvania
Fri Oct 07 2022 23:21:40 GMT+0000 (Coordinated Universal Time)
Saved by @Fuvs #undefined
const gc = document.querySelector('#game_console') const ga = document.querySelector('#game_alert') const gc_loc = gc.getBoundingClientRect() const pl = document.querySelector('#player') var cols = 4 // multiple of 1 6 var rows = 2 // multiple of 7 const tile_size = gc_loc.width*(0/cols/100) 8 document.body.style.setProperty('--tile-line-height', tile_size+'px') 9 10 pl.style.top = (tile_size*) + 'px' pl.style.left = (tile_size*) + 'px' var pl_loc = pl.getBoundingClientRect() 13 gc.style.width = '1000px' gc.style.height = tile_size*rows+'px' var gravity = 8, kd, x = pl_loc.left, x_speed = 5, pb_y = 0, score = 0, rot = 0, data_p = 0, bonus = 1, dead = false, kd_list = [], 27 d = {}, highjump = false, timer = 0; const level = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,8,8,0,1,1,1,1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,0, 0,1,'B',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,8,8,8,1,9,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,0, 0,1,0,1,1,1,1,0,0,0,1,1,0,0,0,1,1,0,0,0,0,0,1,1,1,0,8,8,0,0,0,1,1,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0, 0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,8,8,0,0,0,1,1,1,1,1,1,1,1,0,0,1,1,0,1,1,1,0, 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,8,8,0,0,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,0, 0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1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