Example #1
0
        protected override void Draw(GameTime gameTime)
        {
            StandAlone.ElapsedMillisec = gameTime.ElapsedGameTime.Milliseconds;

            Projector.Draw();
            StandAlone.InternalDraw();
            CustomDraw();
            base.Draw(gameTime);
        }
Example #2
0
 public static void CustomDraw_DamExample()
 {
     Game1.Painter.OpenCanvas(REMOEngine.Examples.DamExam_MainScene.scn.Camera, () =>
     {
         Cursor.Draw(Color.Black);
         if (User.Pressing(Keys.LeftControl, Keys.Q))
         {
             StandAlone.DrawString(Cursor.Pos.X + "," + Cursor.Pos.Y, Cursor.Pos + new Point(30, 0), Color.White, Color.Black);
         }
     });
 }
Example #3
0
        protected override void Update(GameTime gameTime)
        {
            if (GameExit)
            {
                Exit();
            }

            Projector.Update();
            StandAlone.InternalUpdate();
            CustomUpdate();
            User.Update();
            base.Update(gameTime);
        }
Example #4
0
        public static T RandomPick <T>(List <T> Ts) //리스트 아이템 중 한개를 랜덤하게 픽합니다.
        {
            double r = StandAlone.Random();
            double m = 1.0 / Ts.Count;

            for (int i = 0; i < Ts.Count; i++)
            {
                if (r >= m * i && r < m * (i + 1))
                {
                    return(Ts[i]);
                }
            }
            return(Ts[0]);
        }
Example #5
0
 public void Draw(Color c)
 {
     StandAlone.DrawString(FuncCallCount + " Loop,Time = " + StandAlone.ElapsedMillisec + "ms (per 1frame)", new Point(0, 0), c);
 }