public void Initialize() { isEnd = false; mapIndex = 0; sever.LoadStageData(); standAnime = new Animation(Renderer.GetTexture("standAnime"), 0.1f, true); runAnime = new Animation(Renderer.GetTexture("playerAnime"), 0.1f, true); sound.PlayBGM("worldmap1"); isBack = false; animation = standAnime; position = herol[mapIndex]; isMove = false; time = 0; direction = SpriteEffects.FlipHorizontally; }
public void Initialize(int index) { mapIndex = 0; mapnum = 0; isEnd = false; isBack = false; stageIndex = index; sever.LoadStageData(); standAnime = new Animation(Renderer.GetTexture("standAnime"), 0.1f, true); mapl = new List <Vector2>() { new Vector2(636, 41), new Vector2(636, 253), new Vector2(636, 465), new Vector2(636, 737), new Vector2(636, 949), new Vector2(636, 1161), }; }