mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-25 14:36:15 -04:00
Automatic deploy 29018692
This commit is contained in:
parent
95ace7504e
commit
fc8da08ccd
8 changed files with 269 additions and 250 deletions
|
@ -3191,10 +3191,9 @@ const pressed = {
|
|||
function setKeyPressed(key, on) {
|
||||
pressed[key] = on
|
||||
keyboardPuckSpeed = (pressed.ArrowRight - pressed.ArrowLeft) * (1 + pressed.Shift * 2) * gameZoneWidth / 50
|
||||
|
||||
}
|
||||
|
||||
document.addEventListener('keydown', e => {
|
||||
document.addEventListener('keydown', e => {
|
||||
if (e.key.toLowerCase() === 'f' && !e.ctrlKey && !e.metaKey) {
|
||||
toggleFullScreen()
|
||||
} else if (e.key in pressed) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue