Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 08 Nov 2011
Offline Last Active Today, 03:18 AM

Posts I've Made

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?

In Topic: Minesweeper - Having problems figuring out logic for adjacent checks

13 May 2014 - 06:33 AM

How I would approach this is as follows:

  1. The procedure is called on the selected tile
  2. Check if the selected tile contains a mine, if so the game is over
  3. Otherwise, make the selected tile visible and check if the selected tile has any adjacent mines
  4. If there are no adjacent mines, call the procedure on all the non-visible adjacent tiles