Author Topic: Edit Alien Runner wall  (Read 7978 times)

Offline sweeta

  • byte
  • *
  • Posts: 7
    • View Profile
Edit Alien Runner wall
« on: March 21, 2011, 09:18:46 am »
Hello,

I am a android learner. I want to edit a number of counts of walls in alien runner to 5... How can it be done? Please help.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Edit Alien Runner wall
« Reply #1 on: March 21, 2011, 09:42:12 am »
I don't get the question...what "number of counts"?

Offline sweeta

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Edit Alien Runner wall
« Reply #2 on: March 21, 2011, 09:45:28 am »
it means.. number of wall... means number of walls in game... i want to keep it fix to value 5..?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Edit Alien Runner wall
« Reply #3 on: March 21, 2011, 09:49:17 am »
The number of walls depends on the level. The levels are simple ACSII files. If you want to limit the number of walls/pools/ramps..., you have to edit these files.

Offline sweeta

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Edit Alien Runner wall
« Reply #4 on: March 21, 2011, 09:52:25 am »
Can you please explain in little more detail?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Edit Alien Runner wall
« Reply #5 on: March 21, 2011, 10:49:30 am »
Open res/raw/level(1..3).txt with some ASCII editor, edit it, save it, run game. Each character stands for an object. Which is which should be possible to get out of the code of ObjectPool. Walls are 'w' for example.

Offline sweeta

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Edit Alien Runner wall
« Reply #6 on: March 24, 2011, 12:53:47 pm »
Thanks! My problem is solved

Offline sweeta

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Edit Alien Runner wall
« Reply #7 on: March 27, 2011, 01:12:34 pm »
Now i want to add alertbox in between the game.. when alien hits the wall.! Please guide for this.
I tried to use alertdialog.builder. But error is coming

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Edit Alien Runner wall
« Reply #8 on: March 28, 2011, 08:24:37 am »
This is unrelated to jPCT-AE. It might be a better idea to ask this in a dedicated Android forum.

Offline sweeta

  • byte
  • *
  • Posts: 7
    • View Profile
Re: Edit Alien Runner wall
« Reply #9 on: March 28, 2011, 09:03:42 am »
ok thanks