Check out the in game instructions. You have 5 seconds after being hit to be invinsible from being hit!
Special credit to @PhirripSyrrip for the inspiration for this game, script for the marshmellow and the sprite for the falling red enemys