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

📄 snake_main_task.htm

📁 很小的程序 在arm上面可以运行的嵌入式的贪吃蛇游戏 网上找到的:)
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<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>void Main</title>
</head>

<body>

<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong>void    
<b style="mso-bidi-font-weight:normal"><span style="color:red">Main_Task(void 
*Id)</span></b><span style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</span>//Main_Test_Task<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; line-height: 100%; word-spacing: 0; 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"><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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong>&nbsp;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>POSMSG<span style="mso-spacerun: yes">&nbsp; </span>pMsg;<o:p>&nbsp;&nbsp;&nbsp;  
</o:p> 
</strong></b></font>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>Wnd snakeWindow;<o:p>&nbsp;&nbsp;&nbsp;&nbsp; //显示蛇的窗口变量</o:p>  
</strong></b></font>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>PWnd psnakeWindow;<o:p>&nbsp;&nbsp; //指向该窗口指针</o:p>  
</strong></b></font>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong>&nbsp;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>char bmpname[12]={'1','2','7','_','3','2',' ',' ','B','M','P',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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>char bmpnamelogo[12]={'1','4','5','_','5','9',' ',' ','B','M','P',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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>int loop;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong>&nbsp;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>char snakeDraw_Wnd_Caption_8[]=&quot;Snake Draw&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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>U16 snakeDraw_Wnd_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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong>&nbsp;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span><span style="mso-tab-count: 1">//初始化游戏状态</span> 
</strong></b></font>
</span></p>
<p class="MsoNormal" align="left" style="text-align: left; mso-layout-grid-align: none; text-autospace: none; line-height: 100%; word-spacing: 0; margin-top: 0; margin-bottom: 0">&nbsp;&nbsp;&nbsp;<span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt"> 
</span></strong></b></font>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:
宋体;mso-hansi-font-family:&quot;Times New Roman&quot;;mso-font-kerning:0pt"><font size="2"><b><strong>initfinished = FALSE;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;   
</span>gameover = FALSE;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>gamepass = FALSE;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>pause = FALSE;<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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-spacerun: yes; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
</span>catch = FALSE;<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; line-height: 100%; word-spacing: 0; 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; mso-tab-count: 1"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;    
</span><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; line-height: 100%; word-spacing: 0; 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"><font size="2"><b><strong><span style="mso-tab-count: 1; font-size: 10.0pt; font-family: 宋体; mso-hansi-font-family: Times New Roman; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;  
//定义显示蛇的窗口位置</span></strong></b></font>

⌨️ 快捷键说明

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