Esempio n. 1
0
 protected override void InternalLoad()
 {
     m_cashier = new Cashier();
     m_hand = new Hand();
     liste_client = new Queue<Client>();
     panier = new ClientBasket();
     time = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 9, 0, 0);
 }
Esempio n. 2
0
        protected override void InternalLoad()
        {
            m_hp = 100;
            m_currentClient = null;
            m_currentProduct = null;
            m_rankActive = false;
            m_shaker = false;
            m_scanning = false;
            m_manualMode = false;
            m_magasinCA = 0;
            m_youCA = 0;
            m_price = 0;
            m_cashier = new Cashier();
            m_hand = new Hand();
            m_basket = new ClientBasket();
            m_time = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 9, 0, 0);
            Matrix world, view, projection;
            world = Matrix.Identity;
            view = Matrix.CreateLookAt(new Vector3(0, 0, 5), Vector3.Zero, Vector3.Up);
            projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.PiOver4, Application.Graphics.GraphicsDevice.Viewport.AspectRatio, 1, 10);
            m_render = new Model3DRenderer(Application.Graphics.GraphicsDevice, Application.SpriteBatch, projection, view, world);
            m_ending = false;
            m_pauseMidi = false;
            m_pauseMidiAnimation = false;
            m_bossZone = new Rectangle(Application.Graphics.GraphicsDevice.Viewport.Width - 80, 30, 80, 120);
            SceneCamera.FadeOut(40, null, Color.Chocolate);
            m_barCodeQte = new BarCodeQTE();
            m_rank = new Rectangle(0, 0, 300, 150);

            MusicPlayer.PlayGameMusic();

            Timer.Create(1f, true, (t =>
            {
                m_magasinCA += Application.Random.GetRandomFloat(10, 50);

            }));
        }