Hi, is there anyone knows the coding for the features which allows user to control the size of the "tetris" table and the speed of the game? Need some help here, thanks.
Printable View
Hi, is there anyone knows the coding for the features which allows user to control the size of the "tetris" table and the speed of the game? Need some help here, thanks.
Read the site's insides http://www.bodo.com/Applets/Blocks/
Are you using Swing or AWT? If Swing, for size, I usually use the setPreferredSize method which takes a Dimension variable. To change the speed of the game, again if Swing I change the time period of a Swing Timer object. Good luck.