Exemplo n.º 1
0
 public override void Draw2()
 {
     for (int x = 0; x < 16; x++)
     {
         for (int y = 0; y < 12; y++)
         {
             if (grid_field[x, y] == 1)
             {
                 spriteBatch.Draw(SK.texture_background_grid32, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(6 * 32, 5 * 32) + new Vector2(32 * x, 32 * y), new Rectangle(0, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
             }
             if (grid_field[x, y] == 2)
             {
                 spriteBatch.Draw(SK.texture_background_grid32, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(6 * 32, 5 * 32) + new Vector2(32 * x, 32 * y), new Rectangle(32, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
             }
             if (grid_main [x, y])
             {
                 spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(6 * 32, 5 * 32) + new Vector2(32 * x, 32 * y), new Rectangle(32, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
             }
         }
     }
     foreach (Entity c in crate)
     {
         spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(6 * 32, 5 * 32) + c.Get_GridPos(), new Rectangle(0, 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
     }
     foreach (Entity c in cross)
     {
         spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(6 * 32, 5 * 32) + c.Get_GridPos(), new Rectangle(32, 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
     }
     spriteBatch.Draw(SK.texture_spritesheet_octanom_head, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(6 * 32, 5 * 32) + octanom.Get_GridPos(), new Rectangle(0, octanom.Get_LookDirection() * 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
 }
Exemplo n.º 2
0
        public override void Draw2()
        {
            //spriteBatch.Draw(SK.texture_background_mastermind1, SK.Position_DisplayEdge() + SK.Position_Mastermind1(), Color.White);

            for (int i = 0; i < 6; i++)
            {
                int y = 0;
                if (lamp[i] == "green")
                {
                    y = 3;
                }
                if (lamp[i] == "yellow")
                {
                    y = 2;
                }
                if (lamp[i] == "red")
                {
                    y = 1;
                }
                spriteBatch.Draw(SK.texture_spritesheet_lamps, SK.Position_DisplayEdge() + new Vector2(SK.Position_Mastermind_Lamps().X + 71 * i, SK.Position_Mastermind_Lamps().Y), new Rectangle(0, 64 * y, 64, 64), Color.White, 0, new Vector2(0, 0), 1, SpriteEffects.None, 0);

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + new Vector2(SK.Position_Mastermind_Lamps().X + 71 * i - 45, SK.Position_Mastermind_Lamps().Y + 350), null, selector == new Vector2(i, 0) ? Color.Gold : Color.White, 0, new Vector2(0, 0), 1, SpriteEffects.None, 0);
                spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + new Vector2(SK.Position_Mastermind_Lamps().X + 71 * i, SK.Position_Mastermind_Lamps().Y + 400), Get_Mino_Texture(slot[i], "middle"), Color.White, 0, new Vector2(0, 0), 1, SpriteEffects.None, 0);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + new Vector2(SK.Position_Mastermind_Lamps().X + 71 * i - 45, SK.Position_Mastermind_Lamps().Y + 470), null, selector == new Vector2(i, 1) ? Color.Gold : Color.White, 0, new Vector2(0, 0), 1, SpriteEffects.None, 0);

                //spriteBatch.Draw(SK.texture_spritesheet_minos_64x, new Vector2(429 + 138 * i, 303), Get_Mino_Texture(slot[i], "upper"), Color.White, 0, new Vector2(0, 0), 2, SpriteEffects.None, 0);
                //spriteBatch.Draw(SK.texture_spritesheet_minos_64x, new Vector2(429 + 138 * i, 439), Get_Mino_Texture(slot[i], "lower"), Color.White, 0, new Vector2(0, 0), 2, SpriteEffects.None, 0);
                //spriteBatch.Draw(SK.texture_spritesheet_minos_64x, new Vector2(429 + 138 * i, 371), Get_Mino_Texture(slot[i], "middle"), Color.White, 0, new Vector2(0, 0), 2, SpriteEffects.None, 0);
            }
            //spriteBatch.Draw(SK.texture_background_mastermind2, SK.Position_DisplayEdge() + SK.Position_Mastermind2(), Color.White);
        }
Exemplo n.º 3
0
        public override void Draw2()
        {
            //spriteBatch.Draw(SK.texture_background_2048, SK.Position_DisplayEdge() + SK.Position_2048(), Color.DarkGray);

            for (int x = 0; x < 8; x++)
            {
                for (int y = 0; y < cards_field[x].Count; y++)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 2 + 35 * x * 2, 48 * 4 + 48 * y), new Rectangle(1 + (int)(71 * cards_field[x][y].X), 1 + (int)(96 * cards_field[x][y].Y), 70, 95), selector_card == new Vector2(x, y) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 1, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 3, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 5, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 7, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 13, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 15, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 17, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            if (cards_freecell[0] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 1, 48 * 1), new Rectangle(1 + (int)(71 * cards_freecell[0].X), 1 + (int)(96 * cards_freecell[0].Y), 70, 95), selector_card == new Vector2(0, -2) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_freecell[1] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 3, 48 * 1), new Rectangle(1 + (int)(71 * cards_freecell[1].X), 1 + (int)(96 * cards_freecell[1].Y), 70, 95), selector_card == new Vector2(1, -2) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_freecell[2] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 5, 48 * 1), new Rectangle(1 + (int)(71 * cards_freecell[2].X), 1 + (int)(96 * cards_freecell[2].Y), 70, 95), selector_card == new Vector2(2, -2) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_freecell[3] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 7, 48 * 1), new Rectangle(1 + (int)(71 * cards_freecell[3].X), 1 + (int)(96 * cards_freecell[3].Y), 70, 95), selector_card == new Vector2(3, -2) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_finish[0].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[0][cards_finish[0].Count - 1].X), 1 + (int)(96 * cards_finish[0][cards_finish[0].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_finish[1].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 13, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[1][cards_finish[1].Count - 1].X), 1 + (int)(96 * cards_finish[1][cards_finish[1].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_finish[2].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 15, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[2][cards_finish[2].Count - 1].X), 1 + (int)(96 * cards_finish[2][cards_finish[2].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_finish[3].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 17, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[3][cards_finish[3].Count - 1].X), 1 + (int)(96 * cards_finish[3][cards_finish[3].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * selector_pos.X, 48 * selector_pos.Y), new Rectangle(1, 1, 70, 95), Color.Blue * 0.25f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
        }
Exemplo n.º 4
0
 public override void Draw2()
 {
     if (SK.orientation <= 2)
     {
         spriteBatch.Draw(SK.texture_background_grid64, SK.Position_DisplayEdge() + SK.Position_BackgroundGrid() + new Vector2(32, 0), Color.White);
     }
     else
     {
         spriteBatch.Draw(SK.texture_background_grid64, SK.Position_DisplayEdge() + SK.Position_BackgroundGrid() + new Vector2(0, 32), Color.White);
     }
     //spriteBatch.Draw(SK.texture_background_2048, SK.Position_DisplayEdge() + SK.Position_2048(), Color.DarkGray);
 }
Exemplo n.º 5
0
 public override void Draw2()
 {
     if (SK.orientation <= 2)
     {
         for (int x = 0; x < 13; x++)
         {
             for (int y = 0; y < 10; y++)
             {
                 if (selected_A && selected_A_pos == new Vector2(x, y))
                 {
                     spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), Get_Mino_Texture(grid_main[x, y], 1, 64), Color.White * alpha);
                 }
                 else if (selected_B && selected_B_pos == new Vector2(x, y))
                 {
                     spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), Get_Mino_Texture(grid_main[x, y], 1, 64), Color.White * alpha);
                 }
                 else
                 {
                     if (grid_main[x, y] != "empty")
                     {
                         spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), new Rectangle(0, 0, 64, 64), Color.White * beta);
                     }
                 }
             }
         }
         spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * selector.X, 64 * selector.Y), new Rectangle(0, 0, 64, 64), Color.Violet * 0.25f);
     }
     else
     {
         for (int x = 0; x < 13; x++)
         {
             for (int y = 0; y < 10; y++)
             {
                 if (selected_A && selected_A_pos == new Vector2(x, y))
                 {
                     spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), Get_Mino_Texture(grid_main[x, y], 1, 64), Color.White * alpha);
                 }
                 else if (selected_B && selected_B_pos == new Vector2(x, y))
                 {
                     spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), Get_Mino_Texture(grid_main[x, y], 1, 64), Color.White * alpha);
                 }
                 else
                 {
                     if (grid_main[x, y] != "empty")
                     {
                         spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), new Rectangle(0, 0, 64, 64), Color.White * beta);
                     }
                 }
             }
         }
         spriteBatch.Draw(SK.texture_spritesheet_minos_64x, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * selector.Y, 64 * (12 - selector.X)), new Rectangle(0, 0, 64, 64), Color.Violet * 0.25f);
     }
 }
