示例#1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft;
            Content.RootDirectory          = "Content";

#if ANDROID
            graphics.PreferredBackBufferWidth  = 853;
            graphics.PreferredBackBufferHeight = 480;
#else
            graphics.PreferredBackBufferWidth  = 1280;
            graphics.PreferredBackBufferHeight = 720;
#endif

            CurrentTime = new GameClock();

            //buddies.Add(new FontBuddy());
            buddies.Add(new ShadowTextBuddy()
            {
                SpriteEffects = SpriteEffects.FlipVertically | SpriteEffects.FlipHorizontally
            });
            buddies.Add(new WrongTextBuddy());
            buddies.Add(new ShakyTextBuddy());
            buddies.Add(new OppositeTextBuddy());
            buddies.Add(new RainbowTextBuddy());

            buddies.Add(new PulsateBuddy
            {
            });
            buddies.Add(new PulsateBuddy
            {
                PulsateSize = 0.5f
            });
            buddies.Add(new PulsateBuddy
            {
                PulsateSize = 2f,
            });
            buddies.Add(new PulsateBuddy
            {
                StraightPulsate = false,
                SpriteEffects   = SpriteEffects.FlipVertically | SpriteEffects.FlipHorizontally
            });

            bounce = new BouncyNumbers()
            {
                Rescale = 1f,
            };
            bounce.Start(start, end);
            buddies.Add(bounce);

            num = new NumberBuddy(100)
            {
                SpriteEffects = SpriteEffects.FlipHorizontally | SpriteEffects.FlipVertically,
                //Rotation = MathHelper.ToRadians(-90),
            };
            buddies.Add(num);
        }
示例#2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft;
            Content.RootDirectory          = "Content";

#if ANDROID
            graphics.PreferredBackBufferWidth  = 853;
            graphics.PreferredBackBufferHeight = 480;
#else
            graphics.PreferredBackBufferWidth  = 1280;
            graphics.PreferredBackBufferHeight = 720;
#endif

            CurrentTime = new GameClock();

            var num = new NumberBuddy(number);
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.ScalePause = 10f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.ScaleTime = 10f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.ScalePause = 0f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.ScaleTime = 0f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.KillTime = 0f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.ScaleAtEnd = 1.2f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.KillTime = 10f;
            buddies.Add(num);

            num = new NumberBuddy(number);
            num.BouncyFont.ScaleAtEnd = 1.4f;
            num.BouncyFont.ScalePause = 0f;
            buddies.Add(num);
        }