
What can i do to solve this? Thanks
btw VS 2012 looks great.
Not Telling
15 April 2013 - 03:36 PM

14 April 2013 - 12:14 AM
20 March 2013 - 06:38 PM
UIx1: 0 UIy1: 0 UIx2: 0 UIy2: 0 Bullet Delay: 20 First level: 1
settingsfile = fopen( "settings.txt", "r" );
if (settingsfile != NULL)
{
fscanf( settingsfile, "UIx1: %i UIy1: %i UIx2: %i UIy2: %i Bullet Delay: %i First level: %i", &UIx1, &UIy1, &UIx2, &UIy2, &bulletDelay, &startlevel );
fclose( settingsfile);
}
else
{
printf("Could not open the file.\n");
}
16 March 2013 - 01:53 AM
FILE* f = fopen( "settings.txt", "r" ); fget( f, "xpos = %f", &x ); fclose( f );
09 March 2013 - 07:52 PM
for (//loop through bullets)
{
if ( bullets[i].active == false )
{
bullets[i].active = true;
bullets[i].x = (player.x + player.rad - bullets[i].rad); //Middle of player bubble
bullets[i].y = (player.y + player.rad - bullets[i].rad); //
player.ammo--;
break;
}
}
for ( //loop through all bullets)
{
if (//bullets[i].x or bullets[i].y out of screen)
{
bullets[i].active = false;
}
if (bullets[i].active == true)
{
bullets[i].move();
bullets[i].draw( m_Screen );
}
}

Find content