Control the bear using WASD. Restart with Space. Don't touch the bees.
I made this for school but it isn't finished. The gameplay idea was shamelessly stolen from a minigame in The Legend of Zelda: A Link Between Worlds.