Exemplo n.º 6
0
 public override void Draw2()
 {
     spriteBatch.Draw(SK.texture_background_2048, SK.Position_DisplayEdge() + SK.Position_2048(), Color.White);
     for (int y = 0; y < 4; y++)
     {
         for (int x = 0; x < 4; x++)
         {
             if (grid[x, y] != 0)
             {
                 spriteBatch.Draw(SK.texture_spritesheet_2048, new Vector2(SK.Position_DisplayEdge().X + 19 + SK.Position_2048().X + 128 * x + Get_Direction(true, x, y), SK.Position_DisplayEdge().Y + 19 + SK.Position_2048().Y + 128 * y + (Get_Direction(false, x, y))), new Rectangle((128 * Get_Spritesheet(true, grid[x, y])), (128 * Get_Spritesheet(false, grid[x, y])), 128, 128), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
             }
         }
     }
 }
Exemplo n.º 7
0
        public override void Draw2()
        {
            spriteBatch.Draw(SK.texture_background_tetris, SK.Position_DisplayEdge() + SK.Position_Tetris_Field(), Color.White);
            spriteBatch.Draw(SK.texture_static_tetris_next, SK.Position_DisplayEdge() + SK.Position_Tetris_Next(), Color.White);
            if (0 < FM.purchased[FM.Convert("hold")])
            {
                spriteBatch.Draw(SK.texture_static_tetris_hold, SK.Position_DisplayEdge() + SK.Position_Tetris_Hold(), Color.White);
            }
            spriteBatch.Draw(SK.texture_static_tetris_left, SK.Position_DisplayEdge() + SK.Position_Tetris_Left(), Color.White);
            spriteBatch.Draw(SK.texture_static_tetris_right, SK.Position_DisplayEdge() + SK.Position_Tetris_Right(), Color.White);

            for (int y = 0; y < 20; y++)
            {
                for (int x = 0; x < 10; x++)
                {
                    if (grid_base[x, y])
                    {
                        if (y == line1 || y == line2 || y == line3 || y == line4)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_minos_32x, SK.Position_DisplayEdge() + SK.Position_Tetris_Field() + new Vector2(32 * x, 32 * y), Get_Mino_Texture(TetroToMino(grid_color[x, y]), 0, 32), new Color(alpha, alpha, alpha));
                        }
                        else
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_minos_32x, SK.Position_DisplayEdge() + SK.Position_Tetris_Field() + new Vector2(32 * x, 32 * y), Get_Mino_Texture(TetroToMino(grid_color[x, y]), 0, 32), Color.White);
                        }
                    }
                }
            }

            if (alpha == 255)
            {
                spriteBatch.Draw(SK.texture_spritesheet_minos_32x, SK.Position_DisplayEdge() + SK.Position_Tetris_Field() + tetromino[0] * 32, Get_Mino_Texture(TetroToMino(container_current), 0, 32), Color.White);
                spriteBatch.Draw(SK.texture_spritesheet_minos_32x, SK.Position_DisplayEdge() + SK.Position_Tetris_Field() + tetromino[1] * 32, Get_Mino_Texture(TetroToMino(container_current), 0, 32), Color.White);
                spriteBatch.Draw(SK.texture_spritesheet_minos_32x, SK.Position_DisplayEdge() + SK.Position_Tetris_Field() + tetromino[2] * 32, Get_Mino_Texture(TetroToMino(container_current), 0, 32), Color.White);
                spriteBatch.Draw(SK.texture_spritesheet_minos_32x, SK.Position_DisplayEdge() + SK.Position_Tetris_Field() + tetromino[3] * 32, Get_Mino_Texture(TetroToMino(container_current), 0, 32), Color.White);
            }

            if (container_next != "empty")
            {
                Get_Tetromino(SK.Position_DisplayEdge() + SK.Position_Tetris_Next() + new Vector2(16, 16), container_next);
            }
            if (container_hold != "empty" && 0 < FM.purchased[FM.Convert("hold")])
            {
                Get_Tetromino(SK.Position_DisplayEdge() + SK.Position_Tetris_Hold() + new Vector2(16, 16), container_hold);
            }
        }
