snake_transmit_task.htm

来自「很小的程序 在arm上面可以运行的嵌入式的贪吃蛇游戏 网上找到的:)」· HTM 代码 · 共 818 行 · 第 1/5 页

HTM
818
字号
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>

<body>

<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2">/////////  
Transmit_Task /////////////<o:p> 
</o:p> 
</font></strong></b>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2">void 
<span style="color:red">Transmit_Task(void *Id)</span><o:p>
</o:p> 
</font></strong></b>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2">{<o:p>
</o:p> 
</font></strong></b>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>int i = 0;<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>u8 oldendpos[2];<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font>  
</span><font size="2"><b><strong><o:p>
</o:p>  
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span><o:p>
</o:p> 
</font></strong></b>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span>char Game_Over_Caption_8[]=&quot;Game Over&quot;;<o:p>   
</o:p>   
</font></strong></b> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>char Game_Paused_Caption_8[]=&quot;Game Paused&quot;;<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>char Game_Pass_Caption_8[]=&quot;Game Passed&quot;;<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2">&nbsp;<o:p>
</o:p>   
</font></strong></b> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span>U16 Game_Over_Caption_16[20];<o:p>   
</o:p>   
</font></strong></b> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>U16 Game_Paused_Caption_16[20];<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>U16 Game_Pass_Caption_16[20];<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font>  
</span><font size="2"><b><strong><o:p>
</o:p>  
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span>strChar2Unicode(Game_Over_Caption_16, Game_Over_Caption_8);<o:p>   
</o:p>   
</font></strong></b> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>strChar2Unicode(Game_Paused_Caption_16, Game_Paused_Caption_8);<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong>strChar2Unicode(Game_Pass_Caption_16, Game_Pass_Caption_8);<o:p>   
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2">&nbsp;<o:p>
</o:p>   
</font></strong></b> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span><o:p>
</o:p> 
</font></strong></b>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span>if (initfinished == FALSE)<o:p>   
</o:p>   
</font></strong></b> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font> 
</span><font size="2"><b><strong><span style="mso-spacerun: yes">&nbsp;&nbsp; </span>OSTimeDly(2000);<o:p>
</o:p>   
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>&nbsp;&nbsp;&nbsp;  
</strong></b></font>  
</span><font size="2"><b><strong><o:p>
</o:p>  
</strong></b></font> 
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0"><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">&nbsp;&nbsp;&nbsp; 
</span>while(1)<o:p>
</o:p>   
</font></strong></b> 
</span></p>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?