コード例 #1
0
 public Player(Game game) : base(game)
 {
     this.game = game;
     StepSize  = 0.5f;
     SkinType  = game.DefaultPlayerSkinType;
     anim      = new AnimatedComponent(game, this);
     shadow    = new ShadowComponent(game, this);
     SetModel("humanoid");
 }
コード例 #2
0
 public Player( Game game )
     : base(game)
 {
     this.game = game;
     StepSize = 0.5f;
     SkinType = game.DefaultPlayerSkinType;
     anim = new AnimatedComponent( game, this );
     shadow = new ShadowComponent( game, this );
     SetModel( "humanoid" );
 }
コード例 #3
0
        /// <summary> Calculates the next animation state based on old and new position. </summary>
        public void UpdateAnimState(double delta)
        {
            velTiltStrengthO = velTiltStrengthN;
            LocalPlayer p = game.LocalPlayer;

            // TODO: the Tilt code was designed for 60 ticks/second, fix it up for 20 ticks/second
            for (int i = 0; i < 3; i++)
            {
                AnimatedComponent.DoTilt(ref velTiltStrengthN, p.Hacks.Noclip || p.Hacks.Flying);
            }
        }
コード例 #4
0
ファイル: Entity.cs プロジェクト: KawaiiHP/ClassicalSharp
 public Entity(Game game)
 {
     this.game = game;
     SkinType  = game.DefaultPlayerSkinType;
     anim      = new AnimatedComponent(game, this);
 }
コード例 #5
0
 public Entity(Game game)
 {
     this.game = game;
     anim      = new AnimatedComponent(game, this);
 }