Jump to content

Search the Community

Showing results for tags 'rectangle overlap sprite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. I'm trying to create a drag selection tool. At the moment, I''m simply drawing a graphic, keeping a rectangle in sync with that graphic, and checking each sprite to see if they intersect. It works (well...after adjusting the library to allow intersections for negative widths and heights. after testing, it will probably become a pull request.) and it might be a premature optimization, but I'm anticipating a higher number of sprites in my game meaning a ton of comparisons. It wouldn't exactly be n^2, just n. But I feel as though I might be missing something in the api that might take care of this in a more optimized way. I was originally hoping to take advantage of the quad tree with the new "retrieve" method, but it doesn't seem to return contained sprites (I'm assuming that it's only going to return sprites that are at the boarders). Has anyone had to implement this control? Was there a more efficient way to do this check?
×
×
  • Create New...