User Tools

Site Tools


journal:spring2019:sepp:week3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
journal:spring2019:sepp:week3 [2019/02/06 22:54]
sepp
journal:spring2019:sepp:week3 [2019/02/06 23:19] (current)
sepp
Line 7: Line 7:
 "​extern"​ can be used at the front of a variable to basically say "Hey, this variable exists, but I haven'​t declared it yet." EG extern uint8_t FrameCount; ​ "​extern"​ can be used at the front of a variable to basically say "Hey, this variable exists, but I haven'​t declared it yet." EG extern uint8_t FrameCount; ​
  
-This week, we have worked on many different things. Last week, which was actually part of this current Haasian week, we messed around with making words appear on the screen! Kinda like last week, but more! Instead of having the letters all boring and unchanging, we made a pretty cool modification:​ the color of the letters in the words alternated between three different colors, and it kinda had a conveyor belt look to it. But wait! There'​s more! After that, our illustrious professor Matthew Haas issued a challenge: could we figure out how to make an additional line of words appear? That definitely wasn't in the tutorial. However, by studying the logic used to create the original line of words, one could indeed figure out how to add a second line of letters to the screen! And if one decided to add the letters in the same section as the pre-existing line, the shifting colors transferred to the new line as well.+This week, we have worked on many different things. Last week, which was actually part of this current Haasian week, we messed around with making words appear on the screen! Kinda like last week, but more! Instead of having the letters all boring and unchanging, we made a pretty cool modification:​ the color of the letters in the words alternated between three different colors, and it kinda had a conveyor belt look to it. But wait! There'​s more! After that, our illustrious professor Matthew Haas issued a challenge: could we figure out how to make an additional line of words appear? That definitely wasn't in the tutorial. However, by studying the logic used to create the original line of words, one could indeed figure out how to add a second line of letters to the screen! And if one decided to add the letters in the same section as the pre-existing line, the shifting colors transferred to the new line as well. It took me a little bit to figure out how to do all this, but I was eventually successful in my endeavor. I am also pretty happy that I can look at my stuff at home. It's pretty nice to be able to show off my work to my family and to make myself look like a total wizard. :) 
 + 
 +Things only got better at the next class. We began working with sprites! These are basically 2-D figures that can represent characters or objects and often have multiple poses that can be triggered by different events. (In Systems Programming,​ we've used a cat as our sprite, and there were different poses to make it look like it was walking in different directions depending on how what arrow key you pressed. I'm sure Mario has a few different poses to represent walking, jumping, and DYING!!! Often a group of sprite poses are shown on a "​sprite sheet"​.) We figured out how to control our sprite with keys, and then Matt the Great issued another challenge: could we create a second sprite and make it a different color than the one that already existed? As it turned out, the making of a second sprite wasn't too difficult, but the changing of the color proved to be a difficult undertaking for someone with the limited knowledge I have. Thankfully, I received mercy from my fabulous teacher. By using some bitwise logic to slightly modify the attributes portion of the struct controlling the sprite, we were able to change the color of the second sprite. In addition to that, we added some very patriotic red, white, and blue borders around the edge of the screen! Now we just need to build walls to protect those borders... 
 + 
 +I can't wait to see what new adventures we will embark on next! All we've accomplished,​ and it's only the third week! LET'S DO THIS!!! 
 + 
 +That's all for now, folks! 
 + 
journal/spring2019/sepp/week3.txt · Last modified: 2019/02/06 23:19 by sepp