Jump to content

  • Log In with Google      Sign In   
  • Create Account


molehill mountaineer

Member Since 24 Apr 2012
Offline Last Active Jun 23 2014 07:36 AM
*****

Arkanong development blog > Arkanong part 5: Hexagons! (collision detection, again)

Posted molehill mountaineer on 09 February 2014 - 12:52 PM

To make the game a bit more interesting we're going to add a few hexagonal barriers in the playing field.
This object is different from the paddle and balls in that it doesn't have a 'regular' shape. This means that using a rectangular
or circular hitregion will not cover the object properly.
Now, I could fudge the dimensions of the hexagon a little and c...

Arkanong development blog > Arkanong part 3: Vector reflector

Posted molehill mountaineer on 18 November 2013 - 06:09 AM

Yesterday I posted a few snippets of code to show how game objects can be kept within the confines of a client window. Because my game ball stores the direction it is heading in as an angle, the quick and dirty way to bounce it back was to add or subtract 90°.
This only works if you can guarantee that the ball will be coming in at one of four angles (45°,...

PARTNERS