#include "spritelevel.h" void SpriteLevel::Load( void ) { m_Background = new BaseSprite( "background.bmp" ); m_Background->SetPosition(0, 0); m_Crosshair = new Cursor( "crosshair.bmp" ); m_Crosshair->SetPosition( 512, 400 ); m_Flowers = new ShowFlowers(); m_Flowers->Run(); m_BunnySpawnTime = -1; srand((unsigned int)time(NULL)); } void SpriteLevel::LevelLoop( void ) { if( m_BunnySpawnTime == -1 ) { m_BunnySpawnTime = (int)time(NULL) + 3; } if( time(NULL) == m_BunnySpawnTime ) { m_BunnySpawner = new Bunny("bunny.bmp", 9,96, 96, 3, 3); m_BunnySpawner->SetPosition(1060, ((float)(rand()%210) + 526)); m_BunnySpawnTime = -1; } } void SpriteLevel::Destroy( void ) { }