Sprite Collision Detection

Discussion in 'Indie Basics' started by RetroGameEngine, Dec 13, 2016.

  1. RetroGameEngine

    RetroGameEngine New Member

    Dec 10, 2016
    Likes Received:
    Can anyone help me with collision detection?

    I'm programming a videogame engine. It's written in JavaScript, HTML5 and Canvas

    I have width height of sprites and X, Y coordinates ... I can do some rough collision detection already, but are there any standard libraries I could use?

    Also, rotating ... I don't think I could do collision detection, if I were to rotate square/rectangles! ... This is where I'm looking for a standard library.

    My trajectory math is done with X,Y also! ... not 360 degree values but I could convert my X,Y values to a 360 trajectory if a standard library did this.

    Any help would be great!

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer