Investigating how to implement the If/while conditional
As the first step, I would like to implement the forever and repeat[x] conditionals, which are also available in MIT scratch. They are good starter, as they do not involve putting things into the conditional part. I just need to concentrate on how to put statements to be executed in the repeat loop.
Then I will work on the variable stuff, which is the prerequisite for codelet-within-codelet to be possible. Some ideas from MIT Scratch are as follows:
Possible parts for this part
* visualize a true/false constant
* visualize a comparison statement
* visualize declaration of a variable
* visualize assignment to a variable
* visualize if
* allow codelet-within-codelet by drag-and-drop
* Implement the more difficult parts of the conditionals - drag-and drop to the condition part.
Progress
Add a control tab and visualize some starter control codelets (Forever and RepeatN)
Chat Whatsapp Yang Sudah Dihapus
2 years ago
No comments:
Post a Comment