Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Content;
- using Microsoft.Xna.Framework.Graphics;
- using Ze_shooter.Objects;
- namespace Ze_shooter.Screen
- {
- class LoadingScreen : Screen
- {
- protected Texture2D screenTexture;
- protected Helper helper;
- protected GraphicsDevice GraphicsDevice;
- protected int _screenWidth;
- protected int _screenHeight;
- public LoadingScreen(EventHandler screenEvent, ContentManager Content, GraphicsDevice GraphicsDevice)
- : base(screenEvent)
- {
- helper = new Helper();
- this.GraphicsDevice = GraphicsDevice;
- _screenWidth = GraphicsDevice.Viewport.Width;
- _screenHeight = GraphicsDevice.Viewport.Height;
- }
- public override void Draw(SpriteBatch spriteBatch)
- {
- spriteBatch.Draw(screenTexture, new Rectangle(0, 0,_screenWidth, _screenHeight ), Color.White);
- base.Draw(spriteBatch);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement