public PlayerClone(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 CloneBox(ActorManager actorManager, ParticleManager particleManager, PuzzleEngineAlpha.Level.TileMap tileMap, PuzzleEngineAlpha.Camera.Camera camera, Vector2 location, Texture2D texture, ContentManager content, int frameWidth, int frameHeight, string tag) : base(tileMap, camera, location, frameWidth, frameHeight) { this.content = content; this.actorManager = actorManager; this.particleManager = particleManager; this.animations.Add("active", new PuzzleEngineAlpha.Animations.AnimationStrip(texture, frameWidth, "active")); currentAnimation = "active"; this.enabled = false; this.Tag = tag; playersAndClones = new Dictionary <Player, PlayerClone>(); }
public Player(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(); movementState = 0; this.actorManager = actorManager; this.IsActive = false; tranparencyTransition = new PuzzleEngineAlpha.Animations.SmoothTransition(1.0f, 0.001f, 0.6f, 1.0f); IsActive = false; Interaction = false; }