Ants are usually shy but odds are that you can foster a community of curious individuals, did you manage to attain such a result? As the ants approach your mouse they react in different ways depending on their character. Most of them are shy and will return to the nest. Some are just curious and if you leave they resume wandering. Some others will chase your mouse and you will have to find a way to get rid of them. Yes, you can peruse into the code.
The difficult part was to do not think too big. I wandered a lot of time on internet looking for spritesheet to use in the project as I do not have time and skill to create a sprite by myself. I Started with a dragon guarding a threasure, the passed on a cat playing with the mouse pointer (did anyone remember neko on X?) I do not achieve to get an usable spritesheet, diminished again the size of the project and decided to animate an ant nest. Unlike the real ones, the ant populations will cap at 30 individuals.