예제 #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();
 }