Пример #1
0
 public static void SelectedTextureStaticPanel(ObjectInMap kObjectInMap, float moveMap)
 {
     if (kObjectInMap != null)
     {
         if (kObjectInMap.Type == 0)
         {
             Texture.MapDraw.StaticPanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
         }
     }
 }
Пример #2
0
 public static void SelectedTextureBadPanel(ObjectInMap kObjectInMap, float moveMap)
 {
     //Bad Panel
     if (kObjectInMap.Type == 2)
     {
         Texture.MapDraw.BadPanel1(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
     }
     if (kObjectInMap.Type == 3)
     {
         kObjectInMap.CoordY -= 5;
         Texture.MapDraw.BadPanel2(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
     }
 }
Пример #3
0
        public static void SeceltedTextureMovePanel(ObjectInMap kObjectInMap, float moveMap)
        {
            if (kObjectInMap != null)
            {
                if (kObjectInMap.Type == 1)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += kObjectInMap.Type;

                        if ((kObjectInMap.CoordX + 64) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= kObjectInMap.Type;
                        if (kObjectInMap.CoordX == 10)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                    Texture.MapDraw.MovePanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
                }

                if (kObjectInMap.Type == 5)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += 2;

                        if ((kObjectInMap.CoordX + 64) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= 2;
                        if (kObjectInMap.CoordX == 10)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                    Texture.MapDraw.MovePanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
                }
            }
        }
Пример #4
0
 public static void SelectedTextureStaticPanel(ObjectInMap kObjectInMap, float moveMap)
 {
     if (kObjectInMap != null)
     {
         if (kObjectInMap.Type == 0)
         {
             Texture.MapDraw.StaticPanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
         }
     }
 }
Пример #5
0
        public static void SelectedTextureBadPanel(ObjectInMap kObjectInMap, float moveMap)
        {
            //Bad Panel
            if (kObjectInMap.Type == 2)
            {
                Texture.MapDraw.BadPanel1(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
            }
            if (kObjectInMap.Type == 3)
            {
                kObjectInMap.CoordY -= 5;
                Texture.MapDraw.BadPanel2(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);

            }
        }
Пример #6
0
        public static void SeceltedTextureMovePanel(ObjectInMap kObjectInMap, float moveMap)
        {
            if (kObjectInMap != null)
            {
                if (kObjectInMap.Type == 1)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += kObjectInMap.Type;

                        if ((kObjectInMap.CoordX + 64) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= kObjectInMap.Type;
                        if (kObjectInMap.CoordX == 10)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                    Texture.MapDraw.MovePanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
                }

                if (kObjectInMap.Type == 5)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += 2;

                        if ((kObjectInMap.CoordX + 64) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= 2;
                        if (kObjectInMap.CoordX == 10)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                    Texture.MapDraw.MovePanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
                }
            }
        }
Пример #7
0
        public static void SeceltedTextureBonusJump(ObjectInMap kObjectInMap)
        {
            if (kObjectInMap != null)
            {
                if (kObjectInMap.Type == 1)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += kObjectInMap.Type;
                        if ((kObjectInMap.CoordX + 31) == 512)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= kObjectInMap.Type;
                        if (kObjectInMap.CoordX == 24)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                    // Texture.MapDraw.MovePanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
                }

                if (kObjectInMap.Type == 3)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += 1;
                        if ((kObjectInMap.CoordX + 62) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= 1;
                        if (kObjectInMap.CoordX == 12)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                }
                if (kObjectInMap.Type == 4)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += 1;
                        if ((kObjectInMap.CoordX + 54) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= 1;
                        if (kObjectInMap.CoordX == 20)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                }
            }
        }
Пример #8
0
        public static void SeceltedTextureBonusJump(ObjectInMap kObjectInMap)
        {
            if (kObjectInMap != null)
            {
                if (kObjectInMap.Type == 1)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += kObjectInMap.Type;
                        if ((kObjectInMap.CoordX + 31) == 512)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= kObjectInMap.Type;
                        if (kObjectInMap.CoordX == 24)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                    // Texture.MapDraw.MovePanel(kObjectInMap.CoordX, kObjectInMap.CoordY, moveMap);
                }

                if (kObjectInMap.Type == 3)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += 1;
                        if ((kObjectInMap.CoordX + 62) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= 1;
                        if (kObjectInMap.CoordX == 12)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                }
                if (kObjectInMap.Type == 4)
                {
                    if (kObjectInMap.LeftFlag == false)
                    {
                        kObjectInMap.CoordX += 1;
                        if ((kObjectInMap.CoordX + 54) == 530)
                        {
                            kObjectInMap.LeftFlag = true;
                        }
                    }

                    if (kObjectInMap.LeftFlag == true)
                    {
                        kObjectInMap.CoordX -= 1;
                        if (kObjectInMap.CoordX == 20)
                        {
                            kObjectInMap.LeftFlag = false;
                        }
                    }
                }
            }
        }