Exemplo n.º 8
0
        public override void Draw2()
        {
            for (int x = 0; x < 7; x++)
            {
                for (int y = 0; y < cards_field[x].Count; y++)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 2 + 35 * x * 2, 48 * 4 + 48 * y), new Rectangle(1 + (int)(71 * cards_field[x][y].X), 1 + (int)(96 * cards_field[x][y].Y), 70, 95), selector_card == new Vector2(x, y) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 1, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 4, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 8, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 14, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 17, 48 * 1), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.10f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            if (cards_reserve.Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 1, 48 * 1), new Rectangle(1, 1, 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_stack.Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 4, 48 * 1), new Rectangle(1 + (int)(71 * cards_stack  [cards_stack.Count - 1].X), 1 + (int)(96 * cards_stack  [cards_stack.Count - 1].Y), 70, 95), selector_card == new Vector2(-2, -2) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_finish[0].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 8, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[0][cards_finish[0].Count - 1].X), 1 + (int)(96 * cards_finish[0][cards_finish[0].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_finish[1].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[1][cards_finish[1].Count - 1].X), 1 + (int)(96 * cards_finish[1][cards_finish[1].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_finish[2].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 14, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[2][cards_finish[2].Count - 1].X), 1 + (int)(96 * cards_finish[2][cards_finish[2].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_finish[3].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 17, 48 * 1), new Rectangle(1 + (int)(71 * cards_finish[3][cards_finish[3].Count - 1].X), 1 + (int)(96 * cards_finish[3][cards_finish[3].Count - 1].Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * selector_pos.X, 48 * selector_pos.Y), new Rectangle(1, 1, 70, 95), Color.Blue * 0.25f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
        }
Exemplo n.º 9
0
        public override void Draw2()
        {
            for (int x = 0; x < 10; x++)
            {
                for (int y = 0; y < cards_field[x].Count; y++)
                {
                    //if(y == cards_field[x].Count - 1) {
                    spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * x * 2, 48 * 1 + 48 * y), new Rectangle(1 + (int)(71 * cards_field[x][y].X), 1 + (int)(96 * cards_field[x][y].Y), 70, 95), selector_card == new Vector2(x, y) ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    //} else {
                    //    spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 0, 48 * 1 + 48 * y), new Rectangle(1, 1, 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    //}
                }
            }

            if (cards_reserve[4].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 15, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_reserve[3].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 16, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_reserve[2].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 17, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_reserve[1].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 18, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_reserve[0].Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 19, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            int i = 0;

            foreach (Vector2 v in cards_finish)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 2 + 35 * i, 48 * 12), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                i++;
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * selector_pos.X, 48 * selector_pos.Y), new Rectangle(1, 1, 70, 95), Color.Blue * 0.25f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
        }
Exemplo n.º 10
0
 public override void Draw2()
 {
     spriteBatch.Draw(SK.texture_background_2048, SK.Position_DisplayEdge() + SK.Position_2048(), Color.White);
     for (int y = 0; y < 4; y++)
     {
         for (int x = 0; x < 4; x++)
         {
             if (grid[x, y] == -1)
             {
                 if (active_gameover)
                 {
                     spriteBatch.Draw(SK.texture_spritesheet_2048, new Vector2(SK.Position_DisplayEdge().X + 8 + SK.Position_2048().X + 128 * x, SK.Position_DisplayEdge().Y + 8 + SK.Position_2048().Y + 128 * y), new Rectangle(1 + (65 * Get_Spritesheet(true, grid[x, y])), 1 + (65 * Get_Spritesheet(false, grid[x, y])), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
                 }
             }
             else
             {
                 spriteBatch.Draw(SK.texture_spritesheet_mysticsquare, new Vector2(SK.Position_DisplayEdge().X + 8 + SK.Position_2048().X + 128 * x + Get_Direction(true, x, y), SK.Position_DisplayEdge().Y + 8 + SK.Position_2048().Y + 128 * y + (Get_Direction(false, x, y))), new Rectangle(1 + (65 * Get_Spritesheet(true, grid[x, y])), 1 + (65 * Get_Spritesheet(false, grid[x, y])), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
             }
         }
     }
 }
Exemplo n.º 11
0
        public override void Draw2()
        {
            //if(SK.orientation <= 2) {
            //    spriteBatch.Draw(SK.texture_background_grid32, SK.Position_DisplayEdge() + SK.Position_BackgroundGrid() + new Vector2(32, 0), Color.White);
            //} else {
            //    spriteBatch.Draw(SK.texture_background_grid32, SK.Position_DisplayEdge() + SK.Position_BackgroundGrid() + new Vector2(0, 32), Color.White);
            //}

            spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_CoinPos(0), new Rectangle(0, 0, 32, 32), new Color(255, 255, 225), 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_CoinPos(1), new Rectangle(0, 0, 32, 32), new Color(255, 225, 225), 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_CoinPos(2), new Rectangle(0, 0, 32, 32), new Color(225, 255, 225), 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_CoinPos(3), new Rectangle(0, 0, 32, 32), new Color(225, 225, 255), 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_CoinPos(4), new Rectangle(0, 0, 32, 32), new Color(255, 255, 255), 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            spriteBatch.Draw(SK.texture_spritesheet_octanom_head, SK.Position_DisplayEdge() + SK.Position_Grid32() + octanom_head.Get_GridPos(SK.orientation), new Rectangle(0, octanom_head.Get_LookDirection(SK.orientation) * 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            foreach (Entity tail in octanom_tail)
            {
                spriteBatch.Draw(SK.texture_spritesheet_octanom_tail, SK.Position_DisplayEdge() + SK.Position_Grid32() + tail.Get_GridPos(SK.orientation), new Rectangle(0, tail.Get_LookDirection(SK.orientation) * 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
        }
Exemplo n.º 12
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                if (active_flag)
                {
                    active_flag = false;
                }
                else
                {
                    active_flag = true;
                } pressed_response = true;
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed)
            {
                Command_Grid_Enter(); pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                if (SK.orientation <= 2)
                {
                    if (selector.Y > 0)
                    {
                        selector.Y--;
                    }
                    pressed_response = true;
                }
                else
                {
                    if (selector.X < 12)
                    {
                        selector.X++;
                    }
                    pressed_response = true;
                }
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                if (SK.orientation <= 2)
                {
                    if (selector.Y < 9)
                    {
                        selector.Y++;
                    }
                    pressed_response = true;
                }
                else
                {
                    if (selector.X > 0)
                    {
                        selector.X--;
                    }
                    pressed_response = true;
                }
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                if (SK.orientation <= 2)
                {
                    if (selector.X > 0)
                    {
                        selector.X--;
                    }
                    pressed_response = true;
                }
                else
                {
                    if (selector.Y > 0)
                    {
                        selector.Y--;
                    }
                    pressed_response = true;
                }
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                if (SK.orientation <= 2)
                {
                    if (selector.X < 12)
                    {
                        selector.X++;
                    }
                    pressed_response = true;
                }
                else
                {
                    if (selector.Y < 9)
                    {
                        selector.Y++;
                    }
                    pressed_response = true;
                }
            }

            if (SK.orientation <= 2)
            {
                for (int x = 0; x < 13; x++)
                {
                    for (int y = 0; y < 10; y++)
                    {
                        if (pressed_event_touch)
                        {
                            if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                            {
                                if (selector == new Vector2(x, y))
                                {
                                    Command_Grid_Enter();
                                }
                                else
                                {
                                    selector = new Vector2(x, y);
                                }
                            }
                        }
                        else
                        {
                            if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                            {
                                selector = new Vector2(x, y);
                            }
                        }
                    }
                }
            }
            else
            {
                for (int x = 0; x < 10; x++)
                {
                    for (int y = 0; y < 13; y++)
                    {
                        if (pressed_event_touch)
                        {
                            if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                            {
                                if (selector == new Vector2(12 - y, x))
                                {
                                    Command_Grid_Enter();
                                }
                                else
                                {
                                    selector = new Vector2(12 - y, x);
                                }
                            }
                        }
                        else
                        {
                            if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                            {
                                selector = new Vector2(12 - y, x);
                            }
                        }
                    }
                }
            }
            return("null");
        }
Exemplo n.º 13
0
        public override void Draw2()
        {
            if (SK.orientation <= 2)
            {
                for (int y = 0; y < 10; y++)
                {
                    for (int x = 0; x < 13; x++)
                    {
                        int i = grid_base[x, y];
                        if (grid_flag[x, y])
                        {
                            i = 12;
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                        else if (grid_cover[x, y])
                        {
                            i = 11;
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                        else
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                    }
                }
                foreach (Entity E in explosions)
                {
                    float x     = E.Get_GridPos().X;
                    float y     = E.Get_GridPos().Y;
                    Color color = Color.White;
                    spriteBatch.Draw(SK.texture_spritesheet_explosion, SK.Position_DisplayEdge() + new Vector2((int)(SK.Position_Grid64().X + 32 * x), (int)(SK.Position_Grid64().Y + 32 * y)), new Rectangle(1 + E.Get_HP() / 2 + (64 * E.Get_HP() / 2), 1, 64, 64), color, 0.0f, new Vector2(0, 0), 2F, SpriteEffects.None, 0.0f);
                    E.Change_HP(1);
                }
                spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2((int)(64 * selector.X), (int)(64 * selector.Y)), new Rectangle(1, 1 + 11 + (64 * 11), 64, 64), Color.Yellow * 0.25f, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
            }
            else
            {
                for (int x = 0; x < 13; x++)
                {
                    for (int y = 0; y < 10; y++)
                    {
                        int i = grid_base[x, y];
                        if (grid_flag[x, y])
                        {
                            i = 12;
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                        else if (grid_cover[x, y])
                        {
                            i = 11;
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                        else
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                    }
                }
                foreach (Entity E in explosions)
                {
                    float x     = E.Get_GridPos().X;
                    float y     = E.Get_GridPos().Y;
                    Color color = Color.White;
                    spriteBatch.Draw(SK.texture_spritesheet_explosion, SK.Position_DisplayEdge() + new Vector2((int)(SK.Position_Grid64().X + 32 * y), (int)(SK.Position_Grid64().Y + 32 * (12 - x))), new Rectangle(1 + E.Get_HP() / 2 + (64 * E.Get_HP() / 2), 1, 64, 64), color, 0.0f, new Vector2(0, 0), 2F, SpriteEffects.None, 0.0f);
                    E.Change_HP(1);
                }
                spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2((int)(64 * selector.Y), (int)(64 * (12 - selector.X))), new Rectangle(1, 1 + 11 + (64 * 11), 64, 64), Color.Yellow * 0.25f, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
            }

            if (alpha < 1)
            {
                if (SK.orientation <= 2)
                {
                    for (int y = 0; y < 10; y++)
                    {
                        for (int x = 0; x < 13; x++)
                        {
                            int i = 11;
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * x, 64 * y), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White * alpha, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                    }
                }
                else
                {
                    for (int x = 0; x < 13; x++)
                    {
                        for (int y = 0; y < 10; y++)
                        {
                            int i = 11;
                            spriteBatch.Draw(SK.texture_spritesheet_minesweeper, SK.Position_DisplayEdge() + SK.Position_Grid64() + new Vector2(64 * y, 64 * (12 - x)), new Rectangle(1, 1 + i + (64 * i), 64, 64), Color.White * alpha, 0.0f, new Vector2(0, 0), 1F, SpriteEffects.None, 0.0f);
                        }
                    }
                }
            }
        }
Exemplo n.º 14
0
        public override void Draw2()
        {
            spriteBatch.Draw(SK.texture_background_grid32, SK.Position_DisplayEdge() + SK.Position_BackgroundGrid(), Color.White);

            for (int x = 0; x < 28; x++)
            {
                for (int y = 0; y < 23; y++)
                {
                    if (grid_main[x, y])
                    {
                        spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_GridPos(x, y), new Rectangle(0, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    }
                    if (grid_points[x, y])
                    {
                        spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_GridPos(x, y), new Rectangle(0, 64, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    }
                    if (grid_power[x, y])
                    {
                        spriteBatch.Draw(SK.texture_spritesheet_coin, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_GridPos(x, y), new Rectangle(0, 32, 32, 32), Color.LightBlue, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    }
                }
            }

            Color color = Color.White;

            if (powerup)
            {
                color = Color.Blue;
            }

            if (!active_gameover)
            {
                spriteBatch.Draw(SK.texture_spritesheet_octanom_head, SK.Position_DisplayEdge() + SK.Position_Grid32() + octanom.Get_GridPos(SK.orientation), new Rectangle(0, octanom.Get_LookDirection(SK.orientation) * (32), 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            spriteBatch.Draw(SK.texture_spritesheet_trianom, SK.Position_DisplayEdge() + SK.Position_Grid32() + trianom[0].Get_GridPos(SK.orientation), new Rectangle(0, trianom[0].Get_LookDirection(SK.orientation) * (32), 32, 32), color, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_trianom, SK.Position_DisplayEdge() + SK.Position_Grid32() + trianom[1].Get_GridPos(SK.orientation), new Rectangle(0, trianom[1].Get_LookDirection(SK.orientation) * (32), 32, 32), color, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_trianom, SK.Position_DisplayEdge() + SK.Position_Grid32() + trianom[2].Get_GridPos(SK.orientation), new Rectangle(0, trianom[2].Get_LookDirection(SK.orientation) * (32), 32, 32), color, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_trianom, SK.Position_DisplayEdge() + SK.Position_Grid32() + trianom[3].Get_GridPos(SK.orientation), new Rectangle(0, trianom[3].Get_LookDirection(SK.orientation) * (32), 32, 32), color, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

            for (int x = 0; x < 28; x++)
            {
                for (int y = 0; y < 23; y++)
                {
                    if (grid_gate[x, y])
                    {
                        spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_GridPos(x, y), new Rectangle(32, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    }
                    if (position_octanom_start == new Vector2(x, y))
                    {
                        spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_GridPos(x, y), new Rectangle(64, 32, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    }
                    if (position_trianom_start == new Vector2(x, y))
                    {
                        spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + Get_GridPos(x, y), new Rectangle(96, 32, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    }
                }
            }

            foreach (Entity E in explosions)
            {
                spriteBatch.Draw(SK.texture_spritesheet_explosion, SK.Position_DisplayEdge() + SK.Position_Grid32() + E.Get_GridPos(SK.orientation) - new Vector2(16), new Rectangle(1 + E.Get_HP() / 2 + (64 * (E.Get_HP() / 2)), 1, 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                E.Change_HP(1);
            }
        }
Exemplo n.º 15
0
        public override void Draw2()
        {
            spriteBatch.Draw(SK.texture_background_grid32, SK.Position_DisplayEdge() + SK.Position_BackgroundGrid(), Color.White);
            if (SK.orientation <= 2)
            {
                for (int x = 0; x < 28; x++)
                {
                    for (int y = 0; y < 23; y++)
                    {
                        if (field[y] == 0)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(32 * x, 32 * y), new Rectangle(32 * 2, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                        }
                        if (field[y] == 1)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(32 * x, 32 * y), new Rectangle(32 * 3, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                        }
                        if (field[y] == 2)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(32 * x, 32 * y), new Rectangle(32 * 4, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                        }
                    }
                }
                foreach (Entity c in lilypad)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_octanom_tail, SK.Position_DisplayEdge() + SK.Position_Grid32() + c.Get_Pos(), new Rectangle(0, 0, 32, 32), Color.LightGreen, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }
                foreach (Entity c in crate)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + c.Get_Pos(), new Rectangle(0, 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }

                if (octanom.Get_HP() > 0)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_octanom_head, SK.Position_DisplayEdge() + SK.Position_Grid32() + octanom.Get_Pos(), new Rectangle(0, octanom.Get_LookDirection() * (32), 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }

                foreach (Entity c in trianom)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_trianom, SK.Position_DisplayEdge() + SK.Position_Grid32() + c.Get_Pos(), new Rectangle(0, c.Get_LookDirection() * (32), 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }

                foreach (Entity E in explosions)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_explosion, SK.Position_DisplayEdge() + SK.Position_Grid32() + E.Get_Pos() - new Vector2(16), new Rectangle(1 + E.Get_HP() + (64 * (E.Get_HP() / 2)), 1, 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    E.Change_HP(1);
                }
            }
            else
            {
                for (int x = 0; x < 28; x++)
                {
                    for (int y = 0; y < 23; y++)
                    {
                        if (field[y] == 0)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(32 * y, 32 * (27 - x)), new Rectangle(32 * 2, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                        }
                        if (field[y] == 1)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(32 * y, 32 * (27 - x)), new Rectangle(32 * 3, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                        }
                        if (field[y] == 2)
                        {
                            spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(32 * y, 32 * (27 - x)), new Rectangle(32 * 4, 0, 32, 32), Color.WhiteSmoke, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                        }
                    }
                }
                foreach (Entity c in lilypad)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_octanom_tail, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(c.Get_Pos().Y, 27 * 32 - c.Get_Pos().X), new Rectangle(0, 0, 32, 32), Color.LightGreen, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }
                foreach (Entity c in crate)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_octagames, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(c.Get_Pos().Y, 27 * 32 - c.Get_Pos().X), new Rectangle(0, 32, 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }

                if (octanom.Get_HP() > 0)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_octanom_head, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(octanom.Get_Pos().Y, 27 * 32 - octanom.Get_Pos().X), new Rectangle(0, octanom.Get_LookDirection() * (32), 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }

                foreach (Entity c in trianom)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_trianom, SK.Position_DisplayEdge() + SK.Position_Grid32() + new Vector2(c.Get_Pos().Y, 27 * 32 - c.Get_Pos().X), new Rectangle(0, c.Get_LookDirection() * (32), 32, 32), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                }

                foreach (Entity E in explosions)
                {
                    spriteBatch.Draw(SK.texture_spritesheet_explosion, SK.Position_DisplayEdge() + new Vector2(E.Get_Pos().Y - 16, E.Get_Pos().X - 16 - 27 * 32), new Rectangle(1 + E.Get_HP() + (64 * (E.Get_HP() / 2)), 1, 64, 64), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                    E.Change_HP(1);
                }
            }
        }
Exemplo n.º 16
0
 public override void Draw2()
 {
     spriteBatch.Draw(SK.texture_background_2048, SK.Position_DisplayEdge() + SK.Position_2048(), Color.DarkGray);
 }
Exemplo n.º 17
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                Spin(); pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                    {
                        betmulti++;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (betmulti > 0)
                    {
                        betmulti--;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (selector_bet > 0)
                    {
                        selector_bet--;
                    }
                    else
                    {
                        if (multi > 1)
                        {
                            multi--; Change_Bet(1);
                        }
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                pressed_response = true; if (!active_spin)
                {
                    if (selector_bet < 1)
                    {
                        selector_bet++;
                    }
                    else
                    {
                        if (multi < 5)
                        {
                            multi++; Change_Bet(2);
                        }
                    }
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
            {
                pressed_response = true;
                if (!active_spin && !end)
                {
                    Change_Bet(0);
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) != GhostState.released)
            {
                pressed_response = true;
                if (!active_spin && !end)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        selector_bet = 0; Change_Bet(0);
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        selector_bet = 1; Change_Bet(0);
                    }

                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up1().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up2().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down1().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down2().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Left().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Left().Y, SK.texture_casino_bet_left.Width, SK.texture_casino_bet_left.Height)))
                    {
                        if (multi > 1)
                        {
                            multi--; Change_Bet(1);
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Right().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Right().Y, SK.texture_casino_bet_right.Width, SK.texture_casino_bet_right.Height)))
                    {
                        if (multi < 5)
                        {
                            multi++; Change_Bet(2);
                        }
                    }
                }
            }
            if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
            {
                if (!active_spin && !end)
                {
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        selector_bet = 0;
                    }
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        selector_bet = 1;
                    }
                }
            }
            return("void");
        }
Exemplo n.º 18
0
        public override string Update2()
        {
            if (move != 0)
            {
                if (movingIN)
                {
                    move += 5;
                    if (move == 165)
                    {
                        movingIN = false;
                        Sort();
                    }
                }
                else
                {
                    move -= 5;
                    if (move == 0)
                    {
                        Result();
                    }
                }
            }
            else if (active_transition)
            {
                if (transition_up)
                {
                    if (trans0 < 2.00f)
                    {
                        trans0 = trans0 + 0.05f;
                        if (betting)
                        {
                            trans1 = trans1 + 0.05f;
                            trans2 = trans2 + 0.05f;
                            trans3 = trans3 + 0.05f;
                            trans4 = trans4 + 0.05f;
                            trans5 = trans5 + 0.05f;
                        }
                        else
                        {
                            if (!hold1)
                            {
                                trans1 = trans1 + 0.05f;
                            }
                            if (!hold2)
                            {
                                trans2 = trans2 + 0.05f;
                            }
                            if (!hold3)
                            {
                                trans3 = trans3 + 0.05f;
                            }
                            if (!hold4)
                            {
                                trans4 = trans4 + 0.05f;
                            }
                            if (!hold5)
                            {
                                trans5 = trans5 + 0.05f;
                            }
                        }
                    }
                    else
                    {
                        transition_up     = false;
                        active_transition = false;
                        if (betting)
                        {
                            betting = false;
                        }
                        else
                        {
                            move    += 5;
                            movingIN = true;
                        }
                    }
                }
                else
                {
                    if (trans0 > 0.00f)
                    {
                        trans0 = trans0 - 0.05f;
                        if (betting)
                        {
                            trans1 = trans1 - 0.05f;
                            trans2 = trans2 - 0.05f;
                            trans3 = trans3 - 0.05f;
                            trans4 = trans4 - 0.05f;
                            trans5 = trans5 - 0.05f;
                        }
                        else
                        {
                            if (!hold1)
                            {
                                trans1 = trans1 - 0.05f;
                            }
                            if (!hold2)
                            {
                                trans2 = trans2 - 0.05f;
                            }
                            if (!hold3)
                            {
                                trans3 = trans3 - 0.05f;
                            }
                            if (!hold4)
                            {
                                trans4 = trans4 - 0.05f;
                            }
                            if (!hold5)
                            {
                                trans5 = trans5 - 0.05f;
                            }
                        }
                    }
                    else
                    {
                        transition_up = true;
                        if (!hold1)
                        {
                            card1 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold2)
                        {
                            card2 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold3)
                        {
                            card3 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold4)
                        {
                            card4 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                        if (!hold5)
                        {
                            card5 = new Vector2(random.Next(13) + 1, random.Next(4));
                        }
                    }
                }
            }
            else
            {
                if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
                {
                    active_transition = true; pressed_response = true;
                }
                if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
                {
                    pressed_response = true;
                    if (betting && !end)
                    {
                        if (selector_bet == 0)
                        {
                            bet = bet - Get_Bet();
                            if (bet < 0)
                            {
                                bet = 0;
                            }
                        }
                        if (selector_bet == 1)
                        {
                            bet = bet + Get_Bet();
                            if (bet > coins_old)
                            {
                                bet = coins_old;
                            }
                        }
                    }
                    if (!betting && !end)
                    {
                        if (selector_hold == 1)
                        {
                            if (hold1)
                            {
                                hold1 = false;
                            }
                            else
                            {
                                hold1 = true;
                            }
                        }
                        if (selector_hold == 2)
                        {
                            if (hold2)
                            {
                                hold2 = false;
                            }
                            else
                            {
                                hold2 = true;
                            }
                        }
                        if (selector_hold == 3)
                        {
                            if (hold3)
                            {
                                hold3 = false;
                            }
                            else
                            {
                                hold3 = true;
                            }
                        }
                        if (selector_hold == 4)
                        {
                            if (hold4)
                            {
                                hold4 = false;
                            }
                            else
                            {
                                hold4 = true;
                            }
                        }
                        if (selector_hold == 5)
                        {
                            if (hold5)
                            {
                                hold5 = false;
                            }
                            else
                            {
                                hold5 = true;
                            }
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (selector_bet > 0)
                        {
                            selector_bet--;
                        }
                    }
                    else
                    {
                        if (selector_hold > 1)
                        {
                            selector_hold--;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
                {
                    pressed_response = true; if (betting)
                    {
                        if (selector_bet < 1)
                        {
                            selector_bet++;
                        }
                    }
                    else
                    {
                        if (selector_hold < 5)
                        {
                            selector_hold++;
                        }
                    }
                }
                if (ButtonPressed(GhostKey.button_ok_P1) != GhostState.released)
                {
                    pressed_response = true;
                    if (!betting)
                    {
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold1().Y, 150, 500)))
                        {
                            selector_hold = 1; if (hold1)
                            {
                                hold1 = false;
                            }
                            else
                            {
                                hold1 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold2().Y, 150, 500)))
                        {
                            selector_hold = 2; if (hold2)
                            {
                                hold2 = false;
                            }
                            else
                            {
                                hold2 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold3().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold3().Y, 150, 500)))
                        {
                            selector_hold = 3; if (hold3)
                            {
                                hold3 = false;
                            }
                            else
                            {
                                hold3 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold4().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold4().Y, 150, 500)))
                        {
                            selector_hold = 4; if (hold4)
                            {
                                hold4 = false;
                            }
                            else
                            {
                                hold4 = true;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold5().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold5().Y, 150, 500)))
                        {
                            selector_hold = 5; if (hold5)
                            {
                                hold5 = false;
                            }
                            else
                            {
                                hold5 = true;
                            }
                        }
                    }
                    else
                    {
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                        {
                            bet = bet - Get_Bet(); if (bet < 0)
                            {
                                bet = 0;
                            }
                            selector_bet = 0;
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                        {
                            bet = bet + Get_Bet(); if (bet > coins_old)
                            {
                                bet = coins_old;
                            }
                            selector_bet = 1;
                        }

                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up1().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                        {
                            if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                            {
                                betmulti++;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up2().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                        {
                            if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                            {
                                betmulti++;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down1().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                        {
                            if (betmulti > 0)
                            {
                                betmulti--;
                            }
                        }
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down2().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                        {
                            if (betmulti > 0)
                            {
                                betmulti--;
                            }
                        }
                    }
                }
                if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
                {
                    if (!betting)
                    {
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold1().Y, 150, 500)))
                        {
                            selector_hold = 1;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold2().Y, 150, 500)))
                        {
                            selector_hold = 2;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold3().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold3().Y, 150, 500)))
                        {
                            selector_hold = 3;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold4().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold4().Y, 150, 500)))
                        {
                            selector_hold = 4;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_VideoPoker_Hold5().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_VideoPoker_Hold5().Y, 150, 500)))
                        {
                            selector_hold = 5;
                        }
                    }
                    else
                    {
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                        {
                            selector_bet = 0;
                        }
                        if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                        {
                            selector_bet = 1;
                        }
                    }
                }
            }
            return("void");
        }
Exemplo n.º 19
0
 public override string Update2()
 {
     if (active_timer)
     {
         timer = timer + 16;
         if (timer == 128)
         {
             active_timer = false;
             timer        = 0;
             Change();
             Check();
         }
     }
     else
     {
         direction = "null";
         if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
         {
             pressed_response = true;
         }
         if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed)
         {
             pressed_response = true;
         }
         if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
         {
             Move("up"); pressed_response = true;
         }
         if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
         {
             Move("down"); pressed_response = true;
         }
         if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
         {
             Move("left"); pressed_response = true;
         }
         if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
         {
             Move("right"); pressed_response = true;
         }
     }
     if (pressed_event_touch)
     {
         for (int y = 0; y < 4; y++)
         {
             for (int x = 0; x < 4; x++)
             {
                 if (Collision_Button(false, new Rectangle((int)(SK.Position_DisplayEdge().X + 8 + SK.Position_2048().X + 128 * x), (int)(SK.Position_DisplayEdge().Y + 8 + SK.Position_2048().Y + 128 * y), 128, 128)))
                 {
                     if (y > 0)
                     {
                         if (grid[x, y - 1] == -1)
                         {
                             Move("up");
                         }
                     }
                     if (y < 3)
                     {
                         if (grid[x, y + 1] == -1)
                         {
                             Move("down");
                         }
                     }
                     if (x > 0)
                     {
                         if (grid[x - 1, y] == -1)
                         {
                             Move("left");
                         }
                     }
                     if (x < 3)
                     {
                         if (grid[x + 1, y] == -1)
                         {
                             Move("right");
                         }
                     }
                 }
             }
         }
     }
     return("void");
 }
Exemplo n.º 20
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                if (!active_gameover)
                {
                    Command_Unlock();
                }
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
            {
                if (!active_gameover)
                {
                    Command_Click();
                }
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                if (selector.Y == 1)
                {
                    selector.Y--;
                }
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                if (selector.Y == 0)
                {
                    selector.Y++;
                }
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                if (selector.X > 0)
                {
                    selector.X--;
                }
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                if (selector.X < 5)
                {
                    selector.X++;
                }
                pressed_response = true;
            }

            if (pressed_event_touch)
            {
                for (int i = 0; i < 6; i++)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Mastermind_Lamps().X + 71 * i, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Mastermind_Lamps().Y + 350, 71, 71)))
                    {
                        selector = new Vector2(i, 0); Command_Click();
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Mastermind_Lamps().X + 71 * i, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Mastermind_Lamps().Y + 470, 71, 71)))
                    {
                        selector = new Vector2(i, 1); Command_Click();
                    }
                }
            }

            return("null");
        }
Exemplo n.º 21
0
        public override void Draw2()
        {
            if (SK.orientation <= 2)
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 80), Color.PaleTurquoise);
            }
            else
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y), Color.PaleTurquoise);
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1() + new Vector2(70 + move * 2, 150), new Rectangle(1 + (int)(71 * card1.X), 1 + (int)(96 * card1.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans1, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2() + new Vector2(70 + move, 150), new Rectangle(1 + (int)(71 * card2.X), 1 + (int)(96 * card2.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans2, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3() + new Vector2(70, 150), new Rectangle(1 + (int)(71 * card3.X), 1 + (int)(96 * card3.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans3, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4() + new Vector2(70 - move, 150), new Rectangle(1 + (int)(71 * card4.X), 1 + (int)(96 * card4.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans4, SpriteEffects.None, 0.0f);
            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5() + new Vector2(70 - move * 2, 150), new Rectangle(1 + (int)(71 * card5.X), 1 + (int)(96 * card5.Y), 70, 95), Color.White, 0.0f, new Vector2(35, 47), trans5, SpriteEffects.None, 0.0f);

            if (hold1)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.Gray * 0.25f);
            }
            if (hold2)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.Gray * 0.25f);
            }
            if (hold3)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.Gray * 0.25f);
            }
            if (hold4)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.Gray * 0.25f);
            }
            if (hold5)
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.Gray * 0.25f);
            }

            if (!betting && !end)
            {
                if (selector_hold == 1)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold1(), Color.Pink * 0.50f);
                }
                if (selector_hold == 2)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold2(), Color.Pink * 0.50f);
                }
                if (selector_hold == 3)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold3(), Color.Pink * 0.50f);
                }
                if (selector_hold == 4)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold4(), Color.Pink * 0.50f);
                }
                if (selector_hold == 5)
                {
                    spriteBatch.Draw(SK.texture_static_videopoker_hold, SK.Position_DisplayEdge() + SK.Position_VideoPoker_Hold5(), Color.Pink * 0.50f);
                }
            }

            if (betting && !end)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White);

                spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White);

                if (selector_bet == 0)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f);
                }
                if (selector_bet == 1)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f);
                }

                spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod);
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (!betting)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3(), Color.White);
            }

            if (!betting && !end)
            {
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (!betting && end)
            {
                spriteBatch.DrawString(SK.font_score, hand, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.font_score.MeasureString(hand).X / 2, SK.Position_Bet_Grid3().Y - 25), Color.Black);
                if (coins_plus > 0)
                {
                    spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen);
                }
                if (coins_plus < 0)
                {
                    spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed);
                }
                spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod);
            }
        }
Exemplo n.º 22
0
        public override void Draw2()
        {
            if (SK.orientation <= 2)
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 80), Color.LightBlue);
            }
            else
            {
                spriteBatch.Draw(SK.texture_background_canvas, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y), Color.LightBlue);
            }
            int i = 0;

            foreach (Vector3 v in cards_player)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 + 50 * i, SK.Get_GridSize().Y / 9 * 4 + 20 * i + v.Z), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
                i++;
            }
            i = 0;
            foreach (Vector3 v in cards_dealer)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 * 5 + 50 * i + v.Z, SK.Get_GridSize().Y / 9 + 15 * i), new Rectangle(1 + (int)(71 * v.X), 1 + (int)(96 * v.Y), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
                i++;
            }
            if (active_player && !betting)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 9 * 5 + 50 + hiddencard, SK.Get_GridSize().Y / 9 + 15), new Rectangle(1, 1, 70, 95), Color.White, 0.0f, new Vector2(0, 0), 2, SpriteEffects.None, 0.0f);
            }
            if (betting)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White);

                spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White);

                if (selector_bet == 0)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f);
                }
                if (selector_bet == 1)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f);
                }

                spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod);
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }
            else
            {
                if (!end)
                {
                    if (selector_card == 0)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White);
                    }
                    if (selector_card == 1)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White * 0.20f);
                    }
                    if (selector_card == 0)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White * 0.20f);
                    }
                    if (selector_card == 1)
                    {
                        spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White);
                    }
                }
                else
                {
                    spriteBatch.Draw(SK.texture_static_blackjack_hit, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Hit().X, SK.Collision_BlackJack_Hit().Y), Color.White * 0.20f);
                    spriteBatch.Draw(SK.texture_static_blackjack_stand, SK.Position_DisplayEdge() + new Vector2(SK.Collision_BlackJack_Stand().X, SK.Collision_BlackJack_Stand().Y), Color.White * 0.20f);
                }
            }

            if (!betting && end)
            {
                if (value_dealer > 21)
                {
                    spriteBatch.DrawString(SK.font_score, "The House gone bust!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House gone bust!") / 2, Color.Black);
                }
                else if (value_player > 21)
                {
                    spriteBatch.DrawString(SK.font_score, "The Player gone bust!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player gone bust!") / 2, Color.Black);
                }
                else if (value_player == value_dealer && cards_player.Count > cards_dealer.Count)
                {
                    spriteBatch.DrawString(SK.font_score, "The Player wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player wins!") / 2, Color.Black);
                }
                else if (value_player == value_dealer && cards_player.Count == cards_dealer.Count)
                {
                    spriteBatch.DrawString(SK.font_score, "DRAW", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("DRAW") / 2, Color.Black);
                }
                else if (value_player == 21 && cards_player.Count == 2)
                {
                    spriteBatch.DrawString(SK.font_score, "BLACK JACK", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("BLACK JACK") / 2, Color.Black);
                }
                else if (value_player == value_dealer && cards_player.Count < cards_dealer.Count)
                {
                    spriteBatch.DrawString(SK.font_score, "The House wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House wins!") / 2, Color.Black);
                }
                else if (value_player > value_dealer)
                {
                    spriteBatch.DrawString(SK.font_score, "The Player wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The Player wins!") / 2, Color.Black);
                }
                else
                {
                    spriteBatch.DrawString(SK.font_score, "The House wins!", SK.Position_DisplayEdge() + SK.Get_GridSize() / 2 - SK.font_score.MeasureString("The House wins!") / 2, Color.Black);
                }
            }

            if (!betting)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2(), Color.White);
            }

            if (!betting && !end)
            {
                spriteBatch.DrawString(SK.font_score, "" + value_player, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(50, 45), Color.LightGray);
                spriteBatch.DrawString(SK.font_score, "" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (!betting && end)
            {
                if (coins_plus > 0)
                {
                    spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen);
                }
                if (coins_plus < 0)
                {
                    spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed);
                }
                spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid2() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod);
            }
        }
Exemplo n.º 23
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                pressed_response = true;
                if (betting)
                {
                    betting = false;
                    cards_player.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    cards_player.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    cards_dealer.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    cards_dealer.Add(new Vector3(random.Next(13) + 1, random.Next(4), 400));
                    JK.Noise("CardStart");
                    hiddencard   = 400;
                    value_player = 0;
                    int ace = 0;
                    foreach (Vector3 v in cards_player)
                    {
                        if (v.X == 13)
                        {
                            ace++;
                        }
                        else if (v.X <= 9)
                        {
                            value_player = value_player + (int)v.X + 1;
                        }
                        else
                        {
                            value_player = value_player + 10;
                        }
                    }
                    if (ace > 0)
                    {
                        while (ace > 0)
                        {
                            if (value_player <= 10)
                            {
                                value_player = value_player + 11;
                            }
                            else
                            {
                                value_player = value_player + 1;
                            }
                            ace--;
                        }
                    }
                    if (value_player == 21)
                    {
                        end           = true;
                        active_player = false;
                        coins_plus    = bet * 2;
                    }
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
            {
                pressed_response = true;
                if (betting && !end)
                {
                    if (selector_bet == 0)
                    {
                        bet = bet - Get_Bet();
                        if (bet < 0)
                        {
                            bet = 0;
                        }
                    }
                    if (selector_bet == 1)
                    {
                        bet = bet + Get_Bet();
                        if (bet > coins_old)
                        {
                            bet = coins_old;
                        }
                    }
                }
                if (!betting && active_player)
                {
                    if (selector_card == 0)
                    {
                        Add_Card();
                    }
                    if (selector_card == 1)
                    {
                        active_player = false;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                    {
                        betmulti++;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (betmulti > 0)
                    {
                        betmulti--;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (selector_bet > 0)
                    {
                        selector_bet--;
                    }
                }
                else
                {
                    if (selector_card > 0)
                    {
                        selector_card--;
                    }
                }
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                pressed_response = true; if (betting)
                {
                    if (selector_bet < 1)
                    {
                        selector_bet++;
                    }
                }
                else
                {
                    if (selector_card < 1)
                    {
                        selector_card++;
                    }
                }
            }
            if (ButtonPressed(GhostKey.button_ok_P1) != GhostState.released)
            {
                pressed_response = true;
                if (!betting && active_player)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Hit().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Hit().Y, SK.Collision_BlackJack_Hit().Width, SK.Collision_BlackJack_Hit().Height)))
                    {
                        if (selector_card == 0)
                        {
                            Add_Card();
                        }
                        else
                        {
                            selector_card = 0;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Stand().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Stand().Y, SK.Collision_BlackJack_Stand().Width, SK.Collision_BlackJack_Stand().Height)))
                    {
                        if (selector_card == 1)
                        {
                            active_player = false;
                        }
                        else
                        {
                            selector_card = 1;
                        }
                    }
                }
                if (betting && !end)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        bet = bet - Get_Bet(); if (bet < 0)
                        {
                            bet = 0;
                        }
                        selector_bet = 0;
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        bet = bet + Get_Bet(); if (bet > coins_old)
                        {
                            bet = coins_old;
                        }
                        selector_bet = 1;
                    }

                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up1().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Up2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Up2().Y, SK.texture_casino_bet_up.Width, SK.texture_casino_bet_up.Height)))
                    {
                        if (FM.purchased[FM.Convert("highroller")] == 1 ? betmulti < 4 : betmulti < 2)
                        {
                            betmulti++;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down1().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down1().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Down2().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Down2().Y, SK.texture_casino_bet_down.Width, SK.texture_casino_bet_down.Height)))
                    {
                        if (betmulti > 0)
                        {
                            betmulti--;
                        }
                    }
                }
            }
            if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
            {
                if (!betting && active_player)
                {
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Hit().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Hit().Y, SK.Collision_BlackJack_Hit().Width, SK.Collision_BlackJack_Hit().Height)))
                    {
                        selector_card = 0;
                    }
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + SK.Collision_BlackJack_Stand().X, (int)SK.Position_DisplayEdge().Y + SK.Collision_BlackJack_Stand().Y, SK.Collision_BlackJack_Hit().Width, SK.Collision_BlackJack_Hit().Height)))
                    {
                        selector_card = 1;
                    }
                }
                if (betting && !end)
                {
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Minus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Minus().Y, SK.texture_casino_bet_minus.Width, SK.texture_casino_bet_minus.Height)))
                    {
                        selector_bet = 0;
                    }
                    if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Bet_Plus().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Bet_Plus().Y, SK.texture_casino_bet_plus.Width, SK.texture_casino_bet_plus.Height)))
                    {
                        selector_bet = 1;
                    }
                }
            }
            return("void");
        }
