Barrel Dodger
I'am back again with some more Make Code Arcade. I've lately been busy with this big project in my game design class and I wasn't able to continue learning and making more mini arcade games. For this assignment, I am good to look at a tutorial written in a document to guide myself through this mini project. I am looking forward to see what new things I can modify for this one.
What is the key to gravity in coding with make-code?
Well there is no built in gravity option you can find in make-code arcade, so that means you'll have to make the gravity work by using the blocks of code and arranging them correctly. The main key to gravity here is to make use of the velocity and acceleration on the y axis. For now, I want the character to jump up and land again on the ground, so I can set the x-velocity or x-acceleration to 0 and for the y it can be arranged depending how fast I want it to jump. Keep in mind that acceleration is constant change in velocity.
Did I encounter any challenges?
I did encounter a few challenges, but nothing that serious. There was a part in the tutorial that I got stuck because I couldn't understand very well the explanation of a step in an image. I got confused with the tiles, and also, I noticed that there was an update with Make Code. The layout looked slightly different and the colors changed too. The new layout for some things got my kind of confused, but eventually I managed to figure it out.
What was modified in the code?
After completing the document tutorial, I kept going with the code. I add a nice light blue background to represent the sky, I changed the color of the ground and instead of a rolling barrel, I used a flying bat as my projectile. I also add some cloud with a similar function to the first projectiles. I set it in the top of the screen with a slower velocity than the first projectile. For this sprite with the cloud shape, I had to make it because I couldn't find a cloud in the sprite gallery and it turned out to look very nice.
Reflection
Overall I had fun making this code, I learned new things for this one. I didn't know before how to do that barrel rolling function constantly. I had no idea how to make a character jump and when I saw how it worked, it made sense for me, I understood the concept of gravity in Make Code arcade. Give it a try, have a little fun with my code.
Did I encounter any challenges?
I did encounter a few challenges, but nothing that serious. There was a part in the tutorial that I got stuck because I couldn't understand very well the explanation of a step in an image. I got confused with the tiles, and also, I noticed that there was an update with Make Code. The layout looked slightly different and the colors changed too. The new layout for some things got my kind of confused, but eventually I managed to figure it out.
What was modified in the code?
After completing the document tutorial, I kept going with the code. I add a nice light blue background to represent the sky, I changed the color of the ground and instead of a rolling barrel, I used a flying bat as my projectile. I also add some cloud with a similar function to the first projectiles. I set it in the top of the screen with a slower velocity than the first projectile. For this sprite with the cloud shape, I had to make it because I couldn't find a cloud in the sprite gallery and it turned out to look very nice.
Reflection
Overall I had fun making this code, I learned new things for this one. I didn't know before how to do that barrel rolling function constantly. I had no idea how to make a character jump and when I saw how it worked, it made sense for me, I understood the concept of gravity in Make Code arcade. Give it a try, have a little fun with my code.
Comments
Post a Comment