Friday, January 25, 2019

drawing a triangle

 You have a 300x300 game screen. Explain what numbers you'd use as parameters in al_draw_triangle if you wanted to slice the square game screen in half diagonally. Make sure you both type the function out AND explain each number please :)

For al_draw_triangle i would do al_draw_triangle(100,100, 250, 250, 100, 250, al_map_rgb(128, 0, 0);

The first 2 100 are the coordinates of the first coordinates of a point on the triangle, the  two 250's are the second point of the triangle, and the last 2 cordinates are the the last points of the triangle. The last part is the color of the triangle.


allegro drawing a circle

 You have a 800x800 game screen, and need to draw a circle with a radius of 200 directly in the center. How would you go about drawing this? What would the Draw_Circle function call look like, and what parameters would it take and why?
al_draw_circle(400, 400, 200, al_map_rgb(128, 0, 0), 5)

Tuesday, January 15, 2019

Paired programming

 When you were paired up with someone to do a programming assignment, what were your strengths? In what ways were you most helpful? What were your weaknesses? Where could you improve?
My strength is I would always think similarly to my partner. One big thing that is helpful is that when I didn't know where to start we would brainstorm with each other and we solve the problem. Sometimes I would be too tired to talk so I wouldn't help that much and it sucks. 
I need to improve my sleep schedule. 

Thursday, January 10, 2019

Tuesday, December 4, 2018

Feedback

Reflect on the evaluation that someone else did for your code. Briefly describe where you did well and where you could improve. Do you agree with their assessment? Why or why not?
One of the main things they mention I need work on is comments, which I agree with them. I agree because sometimes when I go back to back to old code I am confused on where things are and what certain code does. 

multiple variables

Have you made a mistake where you've declared too many or too few variables? What was the problem, and how did you fix it? When you begin writing a program, how do you know how many variables you'll need? 
I forgot which program it was but I had two same variables and one of the variables was writing over the second one. I fixed it by deleting the variable that was writing over the other. 

When you programmed the Princess Quiz, you needed several variables, one for each princess's score. For other programs, like the choose your own adventure program or the Marvel Universe Guesser, you only need one or two. What's the difference? What's a good rule of thumb for when you have to have a handful of variables versus when you only need one?
A good rule of thumb is named each variable with clear content. If one variable is the player then name the variable player.

Monday, December 3, 2018

flowcharts

1) What are flowcharts and how are they useful?
Flow charts are like an outline to a story or an event. It can help be useful by being more organized.
2) What coding tools/concepts will you need to complete this project?

I need to use the shapes key to correctly demonstrate an event or a story.