2019 Spring first course design experiment report

2019 Spring first course design experiment report

First, the pilot project name

"Ghost Fighter" game ------- aircraft

Second, the experimental project functional description

Pixel games:

1, page initialization: the game screen size
2, aircraft movement: '*' position changed
3, bullet: '|' successfully launched

Third, the project introduces modular structure

Fourth, implement the interface exhibition

V. code hosting links

https://gitee.com/

Six experimental summary

1, problem:

Why move to the right of certain aircraft disappeared from the plane? Why only aircraft fired two bullets at the same time?

2, the solution:

Because the initial page, 'game' temporarily set specific locations to spaces, the page also only three "characters": Aircraft (*), Bullet (|), blank (space);

Because the program cycle operation, complete certain period of time needed for the operation, will let the bullets look like two bursts, but in reality only fired a bullet;

3, Comments:

Bullet fired and aircraft movement in fact essentially aircraft (*), Bullet (|), blank (space)
location's constantly changing; resulting in moving on as if vision.

Overall applet code looks simple, but in reality it is running in continuous cycle over time to consume large memory;

Aircraft game initially realized that the experiment code continues to run, each displayed on the screen, just like the pictures overlap, continuous refresh pictures like constantly changing, changing the location of the individual;

The game screen flicker serious, especially two bursts of bullets looks like the game needs optimization.

Guess you like

Origin www.cnblogs.com/youlanghua/p/10956949.html