資源簡(jiǎn)介
賽車(chē)游戲
代碼片段和文件信息
#include
#include
#include
#include
struct?car
{
float?x;
float?y;
};
struct?Map
{
float?x;
float?y;
IMAGE?imag;
};
void?map();
int??main(void)
{
initgraph(450?580);
map();
return?0;
}
void?map()
{
struct?Map?map[20];
int?ijk;
IMAGE?img1img2img3;
loadimage(&img1“map1.jpg“);
loadimage(&img2“map2.jpg“);
loadimage(&img3“car1.jpg“);
//putimage(00&img);
SetWorkingImage(&img2);
for?(i=0;i<20;i++)
{
getimage(&map[i].imag0i*74507);
}
SetWorkingImage();
j=0;
i=0;
while(1)
{
putimage(00&map[j].imag);
for(k=0;k {
putimage(0(k+1)*7&map[j-k-1].imag);
}
j++;
i++;
putimage(0(i)*7&img1);
if(j==20)
{
j=0;
}
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2013-05-14?21:27??saiche\
?????文件????????5590??2013-05-14?19:51??saiche\car.jpg
?????文件????????2589??2013-05-14?21:03??saiche\car1.jpg
?????目錄???????????0??2013-05-14?21:27??saiche\Debug\
?????文件??????270412??2013-05-14?21:27??saiche\Debug\saiche.exe
?????文件??????441008??2013-05-14?21:27??saiche\Debug\saiche.ilk
?????文件???????16256??2013-05-14?21:27??saiche\Debug\saiche.obj
?????文件?????4018152??2013-05-14?20:03??saiche\Debug\saiche.pch
?????文件??????623616??2013-05-14?21:27??saiche\Debug\saiche.pdb
?????文件??????156672??2013-05-14?21:27??saiche\Debug\vc60.idb
?????文件???????77824??2013-05-14?21:27??saiche\Debug\vc60.pdb
?????文件???????17780??2013-05-14?19:51??saiche\map1.jpg
?????文件????????3910??2013-05-14?20:47??saiche\map2.jpg
?????文件???????11952??2013-05-14?20:27??saiche\map3.jpg
?????文件?????????933??2013-05-14?21:27??saiche\saiche.cpp
?????文件????????3401??2013-05-14?20:03??saiche\saiche.dsp
?????文件?????????520??2013-05-14?21:27??saiche\saiche.dsw
?????文件???????33792??2013-05-14?21:27??saiche\saiche.ncb
?????文件???????48640??2013-05-14?21:27??saiche\saiche.opt
?????文件?????????742??2013-05-14?21:27??saiche\saiche.plg
- 上一篇:貪吃蛇
- 下一篇:ADO封裝庫(kù)文件ACCESS讀取
評(píng)論
共有 條評(píng)論