This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

weilipan
weilipan presents ...

2014/10/28

Snake

使用鏈結串列來處理貪食蛇問題:
1.利用方向鍵控制前後左右,但不能回頭,避免回頭直接結束遊戲的尷尬情況。
2.吃到食物會直接在尾巴新增一個節點。
3.隨著吃掉食物的數量增加,速度會愈來愈快。

2548 views / 11 in the last 7 days

1 vote | 0 in the last 7 days

Tags: with-source

open in greenfoot
Your browser does not support the canvas tag.

No Comments

Want to leave a comment? You must first log in.

Who likes this?

BenMcBen