Use the mouse to move the beetle and dodge the moving objects. Click anywhere on the screen or press the Space key (and hold) to make the beetle crawl faster, but that will use up your Boost Power. Collect powerups to move faster, gain more boost power, or become invincible for a short amount of time.
I took inspiration from griffpatch's Amazing Health Bars tutorial (https://www.youtube.com/watch?v=rTKDzz_d6X4&t=1348s) for some of the code. Some of the artwork is from the Scratch Library, but most of the artwork is made by me.