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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kordman916

Pages: [1]
1
General discussions / Platform Tutorial or Source code?
« on: February 05, 2011, 09:38:24 am »
Anyone?

2
Graphics / Splash Screen
« on: February 04, 2011, 05:05:46 am »
Just to show that I can at least load images I'll post my current code and I hope someone can make an addition showing how to clear the screen and load another image.

Code: [Select]
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>

int main()
    {
        //Start the SFML display window
        sf::RenderWindow Splash(sf::VideoMode(1024, 768, 32), "Splash Screen Test 0.1");

        //Load the images for each individual screen (only one for now)
        sf::Image SplashOpenAL;
        if(!SplashOpenAL.LoadFromFile("Data/OpenAL.png"))
            return EXIT_FAILURE;
            sf::Sprite OpenALSprite(SplashOpenAL);

            while (Splash.IsOpened())
            {
                sf::Event Event;
                while (Splash.GetEvent(Event))
                {
                     // Close window : exit
            if (Event.Type == sf::Event::Closed)
                Splash.Close();

            if (Event.Type == sf::Event::KeyPressed)
            {
                // Escape key : exit
                if (Event.Key.Code == sf::Key::Escape)
                    Splash.Close();
                }

                Splash.Clear();
                Splash.Draw(OpenALSprite);
                Splash.Display();
                }
            }
            return EXIT_SUCCESS;
    }


Also how do I scale the sprites and images based on the window size?

Thanks in advance,
Kordman916

3
Graphics / Splash Screen
« on: February 04, 2011, 04:17:33 am »
Hey Everyone,

So I was just going through all the things games include and I thought of splash screens.

How would one go about making splash screens?

How would I load the images and have them fade in and out in sequence?

This doesn't seem hard to do but I'm an extreme beginner when it comes to programming.

If there is a project that has source code included that features splash screens please leave a link or something so I can download it and solve this little issue.

Thanks in advance,
Kordman916

4
General discussions / Platform Tutorial or Source code?
« on: February 04, 2011, 02:49:58 am »
Hey Everyone,

I really like SFML and I want to start programming a platforming game (Eg: Mario or Sonic) but I wondered...

Are there any platform game tutorials or any projects with source code released that I could look at?

And if not could someone point me to a place to start learning about programming a platform game?

Thanks in advance,
Kordman916

5
General discussions / Yet another Box2D Positioning Issue
« on: December 21, 2010, 11:43:53 pm »
Anyone, anyone at all.....

6
General discussions / Yet another Box2D Positioning Issue
« on: December 16, 2010, 01:39:14 am »
I can't figure out how to replace the box with an image of a crate I've been at it for days I just can't get it.

Maybe someone can explain it to me in better detail?

7
General discussions / Yet another Box2D Positioning Issue
« on: December 09, 2010, 08:37:49 pm »
After running the code and making a couple changes I was wondering...

How would I replace the white box with an image?

8
Graphics / Texturing sf::Shape
« on: December 09, 2010, 07:29:12 pm »
How would I go about doing that?

9
Graphics / Texturing sf::Shape
« on: December 09, 2010, 02:37:06 am »
Hey everyone,

I was working on a quick demo to help me learn SFML and C++ and I realized...

I have no idea on how to texture shapes.

All I want to do is apply a box texture to a box/rectangular shape.

Can anyone tell me how or direct me to a place that can instruct me?

Thanks in advance,
Kordman916

Pages: [1]
anything