![]() Public virtual void Update(GameTime gameTime) Public virtual void LoadContent(ContentManager Content)Ĭontent = new ContentManager(Content.ServiceProvider, "content") GraphicsDevice.Clear(Color.CornflowerBlue) Protected override void Draw(GameTime gameTime) / This is called when the game should draw itself. If (GamePad.GetState(PlayerIndex.One).Buttons.Back = ButtonState.Pressed) Protected override void Update(GameTime gameTime) / Provides a snapshot of timing values. / checking for collisions, gathering input, and playing audio. / Allows the game to run logic such as updating the world, TODO: Unload any non ContentManager content here / UnloadContent will be called once per game and is the place to unload SpriteBatch = new SpriteBatch(GraphicsDevice) Create a new SpriteBatch, which can be used to draw textures. ![]() / LoadContent will be called once per game and is the place to load Graphics.PreferredBackBufferHeight = (int)Screen_ Graphics.PreferredBackBufferWidth = (int)Screen_ Calling base.Initialize will enumerate through any components / This is where it can query for any required services and load any non-graphic / Allows the game to perform any initialization it needs to before starting to run. Graphics = new GraphicsDeviceManager(this) Should appear on the screen pressing enter fades out the screen to the Title screen saying "Title Screen", the splash screen loads and when Z is pressed the fade animation happens but the Enter key has 0 effect on the game. What should happen when the game starts "Splash screen" When i start to debug my code it loads fine but only the fade in happens when i press Z the Enter key does not cause the fade or the next menu with text "Title Screen"to appear i wonder if anyone could tell me where i went wrong ill upload the full code below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |