Ejemplo n.º 1
0
int main() {
	srand(time(NULL));

	for(unsigned int i = 0 ; i <= 42 ; ++i)
		printf("%u\n", ranInt(42));
	return 0;
}
Ejemplo n.º 2
0
void World::loadTextures()
{
        mLevel = ranInt(5) + 1;
    mTextures.load(Textures::Player, resourcePath() + "player.png");
    mTextures.load(Textures::Enemy, resourcePath() + "enemy.png");
    mTextures.load(Textures::Boss, resourcePath() + "boss.png");
    mTextures.load(Textures::Map, resourcePath() + "level" + std::to_string(mLevel) + ".jpg");
    mTextures.load(Textures::Bullet, resourcePath() + "EnemyBullet.png");
    mTextures.load(Textures::AlliedBullet, resourcePath() + "AlliedBullet.png");
    mTextures.load(Textures::End, resourcePath() + "Endline.png");
    mTextures.load(Textures::Missile, resourcePath() + "Missile.png");
    mTextures.load(Textures::FireRate, resourcePath() + "FireRate.png");
    mTextures.load(Textures::FireSpread, resourcePath() + "FireSpread.png");
    mTextures.load(Textures::HealthRefill, resourcePath() + "HealthRefill.png");
    mTextures.load(Textures::MissileRefill, resourcePath() + "MissileRefill.png");
    // ... more textures
}