-
first part of the init () method to load the game all the necessary resources, i...
? 部分内容
首先我们在init()方法中加载所有游戏必要的资源,包括声音,鼠标事件的监听、背景等相关设置。利用addBomb()方法增加bomb的数量、初始位置及初始化颜色。再利用start()启动线程。线程调用run()方法,处理炸弹下降运动down()。Repaint()会在每一个单位时间调用paint()方法不断的刷新屏幕,paint()调用Bomb.addBomb()绘制炸弹。当游戏者按下鼠标,mousePress()事件激活,判断是否点中了炸弹。如果点中addScore()自动加1分。如果没有点中炸弹,炸弹继续下降,当撞到屏幕wasHitEarth()方法激活,其内调用death()方法,减少Denfenser.life生命点,同时audio.play()处理声音的播放,用以提示游戏者。当你的生命点数小于0时”Game Over”。-first part of the init () method to load the game all the necessary resources, including the voices of the mouse wiretapping, and other relevant background set. Use addBomb () method to increase the number of bomb, the initial location and initialization color. Reuse start () activated threads. Call threads run () method to deal with bomb dropped down Movement (). Hamas () in a unit time per call to paint () method is constantly refresh the screen, paint () call Bomb.addBomb () to draw bomb. When pressed mouse game, mousePress () activation of the incident to determine whether the point of the bomb. If the
- 2022-05-20 07:56:26下载
- 积分:1
-
developed with Delphi DirectX SDK
用Delphi开发的directx的SDK-developed with Delphi DirectX SDK
- 2022-06-30 09:34:52下载
- 积分:1
-
固定增量法的c++源程序,是经典的最优化算法程序
固定增量法的c++源程序,是经典的最优化算法程序-Fixed increment method of c++ source code, is a classical optimization algorithm procedure
- 2022-02-25 09:08:32下载
- 积分:1
-
use Outlook 97 styles to achieve the menu
用vb实现Outlook 97样式的菜单-use Outlook 97 styles to achieve the menu
- 2022-11-12 00:30:04下载
- 积分:1
-
基于VC++,用编辑框、静态文本框及按钮设计计算器
基于VC++,用编辑框、静态文本框及按钮设计计算器-With edit box, static text box and button design calculator
- 2022-07-16 11:52:07下载
- 积分:1
-
该源码是一个万年历程序,具有汉字提示,界面良好,
该源码是一个万年历程序,具有汉字提示,界面良好,-The source is a calendar program, with Chinese characters suggest that a good interface,
- 2022-05-25 14:45:44下载
- 积分:1
-
这些都是适合初学者的经典例子,初学不需要太难的程序,简单易懂的更能帮助学习C++的起步...
这些都是适合初学者的经典例子,初学不需要太难的程序,简单易懂的更能帮助学习C++的起步-some classic examples to help new hands to learn C++
- 2022-04-19 12:24:24下载
- 积分:1
-
This is the most short
这是一个求最短路和最小生成树的C++的原代码,经过调试可以在机子上使用.-This is the most short-circuit for a minimum spanning tree and the original C code, after testing the use of loom.
- 2022-02-15 01:09:35下载
- 积分:1
-
这是一个简单的windows游戏源程序,可以正常运行,但是高手会发现有Bug...
这是一个简单的windows游戏源程序,可以正常运行,但是高手会发现有Bug-This is a simple windows games source, can be normal operation, but you will find Bug
- 2022-10-28 00:10:03下载
- 积分:1
-
压缩过的图像是无法直接进行数字化处理的,如JPEG、GIF等格式的文件,此时首先要对图像文件解压缩,这就要涉及到一些比较复杂的压缩算法。...
压缩过的图像是无法直接进行数字化处理的,如JPEG、GIF等格式的文件,此时首先要对图像文件解压缩,这就要涉及到一些比较复杂的压缩算法。-compressed image can t directly process digital operation.such as jpeg,gif format.firstly ,it need decompress ,which is deal with complex compression algrithm.
- 2022-08-26 00:16:22下载
- 积分:1