0 Favourites

Endless flight game

  • I have seen many tutorials and threads on this site.But I don't understand anything.Some were talking about "Arrays" and others "plugins,timelines".

    So I want my own thread.

    2shared.com/video/AY62TOOk/20130124_143555_1.html

    Look at the video.Sorry for the glitchy movements.Actually I'm using a java emulator.That's a .jar file.

    So everytime I restart the level,the level is randomly generated(Not like scattered waste.It is obeying certain rules,the level is generated in a certain pattern.

    Someone said that arrays can be helpful here.But what is an array?Can you show an example .capx of THESE kind of games?

  • I could try and explain about arrays, but there is already a great tutorial explaining the basics:

    Arrays for beginners

  • Well, whilst it is still good to learn how to use Arrays, I have another idea for you.

    You can get a full working example of an "endless flight" game in the Construct 2 program.

    1. Open Construct 2

    2. Go to File->New (or use Ctrl+n)

    3. Search for "Template: Flying along" and open it

    And, there you go. An infinite flying game that is well-commented and easily expandable. Also, there are no arrays involved in the making of this endless flight example.

    I hope this helps.

  • danialgoodwin

    Thanks.I'll see to it.

  • danialgoodwin

    whilst it may seem easy,look at the video file I provided.See how its different from the Template in all ways.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Okay, I watched the video. Any difference in particular you specifically would like to mention? I might be missing something.

    Similarities:

    • Endless flyer
    • Randomly generated levels, with a certain pattern
    • Player moves up and down
    • Screen/background is moving left
    • There is a top and bottom boundary
    • There are objects appearing in the middle of the screen (and top/bottom)
    • There is a score that is kept that depends on the distance traveled

    But, just to make sure we are talking about the same template, here's a picture of "Flying along":

    <img src="http://simplyadvanced.net/dev/construct2/examples/c2-game-flying-along.png" border="0" />

    And, here is a picture of the example endless flight game:

    <img src="http://simplyadvanced.net/dev/construct2/examples/game-endless-flyer-harry-potter.png" border="0" />

  • Danialgoodwin

    2shared.com/file/amtuMbWy/Harry_Potter-3.html

    Ok.Here is the .jar file.You can extract it using winrar or something.

    Then go to images,background and open,ground unit board.

    Seeing this,the images has to be made to sprites and in certain patterns.That's what is causing trouble

  • Doc AI

    The example provided, doesn't seem different in all ways to me. It is just missing the generation part you want for the obstacles. The rest of the example is a very solid example of how to achieve the mechanics for a game like you want to make.

    So, how to generate the obstacles?

    You could create them at runtime based on predefined patterns. How you would like to create these patterns an randomize them a bit is up to you. You could indeed create these patterns in an array using numbers to define which animation frame to use at which spot or to set a tile in a tilemap.

    Randomly creating objects won't work, because there are rules and patterns to take into acount. It might not be easy to get the result you'd like and will almost certainly take a lot of trial and error.

  • LittleStain

    Tile?I prefer the tile map.

    How will I do it?Can you give me an example of that kind of tilemap thing.

  • Not a great example, but it shows the possibilities of using an array to manipulate tilemaps.

    also added a choose() in the predefined, to show possibilities of randomness while predefined.

    Capx

  • LittleStain,sorry for the late reply.

    The capx file you provided is saved on r158.2 I am using r158.Can you please give me a 158 file? Pleaseeeee

  • You could just update to 158.2, it's the latest stable release.

  • yeah. O.o

    I can't quite understand it.I am going to read the tutorial now.In the mean time do you understand this,By using a java decorder I got this code.

    Is this in Java?Can you understand this>?It mention arrays

    public int[] createBackGroundMap2(int paramInt1, int paramInt2)

    {

        int[] arrayOfInt = null;

        if (paramInt2 == 4) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 29, 30, 29, 30, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 6, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 0, 0, 0, 18, 6, 8, 9, 11, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 6, 25, 0, 0, 72, 76, 77, 75, 0, 0, 0, 0, 0, 0, 0, 0, 18, 6, 1, 2, 1, 2, 8, 9, 11, 1, 2, 1, 2, 6, 25, 0, 0, 0, 0, 78, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 6, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 45, 0, 45, 0, 0, 0, 0, 0, 31, 32, 2, 1, 2, 19, 21, 0, 0, 0, 0, 23, 24, 27, 27, 27, 21, 20, 0, 0, 46, 0, 46, 0, 46, 0, 0, 0, 0, 0, 31, 32, 1, 2, 1, 2, 19, 0, 0, 26, 26, 24, 22, 6, 1, 2, 19, 21, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 2, 1, 2, 1, 2, 26, 26, 27, 27, 22, 1, 2, 1, 2, 6, 19, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 1, 2, 1, 2, 6, 27, 27 };

        } else if (paramInt2 == 5) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 12, 13, 1, 2, 1, 2, 3, 4, 1, 2, 29, 30, 29, 30, 6, 1, 2, 1, 2, 6, 29, 30, 29, 30, 29, 30, 29, 30, 29, 3, 10, 15, 13, 12, 13, 1, 2, 6, 29, 30, 0, 0, 0, 6, 1, 2, 1, 2, 6, 25, 0, 49, 0, 72, 76, 77, 75, 0, 49, 18, 12, 13, 12, 13, 1, 2, 0, 0, 0, 0, 0, 43, 44, 12, 13, 12, 13, 6, 25, 0, 0, 50, 0, 0, 78, 79, 0, 0, 50, 0, 18, 1, 2, 1, 2, 6, 41, 42, 0, 0, 0, 43, 44, 6, 12, 13, 6, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 1, 2, 1, 2, 41, 42, 0, 0, 0, 0, 0, 52, 53, 53, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 53, 53, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26, 26, 26, 26, 26, 27, 27, 27, 27, 22, 1, 2, 12, 13, 12, 13, 14, 27, 27, 27, 27, 27, 27, 6, 1, 2, 1, 2, 6, 19, 27, 27, 27, 27, 27 };

        } else if (paramInt2 == 6) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 1, 2, 1, 2, 6, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 6, 1, 2, 1, 2, 1, 2, 1, 2, 29, 30, 29, 30, 29, 30, 29, 30, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 29, 30, 29, 30, 29, 30, 29, 30, 0, 0, 49, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 49, 0, 0, 0, 0, 50, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 0, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 26, 26, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 27, 27, 27, 27, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 6, 12, 13, 12, 13, 6, 19, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 6, 14, 0, 108, 109, 0, 14, 6, 19, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 22, 8, 10, 17, 0, 110, 111, 0, 8, 10, 4, 19, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 1, 2, 14, 0, 112, 113, 0, 14, 1, 2, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 1, 2, 12, 13, 12, 13, 1, 2, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 29, 30, 29, 30, 29, 30, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 45, 0, 0, 0, 0, 46, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 46, 0, 0, 26, 26, 26, 26, 26, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 27, 27, 27, 27, 27, 27 };

        } else if (paramInt2 == 7) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 1, 2, 1, 2, 12, 13, 12, 13, 3, 4, 1, 2, 8, 9, 10, 11, 1, 2, 1, 2, 3, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 19, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 19, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 45, 0, 0, 23, 24, 22, 1, 2, 12, 13, 19, 21, 20, 0, 0, 45, 0, 45, 0, 0, 0, 0, 0, 26, 26, 26, 20, 0, 46, 0, 46, 0, 23, 24, 22, 12, 13, 12, 13, 1, 2, 19, 21, 20, 0, 46, 0, 46, 0, 23, 26, 26, 26, 27, 27, 27, 21, 26, 26, 26, 26, 26, 24, 22, 1, 2, 12, 13, 1, 2, 1, 2, 19, 21, 26, 26, 26, 26, 26, 24, 27, 27, 27 };

        } else if (paramInt2 == 8) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 1, 2, 1, 2, 3, 4, 1, 2, 8, 9, 10, 11, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 29, 30, 29, 30, 33, 34, 6, 1, 2, 3, 4, 1, 2, 1, 2, 29, 30, 29, 30, 30, 1, 2, 1, 2, 33, 34, 29, 30, 29, 30, 0, 0, 0, 0, 31, 32, 12, 13, 12, 13, 1, 2, 1, 2, 1, 4, 0, 0, 0, 12, 13, 1, 2, 6, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 40, 32, 13,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

        for (int i = 0; i < 300; i++)

        {

          if ((paramInt1 % 15 == 0) && (i != 0)) {

            paramInt1 += 15;

          }

          paramInt2 = arrayOfInt[paramInt1];

          paramInt1++;

        }

        return paramInt2;

    }

    public int[] createBackGroundMap3(int paramInt1, int paramInt2)

    {

        int[] arrayOfInt = null;

        if (paramInt2 == 9) {

          arrayOfInt = new int[] { 1, 2, 3, 4, 1, 2, 1, 2, 1, 2, 1, 2, 12, 13, 1, 2, 1, 2, 1, 2, 8, 9, 10, 11, 1, 2, 1, 2, 1, 2, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 45, 0, 0, 0, 0, 49, 0, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 0, 49, 0, 0, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27 };

        } else if (paramInt2 == 10) {

          arrayOfInt = new int[] { 1, 2, 3, 4, 1, 2, 1, 5, 1, 2, 1, 17, 1, 2, 1, 2, 8, 9, 10, 11, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 21, 20, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 21, 20, 0, 0, 0, 0, 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, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27 };

        } else if (paramInt2 == 11) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 22, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 19, 1, 2, 1, 2, 29, 30, 29, 30, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 29, 30, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 52, 53, 53, 53, 52, 54, 53, 53, 53, 54, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 98, 99, 0, 0, 72, 73, 74, 75, 0, 0, 98, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 23, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 20, 66, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 65, 24, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 21, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 26, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 26, 26, 27, 27, 27, 27, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 27, 27 };

        } else if (paramInt2 == 12) {

          arrayOfInt = new int[] { 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 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, 0, 91, 91, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 92, 93, 93, 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 1, 2, 0, 0, 0, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 1, 2, 6, 26, 26, 26, 27, 27, 21, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 24, 22, 1, 2, 1, 2, 1, 2, 27, 27, 27 };

        } else if (paramInt2 == 13) {

          arrayOfInt = new int[] { 1, 2, 3, 4, 1, 2, 1, 5, 1, 2, 6, 25, 0, 0, 31, 32, 0, 0, 18, 6, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 25, 0, 0, 0, 31, 32, 0, 0, 0, 18, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 43, 44, 31, 32, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 20, 0, 0, 0, 31, 32, 0, 0, 0, 23, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 21, 20, 0, 0, 31, 32, 0, 0, 23, 24, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27 };

        } else if (paramInt2 == 14) {

          arrayOfInt = new int[] { 1, 2, 3, 4, 1, 2, 1, 2, 1, 2, 31, 32, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 6, 31, 32, 6, 1, 2, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 31, 32, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 30, 29, 31, 32, 30, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

        for (int i = 0; i < 300; i++)

        {

          if ((paramInt1 % 15 == 0) && (i != 0)) {

            paramInt1 += 15;

          }

          paramInt2 = arrayOfInt[paramInt1];

          paramInt1++;

        }

        return paramInt2;

    }

    public TiledLayer createSkyBoard()

    {

        TiledLayer localTiledLayer = new TiledLayer(2, 1, this.imageSkyBoard, this.imageSkyBoard.getWidth(), this.imageSkyBoard.getHeight());

        int[] arrayOfInt = { 1, 1 };

        for (int i = 0; i < arrayOfInt.length; i++)

        {

          int j = i % 2;

          int k = (i - j) / 2;

          localTiledLayer.setCell(j, k, arrayOfInt);

        }

        localTiledLayer.getCell(0, 0);

        return localTiledLayer;

    }

    public TiledLayer createMagicLayer1Board(int paramInt)

    {

        paramInt = new TiledLayer(1, 1, this.imageMagicBoard, this.imageMagicBoard.getWidth(), this.imageMagicBoard.getHeight());

        int[] arrayOfInt = { 1 };

        for (int i = 0; i < arrayOfInt.length; i++)

        {

          int j = 0;

          int k = i - j;

          paramInt.setCell(j, k, arrayOfInt);

        }

        paramInt.getCell(0, 0);

        return paramInt;

    }

  • I know nothing of Java, but those seem to be a lot of values in a row. What they are meant for I don't know, it could be the placement of tiles, but it could also be a very difficult way to order hamburgers at McDonald's.

  • Those are arrays. That is about all that tells you. The code below it is looping through the arrays and reading the values. Then settings the cells based on the value.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)