# Asteroid game errors

**URL:** <https://discourse.processing.org/t/asteroid-game-errors/26478>\
**Category:** Libraries\
**Created:** [December 23, 2020, 4:29pm UTC](https://discourse.processing.org/t/asteroid-game-errors/26478 "2020-12-23T16:29:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gmoangher](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@gmoangher](https://discourse.processing.org/u/gmoangher)\
**Post date:** [December 23, 2020, 4:29pm UTC](https://discourse.processing.org/t/asteroid-game-errors/26478/1 "2020-12-23T16:29:30Z")

</div>

I got weird error messages on my code. I’m trying to make an asteroid game prototype, and most of the time when I shoot an asteroid it gives me a message that shouldn’t be there. I’ve tried debugging multiple times. My code is at the address below. I’m also using p5.collide2d for the collision. (Click on edit on OpenProcessing)  
https://www.openprocessing.org/sketch/1047494/embed/?

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [December 28, 2020, 10:27am UTC](https://discourse.processing.org/t/asteroid-game-errors/26478/2 "2020-12-28T10:27:21Z")

</div>

Hi, @gmoangher Welcome to the forum.  
What type of errors do you get?  
I’ve played it some time but all went well.  
Nice asteroid game b.t.w.
