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

Pages: [1]
1
SFML projects / CosmoScroll - space shooter game
« on: March 13, 2010, 07:50:33 pm »
Nice game! I like the particles flying away when you shoot the enemies.

2
General / Error while quitting the program
« on: March 09, 2010, 06:43:43 pm »
Any way to bypass it? When it happens?

3
General / Error while quitting the program
« on: March 09, 2010, 06:01:10 pm »
After playing with fonts, I get this message when I quit the app:
Quote

"The instruction at 0x092eafda referenced memory at 0x00000080 the memory could not be read."


Code: [Select]

sf::Font TextFont;

if (!TextFont.LoadFromFile("font.ttf"))
std::cout << "Error" << std::endl;

sf::String TextSpeed;

TextSpeed.SetFont(TextFont);
TextSpeed.SetSize(26);
TextSpeed.SetColor(sf::Color(0, 0, 0));
TextSpeed.Move(50.f, 360.f);



Code: [Select]

std::string StringSpeed;
std::stringstream out1;

int Speed = 10;

out1 << Speed;
StringSpeed = out1.str();
TextSpeed.SetText(StringSpeed);

App.Draw(TextSpeed);

4
General / Global vars
« on: March 07, 2010, 09:12:21 pm »
This question is more a general question than a SFML one. How I may declare the "sf::RenderWindow App" so I can use it in every class? Or is better passing it by a parameter?

Thanks.

Pages: [1]