Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 Nov 2011
Offline Last Active Apr 23 2016 05:48 PM

Posts I've Made

In Topic: SFML - Window is just white and frozen

07 January 2016 - 04:44 AM

The most likely problem is that you aren't initialising the font member of the FontLoader class, and as it is a pointer to a sf::Font object it is most likely pointing to an invalid address when you call loadFont. The solution is to replace 'sf::Font*' with 'sf::Font' and the '->' with a '.', which will mean that the font member is always initialised when you construct a FontLoader.

In Topic: Is root of something is distributive?

03 February 2015 - 04:57 PM

You are correct: sqrt(a*b)=sqrt(a)*sqrt(b), but sqrt(a+b)!=sqrt(a)+sqrt(b) (except where a or b are zero).

In Topic: SDL simple jump?

21 January 2015 - 04:52 AM

When you say that your attempts to add gravity always fail, in what sense is it failing and how are you adding gravity?

In Topic: How to figure out if something is in the area of a circle?

20 January 2015 - 08:34 PM

If you want to determine whether a point (tx,ty) is within a circle with its centre at (x,y) then you need to determine whether (x-tx)2 + (y-ty)2 is less than r squared (where r is the radius of the circle or what you are referring to as the range)

In Topic: SDL2/CG project stopped working

01 June 2014 - 01:24 AM

When you say that you can't get it to work, what exactly is occurring?