public LocalPlayer(Game game) : base(game)
        {
            DisplayName    = game.Username;
            SkinName       = game.Username;
            SkinIdentifier = "skin_255";

            collisions = new CollisionsComponent(game, this);
            Hacks      = new HacksComponent(game, this);
            physics    = new PhysicsComponent(game, this);
            input      = new InputComponent(game, this);
            sound      = new SoundComponent(game, this);

            physics.hacks      = Hacks; input.Hacks = Hacks;
            physics.collisions = collisions; input.collisions = collisions;
            input.physics      = physics;
        }
Example #2
0
        public LocalPlayer(Game game) : base(game)
        {
            DisplayName = game.Username;
            SkinName    = game.Username;

            collisions = new CollisionsComponent(game, this);
            Hacks      = new HacksComponent(game);
            physics    = new PhysicsComponent(game, this);
            input      = new InputComponent(game, this);
            sound      = new SoundComponent(game, this);
            interp     = new LocalInterpComponent(game, this);
            tilt       = new TiltComponent(game);

            physics.hacks      = Hacks; input.Hacks = Hacks;
            physics.collisions = collisions;
            input.physics      = physics;
        }