Daily Archives: November 28, 2014
The third week of game programming
This week we have started studying object oriented programming. We started with classes. Classes are a way to group together different methods to create independent objects that work together to make beautiful things happen.
This week was not quite as hard as the former week. That however doesn’t mean it was even close to easy. I spent a lot of time on the different assignments we were handed and I finally completed most of the second week and I have now […]
The third week of game programming
This week we have started studying object oriented programming. We started with classes. Classes are a way to group together different methods to create independent objects that work together to make beautiful things happen.
This week was not quite as hard as the former week. That however doesn’t mean it was even close to easy. I spent a lot of time on the different assignments we were handed and I finally completed most of the second week and I have now […]
Classes about Classes
This past week the focus has turned to working with classes. The process was a tricky one since this is where my previous coding experience is reaching its limit, and the task required me to do things that have not been necessary for me before. Most of my working time has been spent on the task of creating a class able to simulate a deck of cards.
To do this I created a Card class meant to simulate cards by their […]
Classes about Classes
This past week the focus has turned to working with classes. The process was a tricky one since this is where my previous coding experience is reaching its limit, and the task required me to do things that have not been necessary for me before. Most of my working time has been spent on the task of creating a class able to simulate a deck of cards.
To do this I created a Card class meant to simulate cards by their […]
Classes about Classes
This past week the focus has turned to working with classes. The process was a tricky one since this is where my previous coding experience is reaching its limit, and the task required me to do things that have not been necessary for me before. Most of my working time has been spent on the task of creating a class able to simulate a deck of cards.
To do this I created a Card class meant to simulate cards by their […]
Classes about Classes
This past week the focus has turned to working with classes. The process was a tricky one since this is where my previous coding experience is reaching its limit, and the task required me to do things that have not been necessary for me before. Most of my working time has been spent on the task of creating a class able to simulate a deck of cards.
To do this I created a Card class meant to simulate cards by their […]
Game Programming I Week three.
This week of programming has been a bit more slow paced then the two previous ones. Hence we have been going through classes the whole week. The only new thing this week was class heritage, that a class can contain an other class by, heritage. This is declared by
class Animal
{
private:
int size;
public:
int GetSize(size)
{
return size;
}
};
class Fish: Public Animal //Better to set Animal as protected
{
};
This means that the things inside class fish now contains class animal.
Game Programming I Week three.
This week of programming has been a bit more slow paced then the two previous ones. Hence we have been going through classes the whole week. The only new thing this week was class heritage, that a class can contain an other class by, heritage. This is declared by
class Animal
{
private:
int size;
public:
int GetSize(size)
{
return size;
}
};
class Fish: Public Animal //Better to set Animal as protected
{
};
This means that the things inside class fish now contains class animal.
Game Programming I Week three.
This week of programming has been a bit more slow paced then the two previous ones. Hence we have been going through classes the whole week. The only new thing this week was class heritage, that a class can contain an other class by, heritage. This is declared by
class Animal
{
private:
int size;
public:
int GetSize(size)
{
return size;
}
};
class Fish: Public Animal //Better to set Animal as protected
{
};
This means that the things inside class fish now contains class animal.
Game Programming I Week three.
This week of programming has been a bit more slow paced then the two previous ones. Hence we have been going through classes the whole week. The only new thing this week was class heritage, that a class can contain an other class by, heritage. This is declared by
class Animal
{
private:
int size;
public:
int GetSize(size)
{
return size;
}
};
class Fish: Public Animal //Better to set Animal as protected
{
};
This means that the things inside class fish now contains class animal.
GAME PROGRAMMING WK.3
This week we learned how to use Classes and began programing in an object oriented way, but we only scratched the surface of OOP(object oriented programing). Classes are another type of data structures that group data, classes has variables and functions, they are called member functions or methods and member variables.
That’s all for today, I will try to make Tic Tac Toe in SDL and publish some of the progress here so stay tuned!
-Marwan
GAME PROGRAMMING WK.3
This week we learned how to use Classes and began programing in an object oriented way, but we only scratched the surface of OOP(object oriented programing). Classes are another type of data structures that group data, classes has variables and functions, they are called member functions or methods and member variables.
That’s all for today, I will try to make Tic Tac Toe in SDL and publish some of the progress here so stay tuned!
-Marwan
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 […]