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 19 Sep 2004
Offline Last Active Yesterday, 10:41 AM

#5212594 How were you learning programming at the age of 5?

Posted by desdemian on 23 February 2015 - 07:57 PM

When i was 6, my father taught me Logo:



If i had a kid now, i think i would give Hopscotch a shot:


#5186537 Collision Detection in a GTA-like Game

Posted by desdemian on 12 October 2014 - 02:04 PM

Hi mr moon, my suggestion:


First, use bouding circles just to know if the other object is close enough.


Then, if it is, draw your rotated zombie's current frame to a temporal texture (your graphics library should have a way of doing this, that is, drawing to memory instead of screen... or worst case scenario you have to rotate the sprite yourself, google will show you rotating algorithms).


Use that new generated texture to do your standard pixel pixel perfect collision checking.


Hope that helps. Bye.

#5085010 How to avoid depth fighting

Posted by desdemian on 11 August 2013 - 02:03 PM

There is a property you can set before drawing a polygon: glPolygonOffset.


Quoting: "glPolygonOffset is useful for rendering hidden-line images, for applying decals to surfaces (this is your case), and for rendering solids with highlighted edges."

What it does it "pulls" or "pushes" the polygon before doing the z test. Thus avoiding the z-fighting.



Good luck.