2019 Spring 2nd curriculum design experiment report

First, the pilot project name

Bouncing ball

Second, the experimental project functional description (in their own language to describe)

1. character '|' and '-' to build a bouncing ball border.
2. The display bezel, by a, d realize move around the baffle.
3. To determine whether the ball within the scope of the baffle, to determine whether the ball is baffle street, if it is then bounce the ball; if it is not the end of the game. And can record the number of rebound, and display output.
4. The ball hit character score.

Third, the project introduces a modular structure (text + overall model)

Games initialization function startup (): determines the border height and width, the length of the baffle.
A display screen () function: Output pellets, bricks and a bezel and bezel.
Independent of user input and update functions updateWithoutInput (): change the position of the ball.
User input related to the update (): updateWithInput (): to achieve a, d shutter control movement.

Fourth, implement the interface display (screenshot)

V. code hosting links

https://gitee.com/heleiya/he_lei.git

Sixth, test summary (questions + + solution feelings)

Why send out before each game sound effects of the game screen will be Caton phenomenon?
Because the source code is compiled to run directly to the game, try to run after the game source code form into exe program, the problem is solved.
Make a game is not easy, I need to study more carefully, step by step, when the game is running perfectly still very rewarding.

Guess you like

Origin www.cnblogs.com/hlywzj/p/10954698.html