📄 c语言编的仿linux下ktron的街机游戏,对以前发的有点小修改_c语言游戏编程_c游戏编程_c语言_c 语言之家.htm
字号:
<P> front_time=current_time=clock();<BR> while(current_time-front_time<20)<BR> {<BR> current_time=clock();<BR> }</P>
<P> setcolor(WHITE);<BR> outtextxy(257,457,"F1:
F2:
F3:");<BR> outtextxy(257,467,"Esc:
F4:");<BR> setcolor(YELLOW);<BR> outtextxy(257,457,"
Help
Level Player1
Color");<BR> outtextxy(257,467,"
Exit Player2 Color");</P>
<P> front_time=clock();</P>
<P> start_game=0;<BR> while(start_game==0)<BR> {<BR> while(!bioskey(1))<BR> {<BR> current_time=clock();<BR> if(current_time-front_time>8)<BR> {<BR> front_time=current_time;<BR> i=(i+1)%2;<BR> if(i==0) setcolor(LIGHTRED);<BR> else setcolor(BackColor);<BR> outtextxy(7,467,"Press
F5 to
continue...");<BR> }<BR> }<BR> key=GetKey();<BR> if(key==F1)<BR> { HelpMassage();<BR> GetKey();<BR> }<BR> else
if(key==F2) Set_Level();<BR> else
if(key==F3) Set_Color(1); /* set player1
color */<BR> else
if(key==F4) Set_Color(2); /* set player2
color */<BR> else
if(key==F5) start_game=1;<BR> else
if(key==ESC)<BR> { Quit=Exit_Game();<BR> if(Quit==1)<BR> start_game=1;<BR> }<BR> }<BR> }<BR>}</P>
<P>/* 主函数 */<BR>void
main(void)<BR>{<BR> InitialGraphics();<BR> GameManage();<BR> closegraph();<BR>}</P>
<P>****************************源代码结束********************************</P>
<P>程序已经过测试,没有任何问题,如果你的不能通过,有可能是TC有问题,你也可与我联系获得TC2。0或是已编译通过的文件,下载地址:</P>
<P><A
href="http://www.ourwp.com/c.htm">http://www.ourwp.com/c.htm</A></P>
<P>Author:jadewater(gaowenfeng)<BR>email:hostadmin@163.com<BR>QQ:277566252<BR><A
href="http://www.ourwp.com/">http://www.ourwp.com/</A>
[无盘之家]</P><BR></FONT></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD width="100%" height=25>
<DIV align=center></DIV></TD></TR>
<TR>
<TD width=255 height=20><A class=bottom
href="http://www.cstudyhome.com/wenzhang06/review.asp?NewsID=6163"
target=_blank> <IMG
height=18
src="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/icon1.gif"
width=18 border=0> <FONT color=blue>发表评论</FONT></A>
</TD></TR>
<TR>
<TD width="100%">
<HR SIZE=1>
</TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%" height=18><B>相关专题:</B>
<TR>
<TD width="100%">
<HR SIZE=1>
</TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%" height=18><B>相关信息:</B></TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%"> 没有相关信息</TD></TR>
<TR>
<TD width="100%">
<HR SIZE=1>
</TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%"><B>相关评论:</B></TD></TR>
<TR>
<TD height=8></TD></TR>
<TR>
<TD width="100%"> 没有相关评论 </TD></TR>
<TR>
<TD align=middle width="100%" height=28><A class=bottom
href="http://www.cstudyhome.com/wenzhang06/review.asp?NewsID=6163"
target=_blank><IMG height=11
src="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/more.gif"
width=50 border=0> <FONT color=blue>更多评论</FONT></A>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center bgColor=#c1c1c1
border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width=748 align=center bgColor=#a7ccfa
border=0>
<TBODY>
<TR>
<TD width=20
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/banbg.gif"> </TD>
<TD width=255
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/banbg.gif"
height=20></TD>
<TD width=214
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/banbg.gif"
height=20><A class=bottom
href="http://www.cstudyhome.com/wenzhang06/send.asp?NewsID=6163"
target=_blank><IMG height=16
src="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/mail.gif"
width=16 border=0> 将本信息发给好友</A> </TD>
<TD width=168
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/banbg.gif"><IMG
height=14
src="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/printer.gif"
width=16><A class=bottom href="javascript:window.print()">
打印本页</A></TD>
<TD width=91
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/banbg.gif"><INPUT onclick="window.close();return false;" type=button value=关闭窗口 name=close>
</TD></TR>
<TR vAlign=top>
<TD width=20 bgColor=#c1c1c1 height=1></TD>
<TD width=469 bgColor=#c1c1c1 colSpan=2 height=1></TD>
<TD width=259 bgColor=#c1c1c1 colSpan=2
height=1></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><!--<IFRAME src="http://www.cpok.com/ad/alp.htm?wangfu" width="760" height=110 marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></IFRAME>--><!--<IFRAME src='http://www.cpok.com/ad/alp.htm?wangfu' width='760' height='124' marginwidth='0' marginheight='0' frameborder='0' scrolling='no'></IFRAME>-->
<TABLE cellSpacing=0 cellPadding=0 width=750 align=center border=0>
<TBODY>
<TR>
<TD bgColor=#c1c1c1 height=1></TD></TR></TBODY></TABLE>
<TABLE class=p9 cellSpacing=0 cellPadding=0 width=750 align=center border=0>
<TBODY>
<TR>
<TD align=middle
background="C:\Documents and Settings\M&S\My Documents\C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files\BACK1(1).gif"
height=20> </TD></TR>
<TR>
<TD align=middle height=20><A class=bottom
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cstudyhome.com/wenzhang06');"
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=6163#"><BR>设为首页</A>
| <A class=bottom
onclick=window.external.AddFavorite(location.href,document.title);
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=6163#">加入收藏</A>
|<A class=bottom
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=1086"
target=_blank>广告服务</A>| <A class=bottom
href="mailto:webmaster@cstudyhome.com">联系我们</A><A class=bottom
href="http://www.cstudyhome.com/wenzhang06/admin/login.asp"
target=_blank>.</A><BR><BR>版权所有 Copyright © 2002~2006 C语言之家<BR><BR><A
class=bottom href="http://www.miibeian.gov.cn/"
target=_blank>鄂ICP备06011009</A> </TD></TR><BR>
<TR></TR></TBODY></TABLE>
<TABLE class=p9 cellSpacing=0 cellPadding=0 width="100%" align=center
border=0><TBODY>
<TR>
<TD align=middle><!-- <script language=JavaScript>
document.write("<a href='http://www.sunofcn.com/counter13/infolist.asp?admin=dd123'>");
document.write("<img src='http://www.sunofcn.com/counter13/count.asp?admin=dd123&Referer="+escape(top.document.referrer)+"&curURL="+escape(top.document.URL)+"&Width="+escape(screen.width)+"&Height="+escape(screen.height)+"' border=0 width=80 height=30 alt='阳光统计|WWW.SUNOFCN.COM'>");
document.write("</a>");
</script>--></TD></TR></TBODY></TABLE><BR><BR><BR>
<TABLE class=p9 cellSpacing=0 cellPadding=0 width="100%" align=center
border=0><TBODY>
<TR>
<TD align=middle width="7%"
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/bott.gif"
height=30> </TD>
<TD align=middle width="80%"
background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/footerbg.gif"
height=30> <FONT
color=#dde99f>........................................................................................................
</FONT>
<SCRIPT
src="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/Counter.htm"></SCRIPT>
</TD></TR></TBODY></TABLE>7 </BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -