?? snake_transmit_task.htm
字號:
<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:"Times New Roman";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:"Times New Roman";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:"Times New Roman";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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</span>char Game_Over_Caption_8[]="Game Over";<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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</strong></b></font>
</span><font size="2"><b><strong>char Game_Paused_Caption_8[]="Game Paused";<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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</strong></b></font>
</span><font size="2"><b><strong>char Game_Pass_Caption_8[]="Game Passed";<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:"Times New Roman";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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</strong></b></font>
</span><font size="2"><b><strong><span style="mso-spacerun: yes"> </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:"Times New Roman";mso-font-kerning:0pt"><span style="mso-tab-count:1"><font size="2"><b><strong>
</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:"Times New Roman";mso-font-kerning:0pt"><b><strong><font size="2"><span style="mso-tab-count:1">
</span>while(1)<o:p>
</o:p>
</font></strong></b>
</span></p>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -