Making Obstacles

Making Obstacles
Today at my Internship, we worked on our same project. Although, today we implemented this little bird into our code. It seemed very complicated at first, but then I looked at my code and noticed that I was basically doing the same thing with another image that was already put onto the page.

  
  
How I did this was simple. First I was able to drag the image into visual studio. Visual Studio is an app that allows one to run Javascript and HTML files. Then you have to assign where the bird is going to be on the page. Do you want it to be at the very top left? Do you want the bird to be at the bottom? Do you want the bird to be in the middle? I made it so the bird was on the top left-hand side of the screen. I am now trying to make it so that whenever the little guy runs into the bird, the stop function commences. As a review, my stop function essentially stops the little guy on the screen from walking. Instead of me typing stop(), the little guy would stop if he touches the bird. This is definitely going to be a little more complicated. I will save the explanation on how I do this for next week. I thought that this was some really interesting stuff. Soon it was time to go which made me a little sad, but I am excited and ready to go back next week.

Comments

Popular posts from this blog

Doing a Little Review

Making Classes

Using the Arrow Keys