Challenge Win/Lose condition

My challenge Win/Lose Condition :metal:

    ......cut
    if (finishLine < 0.0)
    {
        DrawText("You Win!", 150, 180, 50, YELLOW);
    }      
    else if (collision)
   {
       DrawText("Game Over!", 110, 180, 50, RED);
   }
   else
   {
       for (int i = 0; i < sizeOfNebulae; i++)
       {
            // draw nebula
            DrawTextureRec(nebula, nebulae[i].rec, nebulae[i].pos, WHITE);
       }    
       // draw scarfy    
       DrawTextureRec(scarfy, scarfyData.rec, scarfyData.pos, WHITE);
   }

               

    EndDrawing();

}

Privacy & Terms