www.jpct.net

jPCT-AE - a 3d engine for Android => Projects => Topic started by: sweeta on March 21, 2011, 09:18:46 am

Title: Edit Alien Runner wall
Post by: sweeta 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.
Title: Re: Edit Alien Runner wall
Post by: EgonOlsen on March 21, 2011, 09:42:12 am
I don't get the question...what "number of counts"?
Title: Re: Edit Alien Runner wall
Post by: sweeta 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..?
Title: Re: Edit Alien Runner wall
Post by: EgonOlsen 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.
Title: Re: Edit Alien Runner wall
Post by: sweeta on March 21, 2011, 09:52:25 am
Can you please explain in little more detail?
Title: Re: Edit Alien Runner wall
Post by: EgonOlsen 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.
Title: Re: Edit Alien Runner wall
Post by: sweeta on March 24, 2011, 12:53:47 pm
Thanks! My problem is solved
Title: Re: Edit Alien Runner wall
Post by: sweeta 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
Title: Re: Edit Alien Runner wall
Post by: EgonOlsen 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.
Title: Re: Edit Alien Runner wall
Post by: sweeta on March 28, 2011, 09:03:42 am
ok thanks