Daily Archives: November 29, 2014

GAME PROGRAMMING I: WEEK THREE

This week we started using classes and inheritance. Again subjects that I know from earlier courses, but again nice with a refresher. We did touch on structs last week which are similar but are less usefull than classes.
Classes are a collection of data, that could either be methods(function that belongs to a class) or variables. If a class inherits from a base class, it receives the methods and variables from the base class.
When using classes we create objects, a defining feature of […]

/ Comments Off on GAME PROGRAMMING I: WEEK THREE
Program: Programming

GAME PROGRAMMING I: WEEK THREE

This week we started using classes and inheritance. Again subjects that I know from earlier courses, but again nice with a refresher. We did touch on structs last week which are similar but are less usefull than classes.
Classes are a collection of data, that could either be methods(function that belongs to a class) or variables. If a class inherits from a base class, it receives the methods and variables from the base class.
When using classes we create objects, a defining feature of […]

/ Comments Off on GAME PROGRAMMING I: WEEK THREE
Program: Programming

Week 3

This week’s lectures have mostly been focused on classes and using header files in visual studio. I find that I can keep up somewhat during the lectures, but have a bit of a challenge when I try to use what I have learned. The weekly exercise assignments greatly help me to really understand how to implement the things we hear about during the lectures. This week’s exercises are much harder to solve then earlier weeks (would be strange if they […]

/ Comments Off on Week 3
Program: Programming

Week 3

This week’s lectures have mostly been focused on classes and using header files in visual studio. I find that I can keep up somewhat during the lectures, but have a bit of a challenge when I try to use what I have learned. The weekly exercise assignments greatly help me to really understand how to implement the things we hear about during the lectures. This week’s exercises are much harder to solve then earlier weeks (would be strange if they […]

/ Comments Off on Week 3
Program: Programming

Week 3

This week’s lectures have mostly been focused on classes and using header files in visual studio. I find that I can keep up somewhat during the lectures, but have a bit of a challenge when I try to use what I have learned. The weekly exercise assignments greatly help me to really understand how to implement the things we hear about during the lectures. This week’s exercises are much harder to solve then earlier weeks (would be strange if they […]

/ Comments Off on Week 3
Program: Programming

Week 3

This week’s lectures have mostly been focused on classes and using header files in visual studio. I find that I can keep up somewhat during the lectures, but have a bit of a challenge when I try to use what I have learned. The weekly exercise assignments greatly help me to really understand how to implement the things we hear about during the lectures. This week’s exercises are much harder to solve then earlier weeks (would be strange if they […]

/ Comments Off on Week 3
Program: Programming

Alumni Days 2014

Brjann Sigurgeirsson driver spelstudion Image & Form och berättar om sin mångåriga erfarenhet som indieutvecklare. Föreläsningen ges på göteborgska.

Jens Berglind and Peter Stråhle talks about the development of Shelter 2:

Nicodemus Mattisson berättar om sina erfarenheter av att jobba som frilans och erfarenheter att ta hjälp av en agent för att söka jobb.

Alumnipanelen: en panel full med prominenta alumner som diskuterar sina erfarenheter och svarar på frågor från studenter. I år höll vi till i Studentbaren Rindi.

November 29, 2014 / Comments Off on Alumni Days 2014

Alumni Days 2014

Brjann Sigurgeirsson driver spelstudion Image & Form och berättar om sin mångåriga erfarenhet som indieutvecklare. Föreläsningen ges på göteborgska.

Jens Berglind and Peter Stråhle talks about the development of Shelter 2:

Nicodemus Mattisson berättar om sina erfarenheter av att jobba som frilans och erfarenheter att ta hjälp av en agent för att söka jobb.

Alumnipanelen: en panel full med prominenta alumner som diskuterar sina erfarenheter och svarar på frågor från studenter. I år höll vi till i Studentbaren Rindi.

November 29, 2014 / Comments Off on Alumni Days 2014

// TemperatureConverter.h
#pragma once
class TemperatureConverter
{
public:
TemperatureConverter();
float CelsiusConvert(float& value, int& returnType);
float KelvinConvert(float& value, int& returnType);
float FahrenheitConvert(float& value, int& returnType);
};
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TemperatureConverter.cpp
#include
#include
#include ”TemperatureConverter.h”
TemperatureConverter::TemperatureConverter()
{
}
float TemperatureConverter::CelsiusConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return fahrenheit
{
return (value + 273.15f);
break;
}
case 2: // return Kelvin
{
return (value * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::KelvinConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return celsius
{
return (value – 273.15f);
break;
}
case 2: // return fahrenheit
{
return ((value – 273.15f) * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::FahrenheitConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: // return celsius
{
return ((value – 32) […]

/ Comments Off on
Program: Programming

// TemperatureConverter.h
#pragma once
class TemperatureConverter
{
public:
TemperatureConverter();
float CelsiusConvert(float& value, int& returnType);
float KelvinConvert(float& value, int& returnType);
float FahrenheitConvert(float& value, int& returnType);
};
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TemperatureConverter.cpp
#include
#include
#include ”TemperatureConverter.h”
TemperatureConverter::TemperatureConverter()
{
}
float TemperatureConverter::CelsiusConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return fahrenheit
{
return (value + 273.15f);
break;
}
case 2: // return Kelvin
{
return (value * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::KelvinConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return celsius
{
return (value – 273.15f);
break;
}
case 2: // return fahrenheit
{
return ((value – 273.15f) * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::FahrenheitConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: // return celsius
{
return ((value – 32) […]

/ Comments Off on
Program: Programming

Programming week 3 – Classes

This week we have been going through Classes and Class Inheritance. which felt like an easier concept to grasp than the previous, since we had already been working with this a bit when creating ”Pong” earlier in the course.
Classes are just like variables different data structures that can be called within the main function, they can have different functions inside of them. That way we can use classes to reduce the amount of code we have to write, making it […]

/ Comments Off on Programming week 3 – Classes
Program: Programming

Programming week 3 – Classes

This week we have been going through Classes and Class Inheritance. which felt like an easier concept to grasp than the previous, since we had already been working with this a bit when creating ”Pong” earlier in the course.
Classes are just like variables different data structures that can be called within the main function, they can have different functions inside of them. That way we can use classes to reduce the amount of code we have to write, making it […]

/ Comments Off on Programming week 3 – Classes
Program: Programming

Programming week 3 – Classes

This week we have been going through Classes and Class Inheritance. which felt like an easier concept to grasp than the previous, since we had already been working with this a bit when creating ”Pong” earlier in the course.
Classes are just like variables different data structures that can be called within the main function, they can have different functions inside of them. That way we can use classes to reduce the amount of code we have to write, making it […]

/ Comments Off on Programming week 3 – Classes
Program: Programming

Programming week 3 – Classes

This week we have been going through Classes and Class Inheritance. which felt like an easier concept to grasp than the previous, since we had already been working with this a bit when creating ”Pong” earlier in the course.
Classes are just like variables different data structures that can be called within the main function, they can have different functions inside of them. That way we can use classes to reduce the amount of code we have to write, making it […]

/ Comments Off on Programming week 3 – Classes
Program: Programming

BlogPosts[2] = new blogPost(3);

Hopefully this works now. Apparently my blog posts wasn’t showing up for some reason. I guess I just missed the right instructions or something. Anyways, this has been the result of week three:
It has been way too much and way too little at the same time. As I have programmed before the exercises seemed like a repetition of what I have already learned, but with some small changes in syntax, which was really annoying to find out about because there […]

/ Comments Off on BlogPosts[2] = new blogPost(3);
Program: Programming

BlogPosts[2] = new blogPost(3);

Hopefully this works now. Apparently my blog posts wasn’t showing up for some reason. I guess I just missed the right instructions or something. Anyways, this has been the result of week three:
It has been way too much and way too little at the same time. As I have programmed before the exercises seemed like a repetition of what I have already learned, but with some small changes in syntax, which was really annoying to find out about because there […]

/ Comments Off on BlogPosts[2] = new blogPost(3);
Program: Programming

Lots of lines.. Hello Perspective.

Hi again!
Last week was a difficult one. The lectures were held by Steven, who will be having a couple of our lectures along with Jerker and Pernilla. He introduced us to perspective drawing. The art of having a relation between the objects in the picture. How do you show that the car is on the ground up close, and how do you show that an airplane is flying of towards the horizon? By mastering perspective, you master how the viewer […]

/ Comments Off on Lots of lines.. Hello Perspective.
Program: Graphics

Lots of lines.. Hello Perspective.

Hi again!
Last week was a difficult one. The lectures were held by Steven, who will be having a couple of our lectures along with Jerker and Pernilla. He introduced us to perspective drawing. The art of having a relation between the objects in the picture. How do you show that the car is on the ground up close, and how do you show that an airplane is flying of towards the horizon? By mastering perspective, you master how the viewer […]

/ Comments Off on Lots of lines.. Hello Perspective.
Program: Graphics