Exemplo n.º 1
0
 public GameOverScene(SceneManager sceneMgr, Video video, BBCGame game)
     : base(sceneMgr)
 {
     this.video = video;
     this.game = game;
     this.sceneMgr = sceneMgr;
 }
Exemplo n.º 2
0
 public ScoreScene(SceneManager sceneMgr)
     : base(sceneMgr)
 {
     TransitionOnTime = TimeSpan.FromSeconds(1);
     size_window = new Vector2(SceneManager.GraphicsDevice.Viewport.Width, SceneManager.GraphicsDevice.Viewport.Height);
     this.sceneMgr = sceneMgr;
 }
Exemplo n.º 3
0
 public BackgroundScene(SceneManager sceneMgr)
     : base(sceneMgr)
 {
     this.sceneMgr = sceneMgr;
     TransitionOnTime = TimeSpan.FromSeconds(0.5);
     TransitionOffTime = TimeSpan.FromSeconds(0.5);
 }
Exemplo n.º 4
0
 public CreditScene(SceneManager sceneMgr)
     : base(sceneMgr)
 {
     TransitionOnTime = TimeSpan.FromSeconds(1);
     this.sceneMgr = sceneMgr;
     //On charge les lignes du fichier
     lines = System.IO.File.ReadAllLines(@"credits.txt").OfType<String>().ToList();
 }
        protected AbstractMenuScene(SceneManager sceneMgr, string menuTitle)
            : base(sceneMgr)
        {
            _menuTitle = menuTitle;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
            TransitionOffTime = TimeSpan.FromSeconds(0.5);
        }
Exemplo n.º 6
0
        public MainMenuScene(SceneManager sceneMgr)
            : base(sceneMgr, "")
        {
            //new GameplayScene(sceneMgr).Add();
            this.sceneMgr = sceneMgr;

            TransitionOnTime = TimeSpan.FromSeconds(1.5);
            //TransitionOffTime = TimeSpan.FromSeconds(0.5);
        }
Exemplo n.º 7
0
        public Game1()
        {
            //Chargement des paramètres grapiques
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth = 1280;
            graphics.PreferredBackBufferHeight = 720;
            //graphics.IsFullScreen = true;
            Content.RootDirectory = "Content";
            var sceneMgr = new SceneManager(this);
            Components.Add(sceneMgr);

            new BackgroundScene(sceneMgr).Add();
            new MainMenuScene(sceneMgr).Add();
        }
Exemplo n.º 8
0
        public GameplayScene(SceneManager sceneMgr)
            : base(sceneMgr)
        {
            _pauseAlpha = 0;
            this.sceneMgr = sceneMgr;
            TransitionOnTime = TimeSpan.FromSeconds(1.5);
            TransitionOffTime = TimeSpan.FromSeconds(0);

            if (Content == null)
                Content = new ContentManager(SceneManager.Game.Services, "Content");

            size_window = new Vector2(1280, 720);
            mu = new Mutex();

            g = new BBCGame(size_window, Content);
        }
 public InstructionScene(SceneManager sceneMgr)
     : base(sceneMgr)
 {
     TransitionOnTime = TimeSpan.FromSeconds(1);
     this.sceneMgr = sceneMgr;
 }
Exemplo n.º 10
0
 protected AbstractGameScene(SceneManager sceneMgr)
     : base(sceneMgr.Game)
 {
     _sceneManager = sceneMgr;
 }
Exemplo n.º 11
0
 public ControleScene(SceneManager sceneMgr)
     : base(sceneMgr)
 {
     TransitionOnTime = TimeSpan.FromSeconds(1);
     this.sceneMgr = sceneMgr;
 }