Пример #1
0
        void game_OnCheckGameInputs(MainGameEventArgs e)
        {
            WinAPIUtil.POINT pt    = WinAPIUtil.GetCursorPos();
            GenericStage     stage = e.Game.Stage as GenericStage;

            if (stage != null)
            {
                stage.NextUserPosition = new Vector2D(
                    this.GetXWithAspect(pt.x - this.Left),
                    stage.Position.Y + this.GetYWithAspect(pt.y - (this.Top + 20)));
            }
        }
Пример #2
0
 void game_BeforeRedraw(MainGameEventArgs e)
 {
     pictureBox1.Refresh();
 }