![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
游戏设计
文章平均质量分 80
無菌與
To the time to life, rather than to life in time
展开
-
c++游戏设计五:打飞机
#include /*常量之类的一些东西应该放到头文件,用宏定义一下*/class CMyWnd :public CFrameWnd{ typedef struct entity { int x; int y; BOOL exist; }myEntity;private: CDC *m_pmdc; CDC *temp_cdc;//用于双缓冲的 CBitmap *m原创 2014-12-02 11:11:36 · 5761 阅读 · 0 评论 -
c++游戏设计二:反转扑克牌
#include class CMyWnd :public CFrameWnd{private: CDC *m_pmdc[4]; CBitmap *m_pbitmap; CString myPath[5]; int currentState[4]; CRect myRect[4]; public: CMyWnd() { Create(N原创 2014-12-02 10:54:33 · 1911 阅读 · 0 评论 -
c++游戏设计四:采蘑菇
#include class gameWnd:public CFrameWnd{private: CDC *m_pmdc,*temp_dc; CBitmap *m_pbitmap[11],*temp_bitmap; CString picPath[11]; int person_x,person_y; int m_x,m_y; int direction; BOOL m_ex原创 2014-12-02 11:07:53 · 2055 阅读 · 0 评论 -
c++游戏设计三:打地鼠
#include class CMyWnd :public CFrameWnd{private: CDC *m_pmdc; CBitmap *m_pbitmap[5]; CRect myRect[6]; CString picPath[5]; int hit; BOOL m_state[6]; int counter; int num; int hammer_x; in原创 2014-12-02 11:03:45 · 6790 阅读 · 0 评论 -
c++游戏设计一:清明上河图的播放
一个自动播放清明上河图的程序。MFC空项目自己写。#include class CMyWnd :public CFrameWnd{private: CDC *m_pmdc; CBitmap *m_pbitmap; int cX;public: CMyWnd() { Create(NULL,"First App"); CClientDC dc(this); m_pm原创 2014-12-02 10:49:23 · 1566 阅读 · 0 评论