Exemplo n.º 24
0
        public override void Draw2()
        {
            spriteBatch.Draw(SK.texture_background_slotmachine1, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.texture_background_slotmachine1.Width / 2, 0), Color.White);
            if (active_spin)
            {
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 4 - pos_wheel1), new Rectangle(1 + (116 * grid[0, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 3 - pos_wheel1), new Rectangle(1 + (116 * grid[1, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 2 - pos_wheel1), new Rectangle(1 + (116 * grid[2, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - 120 * 1 - pos_wheel1), new Rectangle(1 + (116 * grid[3, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 - pos_wheel1), new Rectangle(1 + (116 * grid[4, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 1 - pos_wheel1), new Rectangle(1 + (116 * grid[5, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 2 - pos_wheel1), new Rectangle(1 + (116 * grid[6, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 3 - pos_wheel1), new Rectangle(1 + (116 * grid[7, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(8, 0 + 120 * 4 - pos_wheel1), new Rectangle(1 + (116 * grid[8, 0]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 4 - pos_wheel2), new Rectangle(1 + (116 * grid[0, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 3 - pos_wheel2), new Rectangle(1 + (116 * grid[1, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 2 - pos_wheel2), new Rectangle(1 + (116 * grid[2, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - 120 * 1 - pos_wheel2), new Rectangle(1 + (116 * grid[3, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 - pos_wheel2), new Rectangle(1 + (116 * grid[4, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 1 - pos_wheel2), new Rectangle(1 + (116 * grid[5, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 2 - pos_wheel2), new Rectangle(1 + (116 * grid[6, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 3 - pos_wheel2), new Rectangle(1 + (116 * grid[7, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row2() + new Vector2(8, 0 + 120 * 4 - pos_wheel2), new Rectangle(1 + (116 * grid[8, 1]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);

                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 4 - pos_wheel3), new Rectangle(1 + (116 * grid[0, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 3 - pos_wheel3), new Rectangle(1 + (116 * grid[1, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 2 - pos_wheel3), new Rectangle(1 + (116 * grid[2, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - 120 * 1 - pos_wheel3), new Rectangle(1 + (116 * grid[3, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 - pos_wheel3), new Rectangle(1 + (116 * grid[4, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 1 - pos_wheel3), new Rectangle(1 + (116 * grid[5, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 2 - pos_wheel3), new Rectangle(1 + (116 * grid[6, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 3 - pos_wheel3), new Rectangle(1 + (116 * grid[7, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
                spriteBatch.Draw(SK.texture_spritesheet_slotmachine, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row3() + new Vector2(8, 0 + 120 * 4 - pos_wheel3), new Rectangle(1 + (116 * grid[8, 2]), 1, 115, 115), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (end)
            {
                if (active_line1)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line1, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line2)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line2, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line3)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line3, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line4)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line4, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
                if (active_line5)
                {
                    spriteBatch.Draw(SK.texture_static_slotmachine_line5, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 40 - SK.Position_SlotMachine_Row1().Y), Color.White);
                }
            }

            if (SK.orientation <= 2)
            {
                spriteBatch.Draw(SK.texture_background_slotmachine2, new Vector2(SK.Position_DisplayEdge().X, SK.Position_DisplayEdge().Y - 5), Color.White);
            }
            else
            {
                spriteBatch.Draw(SK.texture_background_slotmachine2, new Vector2(SK.Position_DisplayEdge().X - 80, SK.Position_DisplayEdge().Y - 5), Color.White);
            }

            if (multi >= 1)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point1, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 243 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 2)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point2, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 142 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 3)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point3, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 346 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 4)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point4, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 35 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (multi >= 5)
            {
                spriteBatch.Draw(SK.texture_static_slotmachine_point5, SK.Position_DisplayEdge() + SK.Position_SlotMachine_Row1() + new Vector2(0, 455 - SK.Position_SlotMachine_Row1().Y), Color.White);
            }
            if (!active_spin && !end)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.White);
                spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.White);

                spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_minus, SK.Position_DisplayEdge() + SK.Position_Bet_Minus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(0), Color.White);
                if (betmulti >= 1)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(1), Color.White);
                }
                if (betmulti >= 2)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(2), Color.White);
                }
                if (betmulti >= 3)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(3), Color.White);
                }
                if (betmulti >= 4)
                {
                    spriteBatch.Draw(SK.texture_casino_bet_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Plus() + Get_PMVario(4), Color.White);
                }

                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_up, SK.Position_DisplayEdge() + SK.Position_Bet_Up2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down1(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_down, SK.Position_DisplayEdge() + SK.Position_Bet_Down2(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_left, SK.Position_DisplayEdge() + SK.Position_Bet_Left(), Color.White);
                spriteBatch.Draw(SK.texture_casino_bet_right, SK.Position_DisplayEdge() + SK.Position_Bet_Right(), Color.White);

                if (selector_bet == 0)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Minus(), Color.Red * 0.50f);
                }
                if (selector_bet == 1)
                {
                    spriteBatch.Draw(SK.texture_menu_grid_full, SK.Position_DisplayEdge() + SK.Position_Bet_Plus(), Color.Red * 0.50f);
                }

                spriteBatch.DrawString(SK.font_score, "BET:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "COIN:", SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(50, 120 - SK.font_score.MeasureString("COIN:").Y), Color.DarkGoldenrod);
                spriteBatch.DrawString(SK.font_score, multi + "x" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235 - SK.font_score.MeasureString(multi + "x" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (active_spin || end)
            {
                spriteBatch.Draw(SK.texture_casino_bet_grid, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3(), Color.White);
            }

            if (active_spin && !end)
            {
                spriteBatch.DrawString(SK.font_score, multi + "x" + bet, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString(multi + "x" + bet).X, 45), Color.Black);
                spriteBatch.DrawString(SK.font_score, "" + coins_old, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + coins_old), Color.DarkGoldenrod);
            }

            if (end)
            {
                if (coins_plus > 0)
                {
                    spriteBatch.DrawString(SK.font_score, "+" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("+" + coins_plus).X, 45), Color.LimeGreen);
                }
                if (coins_plus < 0)
                {
                    spriteBatch.DrawString(SK.font_score, "" + coins_plus, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235 - SK.font_score.MeasureString("" + coins_plus).X, 45), Color.IndianRed);
                }
                spriteBatch.DrawString(SK.font_score, "" + FM.coins, SK.Position_DisplayEdge() + SK.Position_Bet_Grid3() + new Vector2(235, 120) - SK.font_score.MeasureString("" + FM.coins), Color.DarkGoldenrod);
            }
        }
Exemplo n.º 25
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                if (selector_pos.Y > 0)
                {
                    selector_pos.Y--;
                }
            }
            if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
            {
                if (selector_pos.Y < 15)
                {
                    selector_pos.Y++;
                }
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                if (selector_pos.X > 0)
                {
                    selector_pos.X--;
                }
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                if (selector_pos.X < 20)
                {
                    selector_pos.X++;
                }
            }

            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && pressed_event_touch)
            {
                for (int y = 4; y < 14; y++)
                {
                    for (int x = 0; x < 20; x++)
                    {
                        if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * x, (int)SK.Position_DisplayEdge().Y + 48 * y, 35, 48)))
                        {
                            TouchField(x, y);
                        }
                    }
                }

                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 1, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    Free_Cell(0);
                }
                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 3, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    Free_Cell(1);
                }
                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 5, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    Free_Cell(2);
                }
                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 7, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    Free_Cell(3);
                }

                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 11, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    TouchFinish(0);
                }
                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 13, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    TouchFinish(1);
                }
                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 15, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    TouchFinish(2);
                }
                if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + 35 * 17, (int)SK.Position_DisplayEdge().Y + 48 * 1, 35 * 2, 48 * 2)))
                {
                    TouchFinish(3);
                }
            }

            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
            {
                if (selector_pos.Y < 14)
                {
                    TouchField((int)selector_pos.X, (int)selector_pos.Y);
                }
                //if(selector_pos == new Vector2(7, 12)) if(cards_stack.Count > 0) CompareCards(28);
                if (selector_pos == new Vector2(1, 1))
                {
                    Free_Cell(0);
                }
                if (selector_pos == new Vector2(3, 1))
                {
                    Free_Cell(1);
                }
                if (selector_pos == new Vector2(5, 1))
                {
                    Free_Cell(2);
                }
                if (selector_pos == new Vector2(7, 1))
                {
                    Free_Cell(3);
                }

                if (selector_pos == new Vector2(11, 1))
                {
                    TouchFinish(0);
                }
                if (selector_pos == new Vector2(13, 1))
                {
                    TouchFinish(1);
                }
                if (selector_pos == new Vector2(15, 1))
                {
                    TouchFinish(2);
                }
                if (selector_pos == new Vector2(17, 1))
                {
                    TouchFinish(3);
                }
            }
            return("void");
        }
Exemplo n.º 26
0
 public override string Update2()
 {
     if (beta == 1.00f)
     {
         if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
         {
             pressed_response = true;
         }
         if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed)
         {
             Command_Enter(); pressed_response = true;
         }
         if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
         {
             if (SK.orientation <= 2)
             {
                 if (selector.Y > 0)
                 {
                     selector.Y--;
                 }
                 pressed_response = true;
             }
             else
             {
                 if (selector.X < 12)
                 {
                     selector.X++;
                 }
                 pressed_response = true;
             }
         }
         if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.pressed)
         {
             if (SK.orientation <= 2)
             {
                 if (selector.Y < 9)
                 {
                     selector.Y++;
                 }
                 pressed_response = true;
             }
             else
             {
                 if (selector.X > 0)
                 {
                     selector.X--;
                 }
                 pressed_response = true;
             }
         }
         if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
         {
             if (SK.orientation <= 2)
             {
                 if (selector.X > 0)
                 {
                     selector.X--;
                 }
                 pressed_response = true;
             }
             else
             {
                 if (selector.Y > 0)
                 {
                     selector.Y--;
                 }
                 pressed_response = true;
             }
         }
         if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
         {
             if (SK.orientation <= 2)
             {
                 if (selector.X < 12)
                 {
                     selector.X++;
                 }
                 pressed_response = true;
             }
             else
             {
                 if (selector.Y < 9)
                 {
                     selector.Y++;
                 }
                 pressed_response = true;
             }
         }
         if (selected_A && selected_B && !timer)
         {
             timer = true;
         }
         if (SK.orientation <= 2)
         {
             for (int x = 0; x < 13; x++)
             {
                 for (int y = 0; y < 10; y++)
                 {
                     if (pressed_event_touch)
                     {
                         if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                         {
                             if (selector == new Vector2(x, y))
                             {
                                 JK.Noise("Place");
                                 if (!selected_A)
                                 {
                                     if (grid_main[x, y] != "empty")
                                     {
                                         selected_A     = true;
                                         selected_A_pos = new Vector2(x, y);
                                     }
                                 }
                                 else if (!selected_B)
                                 {
                                     if (grid_main[x, y] != "empty" && selected_A_pos != new Vector2(x, y))
                                     {
                                         selected_B     = true;
                                         selected_B_pos = new Vector2(x, y);
                                     }
                                 }
                             }
                             else
                             {
                                 selector = new Vector2(x, y);
                             }
                         }
                     }
                     else
                     {
                         if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                         {
                             selector = new Vector2(x, y);
                         }
                     }
                 }
             }
         }
         else
         {
             for (int x = 0; x < 10; x++)
             {
                 for (int y = 0; y < 13; y++)
                 {
                     if (pressed_event_touch)
                     {
                         if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                         {
                             if (selector == new Vector2(12 - y, x))
                             {
                                 JK.Noise("Place");
                                 if (!selected_A)
                                 {
                                     if (grid_main[12 - y, x] != "empty")
                                     {
                                         selected_A     = true;
                                         selected_A_pos = new Vector2(12 - y, x);
                                     }
                                 }
                                 else if (!selected_B)
                                 {
                                     if (grid_main[12 - y, x] != "empty" && selected_A_pos != new Vector2(12 - y, x))
                                     {
                                         selected_B     = true;
                                         selected_B_pos = new Vector2(12 - y, x);
                                     }
                                 }
                             }
                             else
                             {
                                 selector = new Vector2(12 - y, x);
                             }
                         }
                     }
                     else
                     {
                         if (Collision_Button(true, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Grid64().X + 64 * x, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Grid64().Y + 64 * y, 64, 64)))
                         {
                             selector = new Vector2(12 - y, x);
                         }
                     }
                 }
             }
         }
     }
     else
     {
         beta += 0.05f;
         if (beta >= 1)
         {
             beta = 1.00f;
         }
     }
     return("null");
 }
Exemplo n.º 27
0
        public override string Update2()
        {
            if (alpha == 255)
            {
                if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
                {
                    Command_Hold(); pressed_response = true;
                }
                if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed && !pressed_event_touch)
                {
                    Command_Hold(); pressed_response = true;
                }
                if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
                {
                    Tetromino_Drop();
                }
                if (ButtonPressed(GhostKey.arrow_down_P1) == GhostState.hold)
                {
                    Tetromino_Fall();
                }
                if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
                {
                    Command_Strafe("left"); pressed_response = true;
                }
                if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
                {
                    Command_Strafe("right"); pressed_response = true;
                }
                if (ButtonPressed(GhostKey.button_left_P1) == GhostState.pressed)
                {
                    Command_Turn("right"); pressed_response = true;
                }
                if (ButtonPressed(GhostKey.button_right_P1) == GhostState.pressed)
                {
                    Command_Turn("left"); pressed_response = true;
                }
                //if(control_keyboard_new.IsKeyDown(Keys.Down)) { Tetromino_Fall(); };
                //if(control_gamepad_new.IsConnected) {
                //    if(control_gamepad_new.DPad.Down == ButtonState.Pressed) { Tetromino_Fall(); }
                //    if(control_gamepad_new.Buttons.LeftShoulder == ButtonState.Pressed && control_gamepad_old.Buttons.LeftShoulder == ButtonState.Released) { Command_Turn("right"); }
                //    if(control_gamepad_new.Buttons.RightShoulder == ButtonState.Pressed && control_gamepad_old.Buttons.RightShoulder == ButtonState.Released) { Command_Turn("left"); }
                //}
                //if(control_keyboard_new.IsKeyDown(Keys.N) && control_keyboard_old.IsKeyUp(Keys.N)) { Command_Turn("right"); };
                //if(control_keyboard_new.IsKeyDown(Keys.M) && control_keyboard_old.IsKeyUp(Keys.M)) { Command_Turn("left"); };

                if (pressed_event_touch)
                {
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Tetris_Hold().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Tetris_Hold().Y, 160, 160)))
                    {
                        pressed_response = true; Command_Hold();
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Tetris_Left().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Tetris_Left().Y, 160, 160)))
                    {
                        pressed_response = true; Command_Turn("left");
                    }
                    if (Collision_Button(false, new Rectangle((int)SK.Position_DisplayEdge().X + (int)SK.Position_Tetris_Right().X, (int)SK.Position_DisplayEdge().Y + (int)SK.Position_Tetris_Right().Y, 160, 160)))
                    {
                        pressed_response = true; Command_Turn("right");
                    }
                }
            }
            return("null");
        }
Exemplo n.º 28
0
        public override void Draw2()
        {
            if (result == 0)
            {
                spriteBatch.Draw(SK.texture_static_rpsls_rock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 0, SK.Get_GridSize().Y - 150 + position_grid.Y - transition_player1), Color.White);
                spriteBatch.Draw(SK.texture_static_rpsls_paper, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 1, SK.Get_GridSize().Y - 150 + position_grid.Y - transition_player2), Color.White);
                spriteBatch.Draw(SK.texture_static_rpsls_scissor, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 2, SK.Get_GridSize().Y - 150 + position_grid.Y - transition_player3), Color.White);
                spriteBatch.Draw(SK.texture_static_rpsls_lizard, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 3, SK.Get_GridSize().Y - 150 + position_grid.Y - transition_player4), Color.White);
                spriteBatch.Draw(SK.texture_static_rpsls_spock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 4, SK.Get_GridSize().Y - 150 + position_grid.Y - transition_player5), Color.White);

                int temp = 0;
                if (selector_anim == 1)
                {
                    temp = transition_comp;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_rock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 0, 0 + temp), Color.White);
                if (selector_anim == 2)
                {
                    temp = transition_comp;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_paper, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 1, 0 + temp), Color.White);
                if (selector_anim == 3)
                {
                    temp = transition_comp;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_scissor, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 2, 0 + temp), Color.White);
                if (selector_anim == 4)
                {
                    temp = transition_comp;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_lizard, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 3, 0 + temp), Color.White);
                if (selector_anim == 5)
                {
                    temp = transition_comp;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_spock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 4, 0 + temp), Color.White);
            }
            else
            {
                int temp = 0;
                if (selector_player == 1)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_rock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 0, SK.Get_GridSize().Y - 150 + position_grid.Y - temp), Color.White);
                if (selector_player == 2)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_paper, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 1, SK.Get_GridSize().Y - 150 + position_grid.Y - temp), Color.White);
                if (selector_player == 3)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_scissor, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 2, SK.Get_GridSize().Y - 150 + position_grid.Y - temp), Color.White);
                if (selector_player == 4)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_lizard, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 3, SK.Get_GridSize().Y - 150 + position_grid.Y - temp), Color.White);
                if (selector_player == 5)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_spock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 4, SK.Get_GridSize().Y - 150 + position_grid.Y - temp), Color.White);

                if (selector_comp == 1)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_rock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 0, 0 + temp), Color.White);
                if (selector_comp == 2)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_paper, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 1, 0 + temp), Color.White);
                if (selector_comp == 3)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_scissor, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 2, 0 + temp), Color.White);
                if (selector_comp == 4)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_lizard, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 3, 0 + temp), Color.White);
                if (selector_comp == 5)
                {
                    temp = 60;
                }
                else
                {
                    temp = 0;
                }
                spriteBatch.Draw(SK.texture_static_rpsls_spock, SK.Position_DisplayEdge() + new Vector2(position_grid.X + 172 * 4, 0 + temp), Color.White);
            }

            if (alpha > 0)
            {
                if (lastPlayer == 1)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_rock, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 - 150), Color.White * alpha);
                }
                if (lastPlayer == 2)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_paper, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 - 150), Color.White * alpha);
                }
                if (lastPlayer == 3)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_scissor, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 - 150), Color.White * alpha);
                }
                if (lastPlayer == 4)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_lizard, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 - 150), Color.White * alpha);
                }
                if (lastPlayer == 5)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_spock, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 - 150), Color.White * alpha);
                }
                if (lastComp == 1)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_rock, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 + 50), Color.White * alpha);
                }
                if (lastComp == 2)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_paper, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 + 50), Color.White * alpha);
                }
                if (lastComp == 3)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_scissor, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 + 50), Color.White * alpha);
                }
                if (lastComp == 4)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_lizard, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 + 50), Color.White * alpha);
                }
                if (lastComp == 5)
                {
                    spriteBatch.Draw(SK.texture_static_rpsls_spock, SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - 172 / 2, SK.Get_GridSize().Y / 2 + 50), Color.White * alpha);
                }
            }

            if (active_gameover)
            {
                if (result == 1)
                {
                    spriteBatch.DrawString(SK.font_score, "You Won!", SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.font_score.MeasureString("You Won!").X, 250), Color.Black);
                }
                else if (result == 2)
                {
                    spriteBatch.DrawString(SK.font_score, "You Lost!", SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.font_score.MeasureString("You Lost!").X, 250), Color.Black);
                }
                else
                {
                    spriteBatch.DrawString(SK.font_score, "Draw", SK.Position_DisplayEdge() + new Vector2(SK.Get_GridSize().X / 2 - SK.font_score.MeasureString("Draw").X, 250), Color.Black);
                }
            }
        }
