コード例 #1
0
ファイル: Program.cs プロジェクト: RightLegRed/Reax
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Reax game = new Reax())
     {
         game.Run();
     }
 }
コード例 #2
0
ファイル: LivingEntity.cs プロジェクト: RightLegRed/Reax
 public LivingEntity(Vector2 position, float speed, String name, Reax game)
 {
     this.position = position;
     this.speed = speed;
     this.name = name;
     this.world = game.getWorld();
     body = BodyFactory.CreateRectangle(world, 5, 5, 5);
     body.BodyType = BodyType.Dynamic;
     body.Mass = 1;
     body.Enabled = true;
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: RightLegRed/Reax
 public Player(Vector2 position, float speed, String name, Reax game)
     : base(position, speed, name, game)
 {
 }
コード例 #4
0
ファイル: Entities.cs プロジェクト: RightLegRed/Reax
 public Entities(Reax game)
 {
     this.game = game;
 }