Esempio n. 1
0
        public void Tick(IWindow window, TickEventArgs e)
        {
            if (e.Tick > lastStepTime + StepTime) {
                lastStepTime = e.Tick;
                frameNumber++;

                if (frameNumber == Frames.Count) {
                    frameNumber = 0;
                }
            }
        }
Esempio n. 2
0
        static void window_OnTick(object sender, TickEventArgs e)
        {
            IWindow window = sender as IWindow;

            scene.Tick(window, e);
        }
Esempio n. 3
0
 public void Tick(IWindow window, TickEventArgs e)
 {
     foreach (IDrawable item in items) {
         item.Tick(window, e);
     }
 }
Esempio n. 4
0
        static void window_OnDraw(object sender, TickEventArgs e)
        {
            IWindow window = sender as IWindow;
            // Do whatever drawing we want to do here

            window.Fill(Color.SkyBlue);

            scene.Draw(window);
        }