⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c语言编的仿linux下ktron的街机游戏,对以前发的有点小修改_c语言游戏编程_c游戏编程_c语言_c 语言之家.htm

📁 BBS上淘来的一大堆C源代码
💻 HTM
📖 第 1 页 / 共 4 页
字号:
                              <P>&nbsp;&nbsp;front_time=current_time=clock();<BR>&nbsp;&nbsp;while(current_time-front_time&lt;20)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;current_time=clock();<BR>&nbsp;&nbsp;}</P>
                              <P>&nbsp;&nbsp;setcolor(WHITE);<BR>&nbsp;&nbsp;outtextxy(257,457,"F1:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                              F2:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                              F3:");<BR>&nbsp;&nbsp;outtextxy(257,467,"Esc:&nbsp;&nbsp;&nbsp;&nbsp; 
                              F4:");<BR>&nbsp;&nbsp;setcolor(YELLOW);<BR>&nbsp;&nbsp;outtextxy(257,457,"&nbsp;&nbsp;&nbsp; 
                              Help&nbsp;&nbsp;&nbsp; 
                              Level&nbsp;&nbsp;&nbsp;&nbsp; Player1 
                              Color");<BR>&nbsp;&nbsp;outtextxy(257,467,"&nbsp;&nbsp;&nbsp; 
                              Exit&nbsp;&nbsp;&nbsp; Player2 Color");</P>
                              <P>&nbsp;&nbsp;front_time=clock();</P>
                              <P>&nbsp;&nbsp;start_game=0;<BR>&nbsp;&nbsp;while(start_game==0)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;while(!bioskey(1))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;current_time=clock();<BR>&nbsp;&nbsp;&nbsp;&nbsp;if(current_time-front_time&gt;8)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;front_time=current_time;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;i=(i+1)%2;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(i==0)&nbsp;setcolor(LIGHTRED);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else&nbsp;&nbsp;setcolor(BackColor);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;outtextxy(7,467,"Press 
                              F5 to 
                              continue...");<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;key=GetKey();<BR>&nbsp;&nbsp;&nbsp;if(key==F1)<BR>&nbsp;&nbsp;&nbsp;{&nbsp;HelpMassage();<BR>&nbsp;&nbsp;&nbsp;&nbsp;GetKey();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else 
                              if(key==F2)&nbsp;Set_Level();<BR>&nbsp;&nbsp;&nbsp;else 
                              if(key==F3)&nbsp;Set_Color(1);&nbsp;/* set player1 
                              color */<BR>&nbsp;&nbsp;&nbsp;else 
                              if(key==F4)&nbsp;Set_Color(2);&nbsp;/* set player2 
                              color */<BR>&nbsp;&nbsp;&nbsp;else 
                              if(key==F5)&nbsp;start_game=1;<BR>&nbsp;&nbsp;&nbsp;else 
                              if(key==ESC)<BR>&nbsp;&nbsp;&nbsp;{&nbsp;&nbsp;Quit=Exit_Game();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(Quit==1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;start_game=1;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}</P>
                              <P>/* 主函数 */<BR>void 
                              main(void)<BR>{<BR>&nbsp;InitialGraphics();<BR>&nbsp;GameManage();<BR>&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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%">&nbsp;没有相关信息</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%">&nbsp;没有相关评论 </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&amp;S\My Documents\C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files\BACK1(1).gif" 
    height=20>&nbsp;</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 &copy; 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>&nbsp;</TD>
    <TD align=middle width="80%" 
    background="C语言编的仿LINUX下KTron的街机游戏,对以前发的有点小修改_C语言游戏编程_C游戏编程_C语言_C 语言之家.files/footerbg.gif" 
    height=30>&nbsp;<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 + -