I was thinking of making a Tetris game for Java and could not decide on how to approach drawing the different tiles.
My first idea was to use JPanels and dropping JPanels, moving them down every second by 1 and allowing the user to rotate them and such. But the problem I came across was how I was going to test whether a line had been made.
My other plan was to use OpenGL but I have no previous experience in OpenGL so I am not entirely sure how I would even go about programming the game.
My question to you is:
Would it be smarter to use the OpenGL path or the JPanel path? And If the JPanel path, any ideas on how I could test if a line has been made?
Hmm I would learn OpenGL as it is used in a wide variety of games.