Martes, Hulyo 9, 2013

BASPRO1 (Introduction to Programming using C++)





Professor: Mr. Ernest "Sir Buboy" Ocson



Hello World




         The very first lesson that a game programmer or an amateur will learn is how to program "Hello World". These two words signify the start of life of being a programmer. It's like it's saying that "Welcome to Programming World." 





Variables and Data Types



               Our next lesson was variable and data types. Variables are the most basic method of memory reservation for computed values, that they may be retrieved for future reference while data types require each variable to be declared.

           In connection to this lesson, we learned how to declare variables and stored values in this variables. Furthermore, we can now display texts and values.






Conditional Statements



               Another lesson again has been introduced to us which is more complicated than our past lessons. It requires us to make a condition and if it meets the condition, the codes will run.




Hello OpenGL


      Hello OpenGL! This was my first time to program using codes to create 3d objects. And our midterm project is a 3d object made in opengl. This is a one step forward in programming.
               The first object we made were lines, then triangles, quads, sphere and teapot with rotation.



Quads of CUBE


                 We made a cube out of quads. We used glVertex3f(); to create this cube. And it was fun.


Cube with Normal3f




          Normal3f is used to show shadows of the object.  If a side is at the front, it is lighted and the others are darkened.



Midterm Project


             Our 3d object is a City Land. We made buildings with the use of triangles, spheres and quads. We experimented the color coordinates to come up with that output. We also applied keyboard functions, by clicking ‘l’, the color of the whole city will change with shadows.




Grid


              One day, our professor challenged us to make a line grid. At first I don’t know how to start, but our professor gave us hint to create the border lines. Then I experimented with the coordinated until I finally made the line grid.




Loops


             To able for us to learn our next lesson, we need to store our lessons in the past days. Some prerequisites are declaring variables, use of mathematical operators, and construction of Boolean expressions. There are four types of loops: while loop, for loop, nested while loops, and nested for loops. Different type of loops can produce the same output. Loops is used to print codes shorter but still produced the same output.
             We also used the user’s input; it will produce outputs whatever the user input number.




Pong





Final Project : PONG


Our final project in BASPRO1, with Richard Co and Adrienne Rose Alolod. . .




Auxiliary Project : SPACE INVADERS


                     Our Auxillary Project in Sir Buboy’s BasPro1 Class, with my partner Bryan Angelo Leynes. . .





Walang komento:

Mag-post ng isang Komento