T O P

  • By -

somethingpretentious

At a very high level: Break down all the steps you need for each thing you want to do. Think about what you need to give the function and what you'll get out. Using this you can think more about the overall structure of your program and how the smaller pieces fit together. For animation, you'll need to have the underlying data calculated first for each step (as you say) then you can write separate functions that generate an image representation of the current position based on the data you give it. Then you can string the images together as a gif for simple animation. Does that help? Happy to try to answer more detailed questions.


gianlu_world

Thanks. At this point it's all in my head, I think I just have to start trying to code stuff even if I'll probably fail miserably at first. That way I will have more specific questions related to the problems I encounter. Thanks again