Carrot Clicker

Controls: Mouse only. Use the carrot button to earn more carrots, and the upgrade buttons to earn carrots faster.

Description: Break-In is a simplified clone of the incremental game "Cookie Clicker." The only goal is to get as many carrots as you can. There is no winning or losing, just play until you're bored.

My main goal with this game was to build a game that adds UI elements to the canvas. I was originally planning on using HTML buttons and moving them, but I found it's much easier to simply draw rectangles in the canvas manually and have different things happen when hovering those rectangles or clicking them, creating the illusion of a button.

Unfortunately this caused an issue when porting the game to this website. I mouse position calculate based on screen coordinates, but I want the game to be in the center of the screen, so the mouse location and button hover trigger positions weren't correct.