コード例 #1
0
ファイル: World.cs プロジェクト: mkenyon/Pinflower
 public void Initialize(PinflowerGame _game, Player _player, Texture2D _texture)
 {
     game = _game;
     worldTexture = _texture;
     player = _player;
     viewport = new Rectangle(0, 0, PinflowerGame.viewportWidth, PinflowerGame.viewportHeight);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: mkenyon/Pinflower
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (PinflowerGame game = new PinflowerGame())
     {
         game.Run();
     }
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: mkenyon/Pinflower
        public void Initialize(PinflowerGame game, Vector2 position, string spriteSet)
        {
            this.game = game;

            Position = position;
            LoadContent(spriteSet);
        }
コード例 #4
0
ファイル: Player.cs プロジェクト: mkenyon/Pinflower
        public void Initialize(PinflowerGame game, Vector2 position)
        {
            this.game = game;

            Position = position;
            velocity = Vector2.Zero;
            isJumping = false;
            isOnGround = true;
            LoadContent("Players");
        }