Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
貪食蛇
Search
Crystal Liu
June 19, 2014
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
貪食蛇
就是眾所皆知的貪食蛇囉~
Crystal Liu
June 19, 2014
Featured
See All Featured
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
280
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Product Roadmaps are Hard
iamctodd
55
13k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
How to make the Groovebox
asonas
2
2.5k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
520
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
AI: The stuff that nobody shows you
jnunemaker
PRO
10
1.2k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Test your architecture with Archunit
thirion
2
2.4k
Embracing the Ebb and Flow
colly
88
5.2k
Transcript
Wormy 貪食蛇
簡介 在遊戲中,玩家操控一條細長的直線(俗稱蛇或 蟲),它會不停前進,玩家只能操控蛇的頭部朝 向(上下左右),一路拾起觸碰到之物(或稱作 「豆」),並要避免觸碰到自身或者其他障礙物。 每次貪食蛇吃掉一件食物,它的身體便增長一些, 速度更逐漸加快,讓遊戲的難度漸漸變大。 有些遊戲設計成四周牆壁皆可穿透,這有時比不 可穿透牆壁更高難度。貪食蛇可以考驗個人的敏 捷與反應。
程式說明 • 首先以def 展示開始畫面()顯示起始動畫 “Wormy!”並以def 展示PressKey訊息() 及def 確認鍵被點擊()點擊任意鍵開始遊戲 • def
取得隨機位子(),def 畫格子(), def 畫貪 食蛇(貪食蛇座標), def 畫蘋果(coord)為遊 戲基本的顯示。蘋果會在隨機格子出現, 而初始單位長度的蟲(蛇)會於每次吃到蘋果 後增加一單位長度。 • def 寫分數(score)用以記錄分數