public PlayerClone(Handlers.ActorManager actorManager, ParticleManager particleManager, PuzzleEngineAlpha.Level.TileMap tileMap, PuzzleEngineAlpha.Camera.Camera camera, Vector2 location, ContentManager content, int frameWidth, int frameHeight, int collideWidth, int collideHeight) : base(tileMap, camera, location, frameWidth, frameHeight, collideWidth, collideHeight) { this.actorManager = actorManager; this.particleManager = particleManager; this.animations.Add("run", new PuzzleEngineAlpha.Animations.AnimationStrip(content.Load <Texture2D>(@"Textures/player"), frameWidth, "run")); currentAnimation = "run"; this.actorManager = actorManager; Reset(); }
public Player(Handlers.ActorManager actorManager, PuzzleEngineAlpha.Level.TileMap tileMap, PuzzleEngineAlpha.Camera.Camera camera, Vector2 location, Texture2D texture, float step, int frameWidth, int frameHeight, int collideWidth, int collideHeight) : base(tileMap, camera, location, frameWidth, frameHeight, collideWidth, collideHeight) { this.InitialLocation = location; this.animations.Add("run", new PuzzleEngineAlpha.Animations.AnimationStrip(texture, frameWidth, "run")); currentAnimation = "run"; this.step = step; movementScript = new MovementScript(); this.actorManager = actorManager; this.IsActive = false; tranparencyTransition = new PuzzleEngineAlpha.Animations.SmoothTransition(1.0f, 0.001f, 0.6f, 1.0f); IsActive = false; Interaction = false; movementState = 0; applyJumpForce = false; }