source: 2011/23/sijoseha/Fera Proelia/Fera Proelia/Fera Proelia/Fera_Proelia.cs @ 2141

Revision 2141, 1.7 KB checked in by sijoseha, 9 years ago (diff)

Whoa. A lot of stuff since last commit.
Implemented ScreenManager? stuff to handle all the screens.
Input is handled also.
Simple tile based map system started up.
Normal menu.
Alotofsmallstuff

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using Microsoft.Xna.Framework;
5using Microsoft.Xna.Framework.Audio;
6using Microsoft.Xna.Framework.Content;
7using Microsoft.Xna.Framework.GamerServices;
8using Microsoft.Xna.Framework.Graphics;
9using Microsoft.Xna.Framework.Input;
10using Microsoft.Xna.Framework.Input.Touch;
11using Microsoft.Xna.Framework.Media;
12
13namespace Fera_Proelia
14{
15    /// <summary>
16    /// This is the main type for your game
17    /// </summary>
18    public class Fera_Proelia : Microsoft.Xna.Framework.Game
19    {
20        GraphicsDeviceManager graphics;
21
22        ScreenManager screenManager;
23
24        public Fera_Proelia()
25        {
26            graphics = new GraphicsDeviceManager(this);
27            graphics.IsFullScreen = true;
28            Content.RootDirectory = "Content";
29            graphics.SupportedOrientations = DisplayOrientation.Portrait;
30            graphics.PreferredBackBufferWidth = 480;
31            graphics.PreferredBackBufferHeight = 800;
32            // Frame rate is 30 fps by default for Windows Phone.
33            TargetElapsedTime = TimeSpan.FromTicks(333333);
34
35            screenManager = new ScreenManager(this);
36            Components.Add(screenManager);
37
38            screenManager.AddScreen(new MainMenuScreen());
39        }
40
41        /// <summary>
42        /// This is called when the game should draw itself.
43        /// </summary>
44        /// <param name="gameTime">Provides a snapshot of timing values.</param>
45        protected override void Draw(GameTime gameTime)
46        {
47            GraphicsDevice.Clear(Color.CornflowerBlue);
48            // TODO: Add your drawing code here
49
50            base.Draw(gameTime);
51        }
52    }
53}
Note: See TracBrowser for help on using the repository browser.