public Level() : base() { Current = this; // pointer to level instance singleton // create level's objects. These will be added as a child later. MotionB = new MotionBehavior(); Subtitles = new SubtitleManager(); //debugMsg = new DebugMessage(); }
public Level() : base() { Current = this; // pointer to level instance singleton // create level's objects. These will be added as a child later. MotionB = new MotionBehavior(); Subtitles = new SubtitleManager(); StatusText = new SubtitleText(); HelpScroll = new TimedSpritelet("help-scroll.png"); //debugMsg = new DebugMessage(); }
public TitleScreen() { bg = new RotatingBackground("psych"); bg.Motion.Scale = 20.0f; bg.StartTime = 0f;// 9.09f; Add(bg); pixie = new Pixie(); pixie.Motion.Position = new Vector2(0.666f, 0.0f); pixie.Motion.Scale = 20.0f; pixie.Duration = TIME_LOGO_APPEAR; Add(pixie); cuteText = new SubtitleText(new string[] { "She's pink...", " She's cute...", " She's all square!" }, new float[] { 1.5f, 3.5f, 5.5f }, false); cuteText.Motion.Position = new Vector2(0.26f, 0.62f); cuteText.Duration = TIME_LOGO_APPEAR; Add(cuteText); /* * helpText = new SubtitleText("SPACE Play!\n C Credits\n ESC Exit"); * helpText.StartTime = 13.5f; * helpText.Motion.Scale = 0.7f; * helpText.DrawInfo.DrawColor = Color.AntiqueWhite; * helpText.Motion.Position = new Vector2(0.2f, 0.6f); * Add(helpText); */ helpText = new Spritelet("showControls"); helpText.StartTime = TIME_LOGO_APPEAR; helpText.Motion.Scale = 1f; helpText.Motion.Position = new Vector2(0.666f, 0.85f); Add(helpText); pixieLogo = new PixieLogo("pixielogo"); pixieLogo.Motion.Scale = 20.0f; pixieLogo.Motion.Position = new Vector2(0.666f, 0.35f); pixieLogo.StartTime = TIME_LOGO_APPEAR; Add(pixieLogo); MotionB = new MotionBehavior(); Add(MotionB); creditsScreen = new Thing("credits.png"); Add(creditsScreen); creditsScreen.Visible = false; /* * ttLogo = new Spritelet("tt-logo-4"); * ttLogo.Motion.Position = new Vector2(1.05f, 0.02f); * Add(ttLogo); */ }
public void Move() { TargetSpeed = 30; MotionBehavior.Move(); }
public void Move() { MotionBehavior.Move(); }
public void MoveTo(Point destination) { MotionBehavior.MoveTo(destination); }
public void Break() { this.TargetSpeed = 0; MotionBehavior.Move(); }