Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Hello! I'm begginer and i need some help!  (Read 1822 times)

0 Members and 1 Guest are viewing this topic.

fedot89

  • Newbie
  • *
  • Posts: 3
    • View Profile
Hello! I'm begginer and i need some help!
« on: November 15, 2010, 09:48:30 am »
Hello! Someone can help me whit my litle program?
I started to create a program to be like this:  

My first code's in SFML are:

Code: [Select]

////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <iostream>


////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
    // Create main window
    sf::RenderWindow App(sf::VideoMode(800, 600), "Fortune");

    // Start game loop
    while (App.IsOpened())
    {
        // Process events
        sf::Event Event;
        while (App.GetEvent(Event))
        {
            // Close window : exit
            if (Event.Type == sf::Event::Closed)
                App.Close();
        }

        // Clear screen
        App.Clear();

        // Draw predefined shapes
        App.Draw(sf::Shape::Circle(50, 50, 25, sf::Color::Yellow, 10));

        // Build a custom convex shape
       

        // Finally, display the rendered frame on screen
        App.Display();
    }

    return EXIT_SUCCESS;
}


I insert the first circle but i need 79 numbers more :D .

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Hello! I'm begginer and i need some help!
« Reply #1 on: November 15, 2010, 09:53:46 am »
So ? Read tutorial on loop and array to continue your project. Don't rush into huge project before having basic skills in programing. You should start by focusing on smaller project outside of SFML.

 

anything