- XNA 4 3D Game Development by Example:Beginner's Guide
- Kurt Jaegers
- 72字
- 2021-08-05 18:55:25
Member variables
Just after the Game1
class declaration in the Game1.cs
file there are two class member declarations:
GraphicsDeviceManager graphics; SpriteBatch spriteBatch;
These two members will provide access to the system's video hardware (graphics
) and an instance of a class that can be used to draw 2D images and text (spriteBatch
). We can add our own member variables here for things we need to keep track of while our game is running.
推薦閱讀
- 數(shù)據(jù)浪潮
- MySQL數(shù)據(jù)庫進(jìn)階實(shí)戰(zhàn)
- PyTorch深度學(xué)習(xí)實(shí)戰(zhàn):從新手小白到數(shù)據(jù)科學(xué)家
- 在你身邊為你設(shè)計(jì)Ⅲ:騰訊服務(wù)設(shè)計(jì)思維與實(shí)戰(zhàn)
- 程序員修煉之道:從小工到專家
- Creating Mobile Apps with Sencha Touch 2
- Python廣告數(shù)據(jù)挖掘與分析實(shí)戰(zhàn)
- 數(shù)據(jù)庫開發(fā)實(shí)踐案例
- MySQL基礎(chǔ)教程
- Oracle高性能自動(dòng)化運(yùn)維
- 數(shù)據(jù)中心數(shù)字孿生應(yīng)用實(shí)踐
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- 區(qū)塊鏈技術(shù)應(yīng)用與實(shí)踐案例
- 區(qū)域云計(jì)算和大數(shù)據(jù)產(chǎn)業(yè)發(fā)展:浙江樣板
- 智慧城市中的大數(shù)據(jù)分析技術(shù)