Frame vs rect
I'm having a great time learning programming and python with Pythonista (awesome app!) by making a little space game. In it I have some satellites orbiting a planet. The satellites should be:
- selectable, ie "clickable", to execute actions (like displaying info)
- represented by an icon, the ellipse or rect functions would be fine or the white_circle image
- they orbit the planet.
Would I be better off using a layer/frame or just a simple rect/ellipse? What are the advantages of using frames?
Thanks in advance.
You will find that either way will work fine when things are simple but as you add more moving parts the layer-based approach will be easier to deal with because the system will do more for you. By contrast, the learning curve might be a bit higher. My advise is to pick one and go with it... If you run out of gas then try the other one. Do not worry too much about making the right choice early on. The trick is just to get the satellites to orbit the planet. The journey is the reward.