Example #1
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            for (var x = 0; x < 20; x++)
            {
                for (var y = 0; y < 12; y++)
                {
                    spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(x * 64, y * 64), MainMenuScreen.GetTile(tiling[y * 20 + x], 0), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.10f);
                }
            }

            for (var i = 0; i < flowers.Count; i++)
            {
                if (flowers[i].Active)
                {
                    flowers[i].Draw(spriteBatch);
                }
            }

            if (ScreenManager.GameReference.PlacardState != TempleMain.PlacardSlideStates.Closed)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(276, ScreenManager.GameReference.YPlacardOffset), new Rectangle(1296, 1680, 728, 104),
                                 Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 1f);
            }

            ControlManager.Draw(spriteBatch);
        }
Example #2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            for (var i = 0; i < 4; i++)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(gridBacking[i].X + offsetX, gridBacking[i].Y + offsetY), new Rectangle(0, 736, 734, 448), Color.FromNonPremultiplied(65, 105, 199, 255), 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.05f);
            }

            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(128, 64), new Rectangle(144, 240, 304, 38), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.88f);
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(128, 128), new Rectangle(177, 208, 111, 32), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.88f);

            var toots = IOSNumberSpitter.UpdateNumberList(TempleMain.Player.TotalScore.ToString().ToCharArray());

            var teets = IOSNumberSpitter.UpdateNumberList(TempleMain.Player.Rank.ToString().ToCharArray());

            for (var i = 0; i < toots.Count; i++)
            {
                spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(i * 24 + 432, 64), toots[i], Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.77f);
            }

            for (var i = 0; i < teets.Count; i++)
            {
                spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(i + 24 + 256, 128), teets[i], Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.77f);
            }

            for (var y = 0; y < 2; y++)
            {
                for (var x = 0; x < 5; x++)
                {
                    if (!TempleMain.Player.PlayerTrophies[y * 5 + x].Awarded)
                    {
                        spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(x * 128 + 320, y * 128 + 384), new Rectangle(1728, 1792, 96, 96), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.77f);
                    }
                    else
                    {
                        spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(x * 128 + 320, y * 128 + 384), GetBorderSource(TempleMain.Player.PlayerTrophies[y * 5 + x].Name), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.77f);
                    }
                }
            }

            spriteBatch.Draw(SpriteLoader.IosMainSheet, Vector2.Zero, new Rectangle(760, 2032, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 712), new Rectangle(760, 2032, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 8), new Rectangle(2032, 1312, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(1272, 8), new Rectangle(2032, 1312, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);

            if (helperText != -1)
            {
                spriteBatch.Draw(SpriteLoader.IosTextSheet, new Vector2(320, 256), SourceRectangles[helperText], Color.White, 0f, Vector2.Zero, 1, SpriteEffects.None, 0.88f);
            }

            ControlManager.Draw(spriteBatch);

            if (ScreenManager.GameReference.PlacardState != TempleMain.PlacardSlideStates.Closed)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(276, ScreenManager.GameReference.YPlacardOffset), new Rectangle(1296, 1680, 728, 104),
                                 Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 1f);
            }
        }
Example #3
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (TempleMain.Player.ColorPreference != "Mystery")
            {
                for (var i = 0; i < 7; i++)
                {
                    spriteBatch.Draw(SpriteLoader.IosMainSheet, new Rectangle(66, 128 + (i * 36), 32, 32), new Rectangle(832, 608, 16, 16), PieceTemplate.ColorFamilies[i], 0f, Vector2.Zero, SpriteEffects.None, 0.66f);
                    spriteBatch.Draw(SpriteLoader.IosMainSheet, new Rectangle(64, 128 + (i * 36) - 2, 36, 36), new Rectangle(832, 608, 16, 16), Color.Black, 0f, Vector2.Zero, SpriteEffects.None, 0.65f);
                }
            }
            else
            {
                for (var i = 0; i < 7; i++)
                {
                    spriteBatch.Draw(SpriteLoader.IosMainSheet, new Rectangle(66, 128 + (i * 36), 32, 32), new Rectangle(928, 96, 32, 32), Color.White, 0f, Vector2.Zero, SpriteEffects.None, 0.66f);
                    spriteBatch.Draw(SpriteLoader.IosMainSheet, new Rectangle(64, 128 + (i * 36) - 2, 36, 36), new Rectangle(832, 608, 16, 16), Color.Black, 0f, Vector2.Zero, SpriteEffects.None, 0.65f);
                }
            }

            for (var i = 0; i < 4; i++)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(gridBacking[i].X + offsetX, gridBacking[i].Y + offsetY), new Rectangle(0, 736, 734, 448), Color.FromNonPremultiplied(224, 204, 140, 255), 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.05f);
            }

            // ios Blech
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(66, 72), new Rectangle(0, 312, 288, 40), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.68f);
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(584, 208), new Rectangle(0, 400, 224, 40), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.68f);
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(584, 72), new Rectangle(0, 360, 136, 32), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.68f);

            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(588, 248), new Rectangle(832, 608, 64, 64), Color.FromNonPremultiplied(201, 201, 201, 201), 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.43f);

            //spriteBatch.DrawString(SpriteLoader.LangFont32, langChoose[langPointer], new Vector2(588, 412), Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.99f);

            spriteBatch.Draw(SpriteLoader.IosMainSheet, Vector2.Zero, new Rectangle(760, 2032, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 712), new Rectangle(760, 2032, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 8), new Rectangle(2032, 1312, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(1272, 8), new Rectangle(2032, 1312, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);

            if (ScreenManager.GameReference.PlacardState != TempleMain.PlacardSlideStates.Closed)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(276, ScreenManager.GameReference.YPlacardOffset), new Rectangle(1296, 1680, 728, 104),
                                 Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 1f);
            }

            ControlManager.Draw(spriteBatch);
        }
Example #4
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            for (var i = 0; i < 4; i++)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(gridBacking[i].X + offsetX, gridBacking[i].Y + offsetY), new Rectangle(0, 736, 734, 448), MoodColor, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.05f);
            }

            numberSpitter.Draw(spriteBatch);

            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(320, 256), new Rectangle(64, 64, 640, 312), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Rectangle(368, 336, _currentWidth, 40), new Rectangle(928, 640, 64, 40), rectColor, 0f, Vector2.Zero, SpriteEffects.None, 0.55f);

            // drain score
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(336, 282), new Rectangle(200, 168, 224, 32), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);

            //spriteBatch.DrawString(SpriteLoader.Font20, "Session EXP: " + currentEXPPool.ToString(), new Vector2(470, 282), Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);

            // to level
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(336, 394), new Rectangle(168, 48, 170, 32), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            //spriteBatch.DrawString(SpriteLoader.Font20, "To Level: " + tempDrainPool.ToString() + "/" + xpNeededToLevel.ToString(), new Vector2(470, 390), Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            // seasons played
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(336, 440), new Rectangle(200, 88, 314, 38), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            // rank
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(336, 486), new Rectangle(200, 128, 128, 40), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            //matches
            spriteBatch.Draw(SpriteLoader.IosEnglish, new Vector2(584, 486), new Rectangle(336, 128, 175, 34), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            //spriteBatch.DrawString(SpriteLoader.Font20, "Rank: " + CurrentLvl.ToString(), new Vector2(770, 282), Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            //spriteBatch.DrawString(SpriteLoader.Font20, "Seasons Played: " + EndSeason.ToString(), new Vector2(470, 412), Color.Black, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);

            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(460, 600), new Rectangle(896, 256, 64, 64), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(532, 600), new Rectangle(960, 256, 64, 64), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(604, 600), new Rectangle(896, 320, 64, 64), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.66f);

            spriteBatch.Draw(SpriteLoader.IosMainSheet, Vector2.Zero, new Rectangle(760, 2032, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 712), new Rectangle(760, 2032, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 8), new Rectangle(2032, 1312, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(1272, 8), new Rectangle(2032, 1312, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);

            if (ScreenManager.GameReference.PlacardState != TempleMain.PlacardSlideStates.Closed)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(276, ScreenManager.GameReference.YPlacardOffset), new Rectangle(1296, 1680, 728, 104),
                                 Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 1f);
            }

            ControlManager.Draw(spriteBatch);
        }
Example #5
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            if (ready)
            {
                if (Tiling != null)
                {
                    for (var x = 0; x < 20; x++)
                    {
                        for (var y = 0; y < 12; y++)
                        {
                            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(x * 64, y * 64), MainMenuScreen.GetTile(Tiling[y * 20 + x], 0), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.45f);
                        }
                    }
                }

                spriteBatch.Draw(SpriteLoader.IosMainSheet, titleTextPosition, new Rectangle(1280, 0, 672, 280), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.65f);
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(titleTextPosition.X + 32, titleTextPosition.Y + 32), new Rectangle(1280, 320, 672, 280), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.64f);


                foreach (var flower in flowerPool)
                {
                    if (flower.Active)
                    {
                        spriteBatch.Draw(SpriteLoader.IosMainSheet, flower.Position, GetFlowerSource(flower.FlowerType, 1), flower.FlowerColor, 0f, FlowersTitle.Origin, flower.Scale, SpriteEffects.None, 0.62f);
                        spriteBatch.Draw(SpriteLoader.IosMainSheet, flower.Position, GetFlowerSource(flower.FlowerType, 2), flower.FlowerColor, 0f, FlowersTitle.Origin, flower.Scale, SpriteEffects.None, 0.62f);
                        spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(flower.Position.X + 6, flower.Position.Y + 6), GetFlowerSource(flower.FlowerType, 3), Color.White, 0f, FlowersTitle.Origin, flower.Scale, SpriteEffects.None, 0.61f);
                    }
                }

                foreach (var bee in bees)
                {
                    spriteBatch.Draw(SpriteLoader.IosMainSheet, bee.Position, Bee.GetSource(bee.Flap), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.63f);
                }
            }
            else
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(368, 200), new Rectangle(0, 1664, 544, 320), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            }
            ControlManager.Draw(spriteBatch);
        }
Example #6
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(SpriteLoader.IosTextSheet, new Vector2(468, 176), new Rectangle(432, 16, 376, 72), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.55f);
            spriteBatch.Draw(SpriteLoader.IosSecondarySheet, new Vector2(436, 160), new Rectangle(8, 344, 440, 104), Color.LightSalmon, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.54f);

            spriteBatch.Draw(SpriteLoader.IosMainSheet, Vector2.Zero, new Rectangle(768, 2040, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 712), new Rectangle(768, 2040, 1280, 8), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(0, 8), new Rectangle(2040, 1320, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);
            spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(1272, 8), new Rectangle(2040, 1320, 8, 704), Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.44f);

            if (ScreenManager.GameReference.PlacardState != TempleMain.PlacardSlideStates.Closed)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(276, ScreenManager.GameReference.YPlacardOffset), new Rectangle(1296, 1680, 728, 104),
                                 Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 1f);
            }

            for (var i = 0; i < 4; i++)
            {
                spriteBatch.Draw(SpriteLoader.IosMainSheet, new Vector2(gridBacking[i].X + offsetX, gridBacking[i].Y + offsetY), new Rectangle(0, 736, 734, 448), Color.FromNonPremultiplied(178, 30, 104, 255), 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.05f);
            }

            ControlManager.Draw(spriteBatch);
        }