Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
貪食蛇
Search
j10405000
June 19, 2014
1
74
貪食蛇
貪食蛇遊戲
j10405000
June 19, 2014
Tweet
Share
Featured
See All Featured
Designing Experiences People Love
moore
135
23k
Designing with Data
zakiwarfel
95
4.8k
Build The Right Thing And Hit Your Dates
maggiecrowley
23
2k
Practical Orchestrator
shlominoach
181
9.7k
Stop Working from a Prison Cell
hatefulcrawdad
265
19k
Reflections from 52 weeks, 52 projects
jeffersonlam
343
19k
Statistics for Hackers
jakevdp
789
220k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
219
21k
Designing for humans not robots
tammielis
247
25k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
Code Review Best Practice
trishagee
54
15k
Side Projects
sachag
451
41k
Transcript
機統Python期末作業 貪食蛇 B0129053 柯志霖
操作說明 • 點擊鍵盤上下左右吃蘋果 • 貪食蛇會漸漸長大變長 • 撞到牆壁或自己的身體遊戲結束
程式說明 一開始執行Main函式,接著展示開始畫面,點擊 任何鍵後就會執行”執行遊戲()”函式, ”執行遊戲 ()”函式裡面設定一開始的各種參數,包含一開始 的食物位子,蛇的位子跟行進方向,如果不小心 撞到牆壁或死亡就會執行”展示結束遊系畫面()”函 式,再按任意鍵遊戲就會重新開始。