I muted my mic so there is no sound. Tough luck for you guys wanting to hear my wonderful voice.
Here is the download: No guarantees on how stable the game is. It'll prolly crash.
Game Download
for(int i = 0; i < sMap.map.ship2.blocks.length;i++) | |
for(int j = 0; j <sMap.map.ship2.blocks[i].length; j++){ | |
// this convoluted mess offsets the ship so it renders all the squares in the right spots.. | |
batch.draw( | |
// the texture that I'm using | |
sMap.map.ship2.blocks[i][j].tr1, | |
// the x location of the ship I'm using | |
sMap.map.ship.center.x + j *(size)- (float)sMap.map.ship2.blocks.length / 2*size, | |
// the y location of the ship I'm using | |
sMap.map.ship.center.y-i*(size)+(((float) sMap.map.ship2.blocks.length/2)-1) *size, | |
// the x offset | |
(float)size*sMap.map.ship2.blocks.length/2-size*j, | |
// the y offset | |
size/2 +size*i -size*2, | |
// the width of the textures in pixels | |
size, | |
// the heigth of the texture in pixels | |
size, | |
// the x scale | |
1f, | |
// the y scale | |
1f, | |
// the rotation of the ship, the dirction it is pointing. | |
sMap.map.ship.getDirection()-90 ); | |
} |