文件名称:game2
- 所属分类:
- 其他智力游戏
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 686kb
- 下载次数:
- 0次
- 提 供 者:
- xuji****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
小游戏。因为是初学者,所做的东西还不能算是厉害的,只能说正在努力的过程-#include<windows.h>
#include"resource.h"
#include<stdio.h>
LRESULT CALLBACK WndProc(HWND hwnd,UINT uMSG, WPARAM wParam,LPARAM lParam)
void DrawBitmap(HDC hdc,UINT ID, int x,int y,HWND hwnd)
void GameStart(HWND hwnd)
void GameOver(HWND hwnd)
void DrawTime(HDC hdc, int x, int y, int n, HWND hwnd)
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
{
WNDCLASS wndclass
wndclass.cbClsExtra =0
wndclass.cbWndExtra =0
wndclass.hbrBackground =CreateSolidBrush(RGB(255,255,255))
wndclass.hCursor =LoadCursor(hInstance,MAKEINTRESOURCE(IDC_CURSOR2))
wndclass.hIcon =LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON2))
wndclass.hInstance =hInstance
wndclass.lpfnWndProc =WndProc
wndclass.lpszClassName ="plane"
wndclass.lpszMenuName = NULL
wndclass.style = CS_VREDRAW||CS_HREDRAW
RegisterClass(&wndclass)
HWND hwnd
hwnd = CreateWindow("plane","game",WS_OVERLAPPEDWINDOW,0,0,800,600,NULL,NULL,hIns
#include"resource.h"
#include<stdio.h>
LRESULT CALLBACK WndProc(HWND hwnd,UINT uMSG, WPARAM wParam,LPARAM lParam)
void DrawBitmap(HDC hdc,UINT ID, int x,int y,HWND hwnd)
void GameStart(HWND hwnd)
void GameOver(HWND hwnd)
void DrawTime(HDC hdc, int x, int y, int n, HWND hwnd)
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)
{
WNDCLASS wndclass
wndclass.cbClsExtra =0
wndclass.cbWndExtra =0
wndclass.hbrBackground =CreateSolidBrush(RGB(255,255,255))
wndclass.hCursor =LoadCursor(hInstance,MAKEINTRESOURCE(IDC_CURSOR2))
wndclass.hIcon =LoadIcon(hInstance,MAKEINTRESOURCE(IDI_ICON2))
wndclass.hInstance =hInstance
wndclass.lpfnWndProc =WndProc
wndclass.lpszClassName ="plane"
wndclass.lpszMenuName = NULL
wndclass.style = CS_VREDRAW||CS_HREDRAW
RegisterClass(&wndclass)
HWND hwnd
hwnd = CreateWindow("plane","game",WS_OVERLAPPEDWINDOW,0,0,800,600,NULL,NULL,hIns
(系统自动生成,下载前可以参看下载内容)
下载文件列表
game2\cursor1.cur
.....\game2.plg
.....\icon1.ico
.....\bitmap2.bmp
.....\20070722200523117.bmp
.....\ZLLK.ico
.....\cursor2.cur
.....\cat.bmp
.....\resource.h
.....\game2.dsw
.....\game2.ncb
.....\game2.dsp
.....\Script3.aps
.....\Script3.rc
.....\prj.cpp
.....\game2.opt
.....\Debug\game2.exe
.....\Debug
game2
.....\game2.plg
.....\icon1.ico
.....\bitmap2.bmp
.....\20070722200523117.bmp
.....\ZLLK.ico
.....\cursor2.cur
.....\cat.bmp
.....\resource.h
.....\game2.dsw
.....\game2.ncb
.....\game2.dsp
.....\Script3.aps
.....\Script3.rc
.....\prj.cpp
.....\game2.opt
.....\Debug\game2.exe
.....\Debug
game2