Exemple #1
0
        public Character(GameScreen screen, float width, float height)
            : base(screen, width, height)
        {
            PhysicsBody.Body.BodyType = BodyType.Dynamic;

            PhysicsBody.OnCollision += onCollision;
            PhysicsBody.OnSeparation += onSeperation;

            //initialize the particle effect
            dustKickUpParticle = new ParticleEntity(screen, "Dust");
            screen.addObject(dustKickUpParticle);
            timeTillEndJumpAnim = 0;
            timeTillEndJumpPrep = 0;
        }