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
機率與統計 期末程式作業 B0129063
Search
ms0495038
June 19, 2014
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
機率與統計 期末程式作業 B0129063
ms0495038
June 19, 2014
Featured
See All Featured
Writing Fast Ruby
sferik
630
63k
Automating Front-end Workflow
addyosmani
1369
210k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
HDC tutorial
michielstock
2
960
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
330
Transcript
None
遊戲介紹 遊戲名稱:Squirrel Eat Squirrel 遊戲玩法:利用上下左右操控,吃掉比自己小的動物自己就會變大,長大到某一程 度後就贏了。 但是,要是被比自己大的動物碰到的話將會減少1條命,若3條命都沒 了就GAME OVER。
原版畫面
修改 但……都是同一種動物,我覺得太單調 於是我把程式碼中,非玩家的部分修改,在另外拉出一類叫「敵人」 這樣就有兩種動物了!
將敵人圖片跟玩家圖片分開
將程式碼內部隨機生成squirrel的地方改成敵人 player的地方依舊為原本的玩家,程式碼不動 (以原本的原始碼來說,玩家跟敵人是相同的物件)
修改後的結果
檔案 展示影片:https://www.youtube.com/watch?v=5eZ-aoLjv-I&feature=youtu.be 遊戲檔案: https://drive.google.com/file/d/0BzUiD2dqHGpdGFZbWM2Q2tVUkk/edit?usp=s haring