Can This Java Code Generate Dynamic Game Environments?

  • Java
  • Thread starter adjacent
  • Start date
  • Tags
    Java
In summary, the code creates a background map with paramInt1 and paramInt2. If paramInt2 is 4, the code creates an array of int with values 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, 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, 1, 2, 6,
  • #1
adjacent
Gold Member
1,552
63
Hello
I am not a programmer or anyone.
I want to make a game based this code
Code:
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, 0, 0, 0, 0, 18, 6, 8, 9, 11, 1, 2, 1, 2, 6, 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, 29, 30, 29, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 52, 53, 53, 54, 55, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 26, 26, 26, 26, 0, 56, 57, 56, 57, 0, 26, 26, 26, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 27, 27, 27, 27, 66, 58, 59, 58, 59, 64, 27, 27, 27, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 3, 2, 67, 60, 61, 60, 61, 65, 1, 2, 6, 19, 21, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 24, 22, 1, 2, 1, 2, 14, 0, 60, 61, 60, 61, 0, 6, 1, 2, 6, 19, 21, 20, 0, 0, 0, 0, 0, 26, 26, 26, 26, 24, 22, 1, 2, 12, 13, 12, 13, 26, 62, 63, 62, 63, 26, 1, 2, 1, 2, 6, 19, 21, 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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 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, 4, 1, 2, 1, 2, 29, 30, 29, 30, 29, 30, 33, 34, 6, 12, 13, 1, 2, 29, 30, 29, 30, 1, 2, 1, 2, 6, 33, 34, 29, 30, 29, 30, 29, 30, 0, 0, 0, 0, 0, 0, 31, 32, 12, 13, 1, 2, 6, 48, 48, 48, 48, 6, 1, 2, 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, 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, 12, 13, 8, 9, 2, 1, 2, 1, 2, 0, 0, 0, 14, 8, 9, 10, 5, 31, 37, 0, 0, 0, 0, 0, 0, 0, 0, 39, 32, 12, 13, 12, 13, 6, 1, 2, 1, 2, 6, 0, 0, 0, 1, 2, 3, 4, 6, 31, 38, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 18, 22, 12, 13, 19, 25, 0, 0, 0, 0, 0, 0, 18, 22, 12, 13, 19, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 29, 30, 25, 0, 0, 0, 0, 0, 0, 0, 0, 18, 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, 23, 26, 26, 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, 27, 27, 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, 18, 22, 12, 13, 19, 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, 18, 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, 0, 0, 0, 0, 0, 0, 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, 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 == 11) {
      arrayOfInt = new int[] { 1, 2, 1, 2, 22, 25, 0, 0, 0, 0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 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, 2, 1, 2, 1, 2, 29, 30, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 1, 2, 1, 2, 1, 2, 6, 29, 29, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 18, 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, 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, 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, 43, 44, 31, 32, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 95, 96, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0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(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 really love that game.It was .jar format so I used a decompiler.Is this really decompiled the right way?
https://dl.dropboxusercontent.com/u/260388836/My/Harry%20Potter-3.jar is the .jar file if you want.
What I'm interested is in the level generation part.I think the above code is relevant to this?
Can anyone explain the code.please.:smile:
 
Technology news on Phys.org
  • #2
You will have to spend some time to learn the Java language, or at least some programming language before someone can explain this to you.

Do you recognise any of the constructs? Do you know what an object is? A function? An array?

With some basic knowledge, you can decipher this yourself.

The Java Tutorials
 
  • #3
Although I mentoned that I am not a programmer,I can still understand the logic behind the code if you explain it.
That's why I am a game maker
500th Yay
 
  • #4
I'm not sure what's going on here, it's only a small portion of the code, and some of the logic makes no sense at all to me. It's pretty difficult to decipher code without seeing it all. What is the TiledLayer class? What's with calling methods on an int primitive:

paramInt.setCell(j, k, arrayOfInt);

Can you compile the code back into a .jar? Personally, I doubt it.

All this would be much easier for you, and for me, if you could ask more educated questions, by learning some Java. Sitting back and asking random people on the internet to help with random pieces of random code with no context at all is pretty rich!
 
  • #5
I have provided the .jar file in my first post.
You said this is basic java.Learning java is not easy.It would take days if not weeks to learn all these.How did you learn java?By yourself?

I just want to copy the game.I can do everything except the level generation.
Of course I can learn java if I spend years.However,I am studying grade 10.I promise I will take java and programming courses after I go to A level.
That's all.

P.S I am not a spammer just registered to ask this question to random peoples on the internet.I have been on this forum for about a year now.
 
  • #6
adjacent said:
Although I mentoned that I am not a programmer,I can still understand the logic behind the code if you explain it.
Well, of course. The point is, though, with your lack of knowledge about Java or programming in general, to explain this code we will basically have to teach you Java. That's not the purpose of this forum.

I agree with what Adyssa said, that you will need to spend some time learning basic concepts in Java before it's worthwhile for us to answer specific questions.

adjacent said:
I have provided the .jar file in my first post.
You said this is basic java.Learning java is not easy.It would take days if not weeks to learn all these.How did you learn java?By yourself?
Yes, by myself, but I had the advantage of already knowing C, Pascal, Fortran, and a couple of other programming languages, so I understood the concepts of arrays, functions, data types and others.
adjacent said:
I just want to copy the game.I can do everything except the level generation.
Of course I can learn java if I spend years.However,I am studying grade 10.I promise I will take java and programming courses after I go to A level.
That's all.

P.S I am not a spammer just registered to ask this question to random peoples on the internet.I have been on this forum for about a year now.
 
  • #7
Are you able to run that jar file now?

As Addyssa said, the source is incomplete - not all of the jar code was decompiled. The other problem is that that source had oddities created by limitations in the decompiler. For example, when the decompiler sees the same memory location used in different locations in the code, it presumes it is the same variable - and uses the same name for it. It's also putting code in that was automatically generated by the compiler - and was not explicitly in the original code. I suspect that if you dig get the complete decompiled source, with a bit of work you could get it to recompile. But, as others have suggested, it would take skill, time, and effort.

BTW, your statement "I am not a programmer or anyone" is thoroughly false.
 
  • #8
.Scott said:
Are you able to run that jar file now?
Yes.
I just included a small part of the code in the Environment generator file.

.Scott said:
...
BTW, your statement "I am not a programmer or anyone" is thoroughly false.
How do you know??I just want to know the LOGIC behind this ENVIRONMENT GENERATION code.
As far as I know,logic does not have any specific language.You don't have to learn java to understand logic.Am I wrong?

Anyway,I have observed the game.(This is not an executable .jar file) using an emulator.
So I have seen a pattern where "Areas" are randomly picked from predefined "areas" and scrolled.
This is called logic

Cambridge AL 3rd edition said:
A particular way of thinking, especially one which is reasonable and based on good judgment

wikipedia said:
Logic (from the Ancient Greek: λογική, logike)[1] has two meanings: first, it describes the use of valid reasoning in some activity; second, it names the normative study of reasoning or a branch thereof.[2][3] In the latter sense, it features most prominently in the subjects of philosophy, mathematics, and computer science.
 
  • #9
.Scott said:
BTW, your statement "I am not a programmer or anyone" is thoroughly false.
adjacent said:
How do you know??
Part of the statement above is "I am not anyone", which is clearly false. You are someone.
adjacent said:
I just want to know the LOGIC behind this ENVIRONMENT GENERATION code.
As far as I know,logic does not have any specific language.You don't have to learn java to understand logic.Am I wrong?
No, but you have to implement your logic in code. By your own admission you know nothing of code, so how will you turn your logic into Java code?
adjacent said:
Anyway,I have observed the game.(This is not an executable .jar file) using an emulator.
So I have seen a pattern where "Areas" are randomly picked from predefined "areas" and scrolled.
This is called logic
No it is not. This is only what you observed from viewing the game. From what I see of the code that you posted, there is no randomization going on. The logic involved is how the background patterns are chosen, based on some input from the user.

You need to get up to speed with programming before asking us to teach you Java. There are online tutorials as well as many books that are available. Spend some time getting the basic ideas down, and then you'll be ready to ask us some educated questions.

I am closing this thread.
 

Related to Can This Java Code Generate Dynamic Game Environments?

What is a Java interpreter?

A Java interpreter is a program that reads and executes Java code. It is responsible for translating human-readable Java code into machine-readable instructions that can be understood and executed by the computer.

How does a Java interpreter work?

A Java interpreter works by first reading the source code written in Java and then converting it into an intermediate form called bytecode. The bytecode is then executed by the virtual machine, which is responsible for translating the bytecode into machine code that can be understood by the computer's processor.

What is the difference between a Java interpreter and a compiler?

The main difference between a Java interpreter and a compiler is that an interpreter reads and executes code line by line, while a compiler translates the entire code into machine code before execution. This means that an interpreter can catch errors and provide immediate feedback, while a compiler may require the entire code to be written before detecting errors.

Why do we need a Java interpreter?

A Java interpreter is necessary because it allows us to write code in a high-level language that is easier for humans to understand. It also allows for platform independence, meaning that the code can be written once and run on any device or operating system that has a Java interpreter installed.

Can a Java interpreter run any type of Java code?

Yes, a Java interpreter can run any Java code as long as it is written according to the Java syntax rules. However, different interpreters may have slight variations in their implementation, which may affect the execution of certain code.

Similar threads

  • Programming and Computer Science
Replies
9
Views
1K
  • Programming and Computer Science
Replies
4
Views
1K
  • Programming and Computer Science
Replies
1
Views
1K
  • Nuclear Engineering
Replies
0
Views
629
  • Programming and Computer Science
Replies
7
Views
708
  • Programming and Computer Science
Replies
3
Views
1K
  • Advanced Physics Homework Help
Replies
11
Views
1K
  • Programming and Computer Science
Replies
12
Views
1K
  • Nuclear Engineering
Replies
7
Views
794
  • Programming and Computer Science
Replies
2
Views
546
Back
Top