A basic working game!

Now, add bells and whistles…
Make the character do something if you touch it.
Catch other things besides stars.
Catch an “enemy” and lose stars.