+/tetris
my tetris implementation
git clone https://git.julia.blue/+/tetris
9e4e300
main
1// reserved keys: 2// "q" / ctrl+c: quit 3// "r": restart 4// bindings { 5// left "left" 6// right "right" 7// soft "down" 8// cw "x" 9// ccw "z" 10// hard "up" 11// flip "a" 12// hold "shift" 13// } 14 15bindings { 16right "l" 17soft "k" 18left "j" 19hard "space" 20cw "f" 21ccw "d" 22flip "s" 23hold "a" 24} 25 26// all values are specified in frames, fractions are allowed 27config { 28das 6 29arr 0 30gravity 60 31soft-drop 1 32ghost #true 33// these mirror the 3 jstris lock delays 34lock 30 35extended 300 36timeout 1200 37} 38 39// these settings are closer to a standard guideline tetris game: 40// config {das 10; arr 2; gravity 60; soft-drop 4; ghost true; lock_delay 30 300 1200;} 41 42// TODO: implement line clear delay and ARE 43// TODO: add tetris 99 example config (12f das, 2f arr, 6f are) 44// TODO: add puyo-puyo tetris example config (9f das, 2f arr, variable are/line delay) 45 46sound { 47volume 0.8 48meta { 49ready "https://ecdldaiiere.github.io/Eddiez-Soundz/TFready.mp3" 50go "https://ecdldaiiere.github.io/Eddiez-Soundz/TFgo.mp3" 51lose "https://ecdldaiiere.github.io/Eddiez-Soundz/TFdied.mp3" 52} 53action { 54move "https://ecdldaiiere.github.io/Eddiez-Soundz/TFmove.mp3" 55rotate "https://ecdldaiiere.github.io/Eddiez-Soundz/TF_rotate.mp3" 56hard-drop "https://ecdldaiiere.github.io/Eddiez-Soundz/TFlock.mp3" 57lock "https://konsola5.github.io/jstris_sounds/TETRIO_Sounds/floor.ogg" 58hold "https://ecdldaiiere.github.io/Eddiez-Soundz/TFhold.mp3" 59spin "https://jstrisplus.github.io/jstris-plus-assets/sfxPacks/tetrio/spin.ogg" 60} 61clear { 62single "https://jstrisplus.github.io/jstris-plus-assets/sfxPacks/tetrio/clearline.ogg" 0.7 63quad "https://jstrisplus.github.io/jstris-plus-assets/sfxPacks/tetrio/clearquad.ogg" 0.7 64tspin "https://jstrisplus.github.io/jstris-plus-assets/sfxPacks/tetrio/clearspin.ogg" 0.7 65} 66}