Computer Technology post #4

Hello! This week, for Computer Technology class, we’ve been learning how to code in Swift Playgrounds. We started to learn how to do “Commands” with coding! Here is an example of one of the things I made with coding:

In this example, notice how there are portals with allows the sprite to jump to different areas. This part confused me a little bit, because sometimes it is hard to imagine a sprite jumping to different areas without doing any commands (besides going to the portal), but I overcome that challenge by thinking about it in a different way: instead of thinking of it as the sprite “jumping,” I thought of it as just continuing a path that ended. This let me understand that the direction the sprite was facing won’t change when going through each portal. I managed to finish the code correctly, and I felt proud! (=

Leave a Reply

Your email address will not be published. Required fields are marked *