This work was done online on the site CODE.ORG. As practice for our future lab where we have to code the VEX robots, we did some practice coding on the code.org website. There were three different parts to the coding exercises: Star Wars, Minecraft and Elsa from Frozen.
In this video, you can see that I entered code with those colored blocks. The coding lesson was simplified by making each command a drag and drop block. Actual coding is more complicated but for our learning purposes, simpler is better. I chose the characters, music, points added or subtracted.
In this video, you can see that the scene froze and would not play after clicking the "Run" button. I added exploding barrels through code but when they exploded, it froze the program. You can see the barrels frozen in mid explosion. However, the video is still good to look at because you can see the code blocks I added to make the scene. I added things like how far to walk, when to turn, what to do if there's lava ahead.
Here you can see I had a chance to practice with Elsa. The code I added on the right made her create the snowflake shape on the ice. You can see that I directed her by telling her how far to skate, when to turn, how far to turn, and how many times to repeat the same movements.
Here you can see that I chose my own blocks of code to add to the coding and this was the shape she skated out. I didn't know ahead of time exactly what the shape would be but it turned out pretty cool in my opinion.
Overall, I'm glad we had this practice of coding because we will soon be putting this knowledge to the test when we program our own VEX robots in a similar manner.
CODE.ORG Homework Assignment finished!
No comments:
Post a Comment