コード例 #1
0
ファイル: Program.cs プロジェクト: Nerminkrus/Spel
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: Ball.cs プロジェクト: Nerminkrus/Spel
        public Ball(Texture2D tex, Texture2D aim, Vector2 pos, Game1 game)
        {
            this.game = game;
            this.tex = tex;
            this.aim = aim;
            this.pos = pos;
            radius = 30;

            origin = new Vector2(tex.Width / 2, tex.Height / 2);
            aim_origin = new Vector2(aim.Width / 2, aim.Height / 2);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: Nerminkrus/Spel
 public Form1(Game1 game)
 {
     this.game = game;
     InitializeComponent();
 }