文件名称:game2
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:685.77kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
小游戏。因为是初学者,所做的东西还不能算是厉害的,只能说正在努力的过程-#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/game2.plg
game2/icon1.ico
game2/bitmap2.bmp
game2/20070722200523117.bmp
game2/ZLLK.ico
game2/cursor2.cur
game2/cat.bmp
game2/resource.h
game2/game2.dsw
game2/game2.ncb
game2/game2.dsp
game2/Script3.aps
game2/Script3.rc
game2/prj.cpp
game2/game2.opt
game2/Debug/game2.exe
game2/Debug
game2
game2/game2.plg
game2/icon1.ico
game2/bitmap2.bmp
game2/20070722200523117.bmp
game2/ZLLK.ico
game2/cursor2.cur
game2/cat.bmp
game2/resource.h
game2/game2.dsw
game2/game2.ncb
game2/game2.dsp
game2/Script3.aps
game2/Script3.rc
game2/prj.cpp
game2/game2.opt
game2/Debug/game2.exe
game2/Debug
game2
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.