From 14d16485fe2e1dd506482e22ac3390e75c33057f Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 16 Aug 2020 14:06:50 +0900 Subject: [PATCH] Move the blocks slightly higher so the entire field is visible. --- Tetris/Tetris.jar | Bin 48367 -> 48367 bytes Tetris/src/sig/game/GameCanvas.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Tetris/Tetris.jar b/Tetris/Tetris.jar index 0b0a2493a76ff3789a892a20469bc5782a112c57..f5a34550eca941b991dd51c44d83aaf83ef54820 100644 GIT binary patch delta 2850 zcmW;Oc_0&vAII?+GYeskRg)ebN6t;oB$VTEEX;jpa^J_olDSQiY?Lea5(-0ZIdUuG zK_ur89@iW(QT^KQpZDwg-}m3o?g{hm2{VVO5rBp790&wDHyW7E(aQX%gI5{dl>Ad7 zKa&iDJ4{LpuuM9CsOw}ZW@dPwWq^sH91sm=NZ^hKFog06vM@wIH@TRb0*M740z^d# z114=^l*CmgJh4FHB4GagF0oaDgeywqxYl8&@v`h)!(?NKL8#kO8HZ#}tZMs)D?N2M`V z_2-Wd$30D2G;>h2#Ik6fWewM>ys2e?q!hT^|;3x zw(=!LM2Di{sMS5@EC6wP(I+Ac;8W0WIGbZ?SqJR$>>-lEse1gIiuuFT)!Nwtbzamc`usA$Ar(bB)_{<(XspoL7 zF#E17I@?oQdhk)b7d*Sv+3r*nK=pC{)C5IVN|$7uN7k3bfuR53O2uIvYT9ewx-Z3* zOHzVtJV@6KKlkuzsH2MLE%)oKUCOI%0?8RURcOPD4fiTzQoydoYT_+RRPyn_V?S~1 zp>K6~vRpIt5%{iqXpTgV5|7~9+oVOw2hiyefXTNUeDXQ{a91BwQy!IcZkDEQ!ssPt zw{T&b66o+n$OSi?NUHXaatR)Y=4!TD)>fYr;32rt4e@||p3-@|iV%s(Vo^viLOLW~ zkovf0xV@kylD?JN=k>t8Sgoc1aVmuG?sw$=-pc69qzk!CFl$AmA`Sg&fY0sSgB*sMW zhHi+lL!6JThKR<-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!13jm5vcocCxV$6$y6hk ztoymQTf01eYc-lF8k8~4Qwhb*yX!zy%^oJd945OFz=bM*x;VoVU}f_8T1qn&Mq5Ct zQQAx6I{(zu9KMExzcpnl4TMwL;Q@?{@llk&p}}gW+brE6O*)EQ>tWMIWjtfK zaG{jin)&$>K04;z`vte4U6-==x#2;f<__~^4-_?;@A3+zM;jO#tDUPwXJ*zv@en%( znmXY81We^p_o^8G)4kx1-IJLeEe8OAFS7jf>##d%pW4G6m|sMI#xIXuG__N;hm)qv zFV3z-tsmVVTM_8r9r4;6e8u8gh<7kk+1O4A zI=*qwUoDB$nQez*zNwM%ritjSnNY13$Ty&M?y@*o+?6ohLfppF1bb(+HUlnyKIPX+ zo~vq8VCmYamqt|jKN`*U+axMu_rU$E_OXQ>Sn)8XFMzB-&EN~6q{(;jtZO#^^&Lf} z^~Bwy`36&`o`$S!-Z`wwe?7c&7KG93#M3ETW$p<;h7kq`XD!gcE3o2}RQ=#ifDFvm zb4#cKwj*M-m?|Sl|8}?9vw>AUK{tAzTl)ADq^t+D18?reL767e{__*xy5ZY z%x`s~jfB(DkD?TBG)F4vMgQKGxZVcJ6vged+``>yXs+JX%1{@r=lNv!fyWmH}Y*gwEqJdQd^1u diff --git a/Tetris/src/sig/game/GameCanvas.java b/Tetris/src/sig/game/GameCanvas.java index 50bc06b..531b8fa 100644 --- a/Tetris/src/sig/game/GameCanvas.java +++ b/Tetris/src/sig/game/GameCanvas.java @@ -23,7 +23,7 @@ public class GameCanvas extends JPanel implements KeyListener{ public final static int FIELD_HEIGHT = BLOCK_SIZE*20; public final static int FIELD_STARTX = WINDOW_WIDTH/2-FIELD_WIDTH/2; - public final static int FIELD_STARTY = WINDOW_HEIGHT/2+FIELD_HEIGHT/2; + public final static int FIELD_STARTY = WINDOW_HEIGHT/2+FIELD_HEIGHT/2-BLOCK_SIZE; public final static int LINES_CLEARED_DISPLAYX = WINDOW_WIDTH/2+180; public final static int LINES_CLEARED_DISPLAYY = WINDOW_HEIGHT/2;