Exemplo n.º 29
0
        public override string Update2()
        {
            if (ButtonPressed(GhostKey.button_function_P1) == GhostState.pressed)
            {
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.button_ok_P1) == GhostState.pressed)
            {
                Compare(); pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_up_P1) == GhostState.pressed)
            {
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_left_P1) == GhostState.pressed)
            {
                if (selector_player > 1)
                {
                    selector_player--;
                }
                pressed_response = true;
            }
            if (ButtonPressed(GhostKey.arrow_right_P1) == GhostState.pressed)
            {
                if (selector_player < 5)
                {
                    selector_player++;
                }
                pressed_response = true;
            }
            if (pressed_event_touch)
            {
                pressed_response = true;
                if (SK.Position_DisplayEdge().Y + SK.Get_GridSize().Y + position_grid.Y - 172 < control_cursor.Y && control_cursor.Y < SK.Position_DisplayEdge().Y + SK.Get_GridSize().Y + position_grid.Y)
                {
                    for (int i = 0; i < 5; i++)
                    {
                        if (SK.Position_DisplayEdge().X + position_grid.X + 172 * i < control_cursor.X && control_cursor.X < SK.Position_DisplayEdge().X + position_grid.X + 172 * i + 172)
                        {
                            if (i + 1 != selector_player)
                            {
                                selector_player = i + 1;
                            }
                            else
                            {
                                Compare();
                            }
                        }
                    }
                }
            }
            if (control_mouse_new.LeftButton == ButtonState.Released && control_mouse_old.LeftButton == ButtonState.Released)
            {
                if (SK.Position_DisplayEdge().Y + SK.Get_GridSize().Y + position_grid.Y - 172 < control_cursor.Y && control_cursor.Y < SK.Position_DisplayEdge().Y + SK.Get_GridSize().Y + position_grid.Y)
                {
                    for (int i = 0; i < 5; i++)
                    {
                        if (SK.Position_DisplayEdge().X + position_grid.X + 172 * i < control_cursor.X && control_cursor.X < SK.Position_DisplayEdge().X + position_grid.X + 172 * i + 172)
                        {
                            selector_player = i + 1;
                        }
                    }
                }
            }

            return("void");
        }
