登录
首页 » VC++ » VC++ GDI练习编写的苹果机游戏

VC++ GDI练习编写的苹果机游戏

于 2023-05-02 发布 文件大小:296.70 kB
0 105
下载积分: 2 下载次数: 1

代码说明:

VC++ GDI练习编写的苹果机游戏,关于苹果机,我想大家都玩过吧,小孩子们喜欢哦,主要是学习下游戏逻辑的实现,以下是游戏相关参数的定义,完整源代码请下载源码包:   void InitGame(); //游戏初始话   void DrawGameImage(HWND,HDC); //绘制图片   void ExitGame(); //游戏退出   void SetXY();//设置图片旋转   void setCurrentPos(int);//设置当前的位置   void KeyDownF1();//按下F1时触发   bool getIntarrayIndes(int);//获得当前要旋转的数   int GetEndPos();//获得结束位置   int GetScore();//获得游戏分数   bool getGameState(); //获得游戏状态   void setGameState(); //设置游戏状态   GdiplusStartupInput m_gdiplusStartupInput;   ULONG_PTR m_pGdiToken;   Graphics * m_graphics;   Image *m_image;//图片指针   int m_currentPos;//当前旋转位置   int m_EndPos;//结束位置   int m_startPos;//保存上次结束的位置   int m_score;//游戏分数   bool m_GameState;//游戏状态   int m_jishu;//用来计数   int m_firstPos;//保存第一次旋转停留的位置   int m_beforeEndPos;//保存结束之前旋转的位置   POINT m_arrayXZ[10];//图片初始话位置坐标   int m_intarrayXZ[4];//旋转数组

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 椭圆检测
    函数功能用于椭圆检测,VC++2008 win32程序上配置opencv库,读图检测
    2022-08-07 10:45:58下载
    积分:1
  • 20110215_13882692_0
    Introduction of Programmable controllers
    2011-02-26 14:14:55下载
    积分:1
  • 《C++编程思想》英文版
    《C++编程思想》 英文版本 第二版(Thinking in C++ English Version Two)
    2019-03-07 20:17:44下载
    积分:1
  • 完整的VC指纹识别源码
    一个比较简单的VC指纹识别代码,经运行可以成功使用,希望对你们有用,哈哈哈哈哈哈哈
    2022-01-25 23:14:15下载
    积分:1
  • C-language-comprehensive-training
    C语言综合训练,包含文件调用、添加还有一些汇总统计等(C language integrated training, including file calls, add some summary statistics)
    2014-01-02 15:42:40下载
    积分:1
  • C_homework_12
    东华大学c语言第12周作业,关于结构体的学习(Donghua University, the first 12 weeks of operation c language, on the structure of learning)
    2010-09-11 22:33:49下载
    积分:1
  • VC++显示倾斜文字
    VC++编写的如何显示倾斜文字(VC show how prepared the text tilt)
    2005-03-09 10:12:46下载
    积分:1
  • 1
    说明:  我好不容易从其他网站上下到的一本书,它对于理解《VisualC++数字图像处理典型算法及实现》这本书的源代码很有帮助!!(I am hard up and down from the other sites to a book, it is understood &quot VisualC++ digital image processing algorithm and the realization of the typical&quot This is the source code of this book very helpful! !)
    2009-08-19 22:14:06下载
    积分:1
  • Essential C++中文版
    说明:  c++11编程思想,c++11入门基础,适合所有初学者(program thinking C + + 11 programming ideas, C + + 11 basic introduction, suitable for all beginners)
    2020-06-23 13:00:06下载
    积分:1
  • 六子棋游戏开发
    资源描述 用VC++设计交互式六子棋,是博弈赛的源程序。 内部有算法的设计,界面的设计,以及鼠标的控制设计。   全国三等奖程序,
    2023-05-05 06:15:03下载
    积分:1
  • 696516资源总数
  • 106475会员总数
  • 7今日下载