protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); _sfxHit = Content.Load <SoundEffect>(ASSET_NAME_SFX_HIT); _sfxScoreReached = Content.Load <SoundEffect>(ASSET_NAME_SFX_SCORE_REACHED); _sfxButtonPress = Content.Load <SoundEffect>(ASSET_NAME_SFX_BUTTON_PRESS); _spriteSheetTexture = Content.Load <Texture2D>(ASSET_NAME_SPRITESHEET); _trexEntity = new TrexEntity(_spriteSheetTexture, TREX_START_POST_X, TREX_START_POST_Y, _sfxButtonPress); _inputController = new InputController(_trexEntity); }
public InputController(TrexEntity trexEntity) { _trexEntity = trexEntity; }