My code doesn't work

Hello to anyone who is reading this…

I’m using p5js in my class and I’m having some trouble with a flappy bird game I’m trying to remix. Me and my teacher figured out that it was because the game was set to “rectMode(CENTER)” and I had replaced the obstacle with an image, and an image is NOT a rectangle so I don’t know if it can be centered like a regular rect. Any help?

Link to my code here:



yep! imageMode is the rectMode of images :slightly_smiling_face: anywhere you use rectMode should be replaced with imageMode. let us know if you have any questions and welcome to the forum! :dizzy:


Thank you so much! I appreciate it a lot. :slight_smile: