Spelprogrammering Vecka 3
Den här veckan har vi gått igenom hur klasser och arv fungerar i c++. Jag har förut programmerat i språket Ruby och använde mig av object oriented programing. Så jag vet hur det fungerar med klasser och objekt. c++ har lite saker som är annorlunda, man måste förklara om en metod eller en medlemsvariabel i klassen är antingen public, private eller protected. Som standard så är allt i klassen private vilket betyder att till exempel variabler inte kan ändras utanför […]
Spelprogrammering Vecka 3
Den här veckan har vi gått igenom hur klasser och arv fungerar i c++. Jag har förut programmerat i språket Ruby och använde mig av object oriented programing. Så jag vet hur det fungerar med klasser och objekt. c++ har lite saker som är annorlunda, man måste förklara om en metod eller en medlemsvariabel i klassen är antingen public, private eller protected. Som standard så är allt i klassen private vilket betyder att till exempel variabler inte kan ändras utanför […]
Spelprogrammering Vecka 3
Den här veckan har vi gått igenom hur klasser och arv fungerar i c++. Jag har förut programmerat i språket Ruby och använde mig av object oriented programing. Så jag vet hur det fungerar med klasser och objekt. c++ har lite saker som är annorlunda, man måste förklara om en metod eller en medlemsvariabel i klassen är antingen public, private eller protected. Som standard så är allt i klassen private vilket betyder att till exempel variabler inte kan ändras utanför […]
Spelprogrammering Vecka 3
Den här veckan har vi gått igenom hur klasser och arv fungerar i c++. Jag har förut programmerat i språket Ruby och använde mig av object oriented programing. Så jag vet hur det fungerar med klasser och objekt. c++ har lite saker som är annorlunda, man måste förklara om en metod eller en medlemsvariabel i klassen är antingen public, private eller protected. Som standard så är allt i klassen private vilket betyder att till exempel variabler inte kan ändras utanför […]
Week 2: Arrays and Functions
Hi,
Sorry for this late post. It is a week late, but on the other hand. This weekend there will be two posts!
So.. A new week of Game Programming. This week we have gone through functions, arrays and pointers. This week have been more confusing and hard than the first week. I feel that the reason for that is that I didn’t give it much thought, or much time. The second week I didn’t have so many hours of studying as I […]
Week 2: Arrays and Functions
Hi,
Sorry for this late post. It is a week late, but on the other hand. This weekend there will be two posts!
So.. A new week of Game Programming. This week we have gone through functions, arrays and pointers. This week have been more confusing and hard than the first week. I feel that the reason for that is that I didn’t give it much thought, or much time. The second week I didn’t have so many hours of studying as I […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Second and Third Week of Programming
During last week we went over how to use the pointer functions and arrays. However i do not quite understand just how to use them or the exact definition, according to the book an array is data-type with a set amount of elements which we can define the value it holds. This works as a mean to save space and is currently being used in loops to search through the elements and displaying them onto the screen. I will shortly present […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Week 3: Classes and improvement
This week we have started using Classes. Because the course is moving forward in a high speed I feel like I need more time to do each exercise before I can fully understand them. The exercises that I have done this week is a few basic Programs that uses classes and then I did a Fahrenheit, Celsius Kelvin converter and a program that can calculate the time in seconds since midnight here you can also add or remove time. Now […]
Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]
Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]
From thumbnail to turnaround
This week’s assignment in 2D graphics was to chose one of the thumbnails we made two weeks ago and make a full character out of it! The thumbnail I chose is the one to the upper left. First we had to create a background and a personality for out character, so this is my princess Bella:
Name: Princess Bella
Gender: Female
Physical health/handicaps: Good mental and physical health, fairly strong, quick and agile for her age. No handicaps.
Personality: Very bubbly and […]
From thumbnail to turnaround
This week’s assignment in 2D graphics was to chose one of the thumbnails we made two weeks ago and make a full character out of it! The thumbnail I chose is the one to the upper left. First we had to create a background and a personality for out character, so this is my princess Bella:
Name: Princess Bella
Gender: Female
Physical health/handicaps: Good mental and physical health, fairly strong, quick and agile for her age. No handicaps.
Personality: Very bubbly and […]
Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]
Game programming I – Week 3
This week we have discussed and learned about classes, while the course is getting increasingly tough, this felt like a rather easy concept as we had already worked with concepts that were quite alike this when working with Pong during week two.
In general I am starting to feel as if I am falling behind as I find myself having a harder time grasping the exercises and especially as I spent two weeks on a single exercise from week two […]
Programming: Week 3
Week 3 is all about classes. Again, this is totally new to me but it is doable.
Just one exercise this time, more on classes to come.
Ex.2
Define a “Person” class. Within the class, define private variables (member variables/data members) to hold the age (an int) and the name (an std::string). Define public methods to assign values to the private variables and access the values in the private variables.
Use the class in a program so that the main() function calls the methods […]
Programming: Week 3
Week 3 is all about classes. Again, this is totally new to me but it is doable.
Just one exercise this time, more on classes to come.
Ex.2
Define a “Person” class. Within the class, define private variables (member variables/data members) to hold the age (an int) and the name (an std::string). Define public methods to assign values to the private variables and access the values in the private variables.
Use the class in a program so that the main() function calls the methods […]
Slow day but almost Done* with assignment 1
Worked for a few hours before lunch today, got to school later than i’d hoped but i was up late so i got there by ten rather than by nine. During the time i did work i didn’t get that much done other than some cleaning up my functions in the binary search tree class. I fixed the issue about not relocating children properly when removing a node.
In any case, have written the functionality of everything required for the assignment […]
Slow day but almost Done* with assignment 1
Worked for a few hours before lunch today, got to school later than i’d hoped but i was up late so i got there by ten rather than by nine. During the time i did work i didn’t get that much done other than some cleaning up my functions in the binary search tree class. I fixed the issue about not relocating children properly when removing a node.
In any case, have written the functionality of everything required for the assignment […]