コード例 #1
0
ファイル: Game1.cs プロジェクト: tsela85/Foldit3D_finalGame
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     device = graphics.GraphicsDevice;
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     SpriteFont font = Content.Load<SpriteFont>(@"font");
     SpriteFont scoreFont = Content.Load<SpriteFont>("scoreFont");
     HoleManager holeManager = new HoleManager(Content.Load<Texture2D>("hole2"), Content.Load<Effect>("effects"));
     AcidManager acidManager = new AcidManager(Content.Load<Texture2D>("acid"), Content.Load<Effect>("effects"));
     PlayerManager playerManager = new PlayerManager(Content.Load<Texture2D>("gum"), Content.Load<Effect>("effects"), Content.Load<Texture2D>("dupGum"), Content.Load<Texture2D>("staticGum"));
     PowerUpManager powerupManager = new PowerUpManager(Content.Load<Texture2D>("inkspot"), Content.Load<Effect>("effects"));
     Board board = new Board(Content.Load<Texture2D>("paper"), Content.Load<Effect>("effects"));
     Table table = new Table(Content.Load<Model>("Table"));
     camera = new Camera(this);
     input = new InputHandler(this);
     ourGame = new GameManager(font, scoreFont, holeManager, acidManager, playerManager, powerupManager, board,table, Content.Load<Texture2D>("startScreen"), Content.Load<Texture2D>("help"), Content.Load<Texture2D>("levelsScreen"));
     ourGame.loadCurrLevel();
 }
コード例 #2
0
ファイル: Game1.cs プロジェクト: tsela85/Foldit3D
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     device = graphics.GraphicsDevice;
     // Create a new SpriteBatch, which can be used to draw textures.
     spriteBatch = new SpriteBatch(GraphicsDevice);
     SpriteFont font = Content.Load<SpriteFont>("font");
     SpriteFont scoreFont = Content.Load<SpriteFont>("scoreFont");
     HoleManager holeManager = new HoleManager(Content.Load<Texture2D>("hole2"), Content.Load<Effect>("effects"));
     PlayerManager playerManager = new PlayerManager(Content.Load<Texture2D>("gummy2"), Content.Load<Effect>("effects"));
     PowerUpManager powerupManager = new PowerUpManager(Content.Load<Texture2D>("inkspot"), Content.Load<Effect>("effects"));
     Board board = new Board(Content.Load<Texture2D>("paper"), Content.Load<Effect>("effects"));
     camera = new Camera(this);
     input = new InputHandler(this);
     ourGame = new GameManager(font, scoreFont, holeManager, playerManager, powerupManager,board);
     ourGame.loadCurrLevel();
 }