摘要
本文基于C#开发环境,开发了一款有趣味、有挑战、画面清新生动的高级打地鼠游戏。本游戏是通过地鼠的不断闪现和敲击,根据玩家的击中数,从而计算分数。其中,最大的特色就是通过动态增加控件使得"田地"数目不断变化,使得游戏等级逐步提高,从而实现闯关、游戏计时计分等功能。基本此,本文详尽提出动态增加控件的设计与实现,同时对该游戏中的主界面设计和随机显示地鼠也进行了探讨与分析。
Based on the C # development environment,a whack-a-mole is developed which is fun,challenging,fresh and lively. While the game runs,through the constant flashing and tapping of the hamster,the score is calculated based on the number of hits by the player and the scores are gotten. The distinctive feature is that the number of " fields " is constantly changing by dynamically adding controls,game level is gradually improved and the functions such as game breakthrough、game timing and score are realized. This paper elaborates on the design and implementation of dynamically adding controls,and the main interface design and random display of the hamster in the game are also discussed and analyzed.
引文
[1]夏普,周靖. Visual C#2005从入门到精通[M].北京:清华大学出版社,2008.
[2]蔡继文. 21天学通ASP.NET[M].北京:电子工业出版社,2009.
[3]王兴晶. Visual Basic.NET数据库开发典型实例[M].北京:电子工业出版社,2002.
[4]胡木林.基于遗传算法的在线考试系统组卷设计[J].中国教育技术装备,2018(12):23-27.