code1
code1
hpp>
#include <cmath>
#include <vector>
struct Satellite {
};
int main() {
sf::CircleShape earth(EARTH_RADIUS);
earth.setFillColor(sf::Color::Blue);
// Create satellites
std::vector<Satellite> satellites(NUM_SATELLITES);
// Main loop
while (window.isOpen()) {
// Handle events
sf::Event event;
while (window.pollEvent(event)) {
if (event.type == sf::Event::Closed) {
window.close();
window.clear();
window.draw(earth);
sf::CircleShape satellite(SATELLITE_RADIUS);
satellite.setFillColor(sf::Color::White);
window.draw(satellite);
satellites[i].angle += satellites[i].speed;
satellites[i].angle -= 360.0f;
window.display();
sf::sleep(sf::milliseconds(10));
return 0;