So idk if it's due to poor planning or setup of my game but basically so you can get an idea below is a game screenshot.
[attachment=29188:game2.png]
If you look the game doesn't look to bad how ever just drawing random blocks on the screen where it never gets any more easy or difficult can get boring fast my prob is I set up the block for loop in the constructor so this only runs one time so if i change the block number later on in the code it doesn't seem to change the amount of blocks getting updated in the game. My idea was to do some type of random draw in the update method of the view to update the block count but like i said it never changes in the game. Do i need to move the block generation somewhere else outside the constructor ?
here is the constructor
/**
* Our BvSView constructor
* this will handle setting up our
* bird,drawing,and our random stars/blocks
* @param context
* @param x
* @param y
*/
public BvSView(final Context context, int x, int y) {
super(context);
screenX = x;
screenY = y;
//Setup drawing
paint = new Paint();
surHolder = getHolder();
//Setup player
bird = new Player(context,x,y);
//Init GameStats
gs = new GameStats();
//Set our distance to home
gs.setNewDistance(700000);
//Set star and block count
int dNum = 400;//Number of stars that will get generated
b = 5;//Number of blocks
distance = (int) gs.getDistance();
score = gs.getScore();
health = gs.getHealth();
/**
* Lets do some fancy stuff
* and generated 1000 random stars
* moving at different random speeds
* this helps give the illusion
* of our bird moving through space
*/
for(int i = 0; i < dNum; i++)
{
FunDebris debrisSpecs = new FunDebris(x,y);
debrisList.add(debrisSpecs);
}
//THE BLOCK GENERATION
for(int i = 0; i < b; i++) {
block = new Blocks(context,screenX,screenY);
blocks.add(block);
}
}