Posts

Showing posts from July, 2018
Image
Tetris Game In JAVA Welcome back guys sorry for the delay but I am back with the new project "Tetris Game" an old school, so here are the steps to create this game  P.S.: Use Netbeans compiler To download Netbeans click  here If you guys want to download this file click  here Steps  1.) Create a new project and name it "Tetris". 2.) Create eight classes and name it "TetrisFrame","TetrisPanel","TetrisShape1","TetrisShape2","TetrisShape3","TetrisShape4","TetrisShape5" as shown in figure. 3.) Source Code for these classes is given below respectively. For class TetrisFrame  import java.awt.Color; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.JFrame; public class TretisFrame extends JFrame{ private static final long serialVersionUID = 1L; public TretisPanel pan; public Dimension dim; int l...