Exemplo n.º 30
0
        public override void Draw2()
        {
            //spriteBatch.Draw(SK.texture_background_2048, SK.Position_DisplayEdge() + SK.Position_2048(), Color.DarkGray);

            if (cards_field[0] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 10, 48 * 1), new Rectangle(1 + (int)(71 * cards_field[0].X), 1 + (int)(96 * cards_field[0].Y), 70, 95), selector_card == 0 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_field[1] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 9, 48 * 2), new Rectangle(1 + (int)(71 * cards_field[1].X), 1 + (int)(96 * cards_field[1].Y), 70, 95), selector_card == 1 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[2] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 2), new Rectangle(1 + (int)(71 * cards_field[2].X), 1 + (int)(96 * cards_field[2].Y), 70, 95), selector_card == 2 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_field[3] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 8, 48 * 3), new Rectangle(1 + (int)(71 * cards_field[3].X), 1 + (int)(96 * cards_field[3].Y), 70, 95), selector_card == 3 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[4] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 10, 48 * 3), new Rectangle(1 + (int)(71 * cards_field[4].X), 1 + (int)(96 * cards_field[4].Y), 70, 95), selector_card == 4 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[5] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 12, 48 * 3), new Rectangle(1 + (int)(71 * cards_field[5].X), 1 + (int)(96 * cards_field[5].Y), 70, 95), selector_card == 5 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_field[6] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 7, 48 * 4), new Rectangle(1 + (int)(71 * cards_field[6].X), 1 + (int)(96 * cards_field[6].Y), 70, 95), selector_card == 6 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[7] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 9, 48 * 4), new Rectangle(1 + (int)(71 * cards_field[7].X), 1 + (int)(96 * cards_field[7].Y), 70, 95), selector_card == 7 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[8] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 4), new Rectangle(1 + (int)(71 * cards_field[8].X), 1 + (int)(96 * cards_field[8].Y), 70, 95), selector_card == 8 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[9] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 13, 48 * 4), new Rectangle(1 + (int)(71 * cards_field[9].X), 1 + (int)(96 * cards_field[9].Y), 70, 95), selector_card == 9 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_field[10] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 6, 48 * 5), new Rectangle(1 + (int)(71 * cards_field[10].X), 1 + (int)(96 * cards_field[10].Y), 70, 95), selector_card == 10 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[11] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 8, 48 * 5), new Rectangle(1 + (int)(71 * cards_field[11].X), 1 + (int)(96 * cards_field[11].Y), 70, 95), selector_card == 11 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[12] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 10, 48 * 5), new Rectangle(1 + (int)(71 * cards_field[12].X), 1 + (int)(96 * cards_field[12].Y), 70, 95), selector_card == 12 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[13] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 12, 48 * 5), new Rectangle(1 + (int)(71 * cards_field[13].X), 1 + (int)(96 * cards_field[13].Y), 70, 95), selector_card == 13 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[14] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 14, 48 * 5), new Rectangle(1 + (int)(71 * cards_field[14].X), 1 + (int)(96 * cards_field[14].Y), 70, 95), selector_card == 14 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_field[15] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 5, 48 * 6), new Rectangle(1 + (int)(71 * cards_field[15].X), 1 + (int)(96 * cards_field[15].Y), 70, 95), selector_card == 15 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[16] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 7, 48 * 6), new Rectangle(1 + (int)(71 * cards_field[16].X), 1 + (int)(96 * cards_field[16].Y), 70, 95), selector_card == 16 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[17] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 9, 48 * 6), new Rectangle(1 + (int)(71 * cards_field[17].X), 1 + (int)(96 * cards_field[17].Y), 70, 95), selector_card == 17 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[18] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 11, 48 * 6), new Rectangle(1 + (int)(71 * cards_field[18].X), 1 + (int)(96 * cards_field[18].Y), 70, 95), selector_card == 18 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[19] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 13, 48 * 6), new Rectangle(1 + (int)(71 * cards_field[19].X), 1 + (int)(96 * cards_field[19].Y), 70, 95), selector_card == 19 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[20] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 15, 48 * 6), new Rectangle(1 + (int)(71 * cards_field[20].X), 1 + (int)(96 * cards_field[20].Y), 70, 95), selector_card == 20 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_field[21] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 4, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[21].X), 1 + (int)(96 * cards_field[21].Y), 70, 95), selector_card == 21 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[22] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 6, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[22].X), 1 + (int)(96 * cards_field[22].Y), 70, 95), selector_card == 22 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[23] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 8, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[23].X), 1 + (int)(96 * cards_field[23].Y), 70, 95), selector_card == 23 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[24] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 10, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[24].X), 1 + (int)(96 * cards_field[24].Y), 70, 95), selector_card == 24 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[25] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 12, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[25].X), 1 + (int)(96 * cards_field[25].Y), 70, 95), selector_card == 25 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[26] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 14, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[26].X), 1 + (int)(96 * cards_field[26].Y), 70, 95), selector_card == 26 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            if (cards_field[27] != new Vector2(-1, -1))
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 16, 48 * 7), new Rectangle(1 + (int)(71 * cards_field[27].X), 1 + (int)(96 * cards_field[27].Y), 70, 95), selector_card == 27 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }


            if (cards_stack.Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 7, 48 * 12), new Rectangle(1 + (int)(71 * cards_stack[cards_stack.Count - 1].X), 1 + (int)(96 * cards_stack[cards_stack.Count - 1].Y), 70, 95), selector_card == 28 ? Color.Gold : Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            else
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 7, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.25f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            if (cards_reserve.Count > 0)
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 13, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }
            else
            {
                spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * 13, 48 * 12), new Rectangle(1 + (int)(71 * 0), 1 + (int)(96 * 0), 70, 95), Color.White * 0.25f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
            }

            spriteBatch.Draw(SK.texture_spritesheet_cards, SK.Position_DisplayEdge() + new Vector2(35 * selector_pos.X, 48 * selector_pos.Y), new Rectangle(1, 1, 70, 95), Color.Blue * 0.25f, 0.0f, new Vector2(0, 0), 1, SpriteEffects.None, 0.0f);
        }