Question
Create a simple game of Tetris in JAVA Requirements are listed below 1. User should randomly select one of seven different blocks to appear in
Create a simple game of Tetris in JAVA
Requirements are listed below
1. User should randomly select one of seven different blocks to appear in main area, and second should appear in next shape box
2. Another random piece should replace the randomly selected pieces
3. The block in main area should fall at a constant rate, stopping when it hits the bottom
4. Scrolling mouse forward rotates falling shape clockwise, and backwards scroll counter clockwise
5. Left and right arrow keys move falling block accordingly
6. Once block hits bottom , shape in next shape box appears in main area with same motions
7. If a row is filled with blocks, it disappears
8. If the cursor is hovered over the main area, the game pauses and a pause box appears
Next shape HE Main areaStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started