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 - Dreded

Pages: [1]
1
SFML projects / Re: Procedurally generated starfield
« on: September 01, 2013, 02:34:33 am »
Sorry meant to include the error...
Assertion failed: x + width <= m_size.x, file D:\developpement\sfml\sfml\src\SFML\Graphics\Texture.cpp, line 324

2
SFML projects / Re: Procedurally generated starfield
« on: September 01, 2013, 02:21:23 am »
This is an amazing effect, when I compiled it on my system(minigw on windows) I could not get it to run...

after applying the following "fix"
Quote
void Starfield::drawStarfield(sf::Texture& p_Texture)
{
    for(vector<Star>::iterator it = smallStars.begin(); it != smallStars.end(); ++it){
        if(it->getYPos() < 600)
        p_Texture.update(smallStarImage, it->getXPos(), it->getYPos());
    }

    for(vector<Star>::iterator it = mediumStars.begin(); it != mediumStars.end(); ++it){
        if(it->getYPos() < 599)
        p_Texture.update(mediumStarImage, it->getXPos(), it->getYPos());
    }

    for(vector<Star>::iterator it = largeStars.begin(); it != largeStars.end(); ++it){
        if(it->getYPos() < 597)
        p_Texture.update(largeStarImage, it->getXPos(), it->getYPos());
    }
}
if I compiled several times it might run 1/5 times without an immediate crash but then would crash 2 seconds later but the program ran successfully in these 2 seconds.. also applying the other fix mentioned had no effect.

3
SFML projects / Re: Serpent - A simple snake clone
« on: September 01, 2013, 01:37:06 am »
While I think the base of this game is excellent what the heck is with the poison apples? For me this absolutely ruins the game. also the initial skill level is to high, there is no feeling of I can do better!

As I said though as far as snake clones go the base game is great just needs tweaking :p

Pages: [1]
anything