# Bubble shooter game mechanics

**URL:** <https://discourse.processing.org/t/bubble-shooter-game-mechanics/23774>\
**Category:** Coding Questions\
**Created:** [September 10, 2020, 10:08am UTC](https://discourse.processing.org/t/bubble-shooter-game-mechanics/23774 "2020-09-10T10:08:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koenterheegde57](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@koenterheegde57](https://discourse.processing.org/u/koenterheegde57)\
**Post date:** [September 10, 2020, 10:08am UTC](https://discourse.processing.org/t/bubble-shooter-game-mechanics/23774/1 "2020-09-10T10:08:03Z")

</div>

Hi everybody,  
I want to recreate the bubbleshooter game but I can’t figure out how to get a ‘bullet’ moving towards my mouse, which will be the direction of the bullet. I tried using the formula y=ax+b and also tried to do it with vectors but nothing seems to work.  
Could someone give me some advice?

---

<div class="post-metadata">

**Author:** ![hotfooted](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hotfooted/32/3670_2.png) [@hotfooted](https://discourse.processing.org/u/hotfooted)\
**Post date:** [September 12, 2020, 8:07am UTC](https://discourse.processing.org/t/bubble-shooter-game-mechanics/23774/2 "2020-09-12T08:07:52Z")

</div>

rembound has a great tutorial i used many years ago. you can check it out [here](https://rembound.com/articles/bubble-shooter-game-tutorial-with-html5-and-javascript)
