- XNA 4.0 Game Development by Example Beginner's Guide(Visual Basic Edition)
- Kurt Jaegers
- 180字
- 2021-08-20 15:50:35
Time for action – play SquareChase!
What just happened?
You just finished your first XNA game, that's what!
Granted, it is not exactly the next blockbuster, but at only around 30 lines of code, it implements a simple game mechanic, user input, score tracking and display, and clock-based timing. Not bad for a few minutes' work.
Have a go hero
As simple as it is, here are a couple of enhancements you could make to SquareChase
:
- Vary the size of the square, making it smaller every few times the player catches one, until you reach a size of
10
pixels. - Start off with a higher setting for
TimePerSquare
and decrease it a little each time the player catches a square (hint: you'll need to remove theConst
declaration in front ofTimePerSquare
if you wish to change it at runtime).
推薦閱讀
- Redis使用手冊
- 數(shù)據(jù)存儲架構(gòu)與技術(shù)
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- 數(shù)據(jù)挖掘原理與實踐
- 從零開始學(xué)Hadoop大數(shù)據(jù)分析(視頻教學(xué)版)
- Learning JavaScriptMVC
- 揭秘云計算與大數(shù)據(jù)
- Creating Dynamic UIs with Android Fragments(Second Edition)
- 大話Oracle Grid:云時代的RAC
- 圖數(shù)據(jù)實戰(zhàn):用圖思維和圖技術(shù)解決復(fù)雜問題
- SQL Server 2012數(shù)據(jù)庫管理教程
- Hadoop 3實戰(zhàn)指南
- 活用數(shù)據(jù):驅(qū)動業(yè)務(wù)的數(shù)據(jù)分析實戰(zhàn)
- 從Lucene到Elasticsearch:全文檢索實戰(zhàn)
- Swift Functional Programming(Second Edition)