When the current shape stops at the bottom, the next shape starts to drop. In themain()function, before the while loop (game loop), you will create two Tetris objects at the same time:currentTetrisShape, andnextTetrisShape. Inside the game loop, when the current shape is stuck, you check whether a line is complete. Then, you callcurrentTetrisShape.setShape(nextTetrisShapeType). In thesetShape()function, you assign the properties of the shape:shapeType, top left X and Y,shapeArray, etc. Then you callnextTetrisShape.setShape(use a new randomly generated int).
ScholarMatic | 24/7 Homework Help
ScholarMatic Will Help You Write Your Essays and Term Papers
Answered » You can buy a ready-made answer or pick a professional tutor to order an original one.
You have already displayed the Tetris Bucket and started dropping the shapes. During this module, you stop the falling shape at the bottom of the…
HOME TO CERTIFIED WRITERS
Why Place An Order With Us?
- Certified Editors
- 24/7 Customer Support
- Profesional Research
- Easy to Use System Interface
- Student Friendly Pricing
Have a similar question?
ScholarMatic: Get Started
Assignment Writing Service
Feel safe and secure when placing an order on our portal!
Fruitful cooperation begins with solid guarantees, and we are professional enough to promise perfect results. Let’s get it started!