Author Archives: Olle Staffas

About Olle Staffas

2014  Programming

Week 5 of game programming – Arkanoid continued

This week we kept on working with arkanoid. We added sprites to the game and made the ball move. Since the game took longer to make than expected, our teacher Tommi wrote the complete game and then went through the changes he had done. The biggest difference in his complete game compared to our incomplete game was that it, apart from actually working, had collision in it. Collision is a really tricky thing in programming, and even experienced programmers can […]

/ Comments Off on Week 5 of game programming – Arkanoid continued
Program: Programming

Week 5 of game programming – Arkanoid continued

This week we kept on working with arkanoid. We added sprites to the game and made the ball move. Since the game took longer to make than expected, our teacher Tommi wrote the complete game and then went through the changes he had done. The biggest difference in his complete game compared to our incomplete game was that it, apart from actually working, had collision in it. Collision is a really tricky thing in programming, and even experienced programmers can […]

/ Comments Off on Week 5 of game programming – Arkanoid continued
Program: Programming

Week 4 of game programming – Arkanoid

This week, we’ve been working on creating another game using SDL. Last time we created Pong, now we will create Arkanoid, writing even more of the code ourselves. So far this week we’ve created an engine for our game, statemanager, the different states, started mouse controls, started keyboard controls and we’ve also created draw files that will help us draw everything needed for the game onto the application. That’s about as much as we managed to complete this week, we’ll […]

/ Comments Off on Week 4 of game programming – Arkanoid
Program: Programming

Week 4 of game programming – Arkanoid

This week, we’ve been working on creating another game using SDL. Last time we created Pong, now we will create Arkanoid, writing even more of the code ourselves. So far this week we’ve created an engine for our game, statemanager, the different states, started mouse controls, started keyboard controls and we’ve also created draw files that will help us draw everything needed for the game onto the application. That’s about as much as we managed to complete this week, we’ll […]

/ Comments Off on Week 4 of game programming – Arkanoid
Program: Programming

Week 4 of game programming – Arkanoid

This week, we’ve been working on creating another game using SDL. Last time we created Pong, now we will create Arkanoid, writing even more of the code ourselves. So far this week we’ve created an engine for our game, statemanager, the different states, started mouse controls, started keyboard controls and we’ve also created draw files that will help us draw everything needed for the game onto the application. That’s about as much as we managed to complete this week, we’ll […]

/ Comments Off on Week 4 of game programming – Arkanoid
Program: Programming

Week 4 of game programming – Arkanoid

This week, we’ve been working on creating another game using SDL. Last time we created Pong, now we will create Arkanoid, writing even more of the code ourselves. So far this week we’ve created an engine for our game, statemanager, the different states, started mouse controls, started keyboard controls and we’ve also created draw files that will help us draw everything needed for the game onto the application. That’s about as much as we managed to complete this week, we’ll […]

/ Comments Off on Week 4 of game programming – Arkanoid
Program: Programming

Game programming week 3 – Classes, classes, classes

This week in game programming, we’ve been going through classes a lot. A class is a data structure that apart from variables, also can contain functions. Therefore, a class is often used to store a lot of functions in, so they can be used again within the program without having to rewrite them. A class is created in a header-file, and then called to when it’s used in the ”int main” function call. We also went through class inheritance, which […]

/ Comments Off on Game programming week 3 – Classes, classes, classes
Program: Programming

Game programming week 3 – Classes, classes, classes

This week in game programming, we’ve been going through classes a lot. A class is a data structure that apart from variables, also can contain functions. Therefore, a class is often used to store a lot of functions in, so they can be used again within the program without having to rewrite them. A class is created in a header-file, and then called to when it’s used in the ”int main” function call. We also went through class inheritance, which […]

/ Comments Off on Game programming week 3 – Classes, classes, classes
Program: Programming

Game programming week 3 – Classes, classes, classes

This week in game programming, we’ve been going through classes a lot. A class is a data structure that apart from variables, also can contain functions. Therefore, a class is often used to store a lot of functions in, so they can be used again within the program without having to rewrite them. A class is created in a header-file, and then called to when it’s used in the ”int main” function call. We also went through class inheritance, which […]

/ Comments Off on Game programming week 3 – Classes, classes, classes
Program: Programming

Game programming week 3 – Classes, classes, classes

This week in game programming, we’ve been going through classes a lot. A class is a data structure that apart from variables, also can contain functions. Therefore, a class is often used to store a lot of functions in, so they can be used again within the program without having to rewrite them. A class is created in a header-file, and then called to when it’s used in the ”int main” function call. We also went through class inheritance, which […]

/ Comments Off on Game programming week 3 – Classes, classes, classes
Program: Programming

Week 2 in game programming

This week we were introduced to a few more things in C++. We learned how to use: functions, arrays, short introduction on how to use rand and srand to produce random values, std::string to print texts and had an introduction to pointers. The last 2 days we focused on creating our very first game from scratch. This was done with a 2 days workshop where our tutor, Tommi Lipponen, wrote code that we copied by writing the same code in […]

/ Comments Off on Week 2 in game programming
Program: Programming

Week 2 in game programming

This week we were introduced to a few more things in C++. We learned how to use: functions, arrays, short introduction on how to use rand and srand to produce random values, std::string to print texts and had an introduction to pointers. The last 2 days we focused on creating our very first game from scratch. This was done with a 2 days workshop where our tutor, Tommi Lipponen, wrote code that we copied by writing the same code in […]

/ Comments Off on Week 2 in game programming
Program: Programming

Week 2 in game programming

This week we were introduced to a few more things in C++. We learned how to use: functions, arrays, short introduction on how to use rand and srand to produce random values, std::string to print texts and had an introduction to pointers. The last 2 days we focused on creating our very first game from scratch. This was done with a 2 days workshop where our tutor, Tommi Lipponen, wrote code that we copied by writing the same code in […]

/ Comments Off on Week 2 in game programming
Program: Programming

Week 2 in game programming

This week we were introduced to a few more things in C++. We learned how to use: functions, arrays, short introduction on how to use rand and srand to produce random values, std::string to print texts and had an introduction to pointers. The last 2 days we focused on creating our very first game from scratch. This was done with a 2 days workshop where our tutor, Tommi Lipponen, wrote code that we copied by writing the same code in […]

/ Comments Off on Week 2 in game programming
Program: Programming

First week of programming

We started our programming course this week. After the introduction this monday, we went through different variables this tuesday. After tuesday’s lesson, I did some of the practise exercises on my own. The problem came when I ended up with exercise 11. Here’s the description of exercise 11:

Let the user input two integer values.

Square the first variable and divide by the second.

Assign the result to a floating point variable.

Output the result

Compile and run

The issue with this exercise was that my […]

/ Comments Off on First week of programming
Program: Programming

First week of programming

We started our programming course this week. After the introduction this monday, we went through different variables this tuesday. After tuesday’s lesson, I did some of the practise exercises on my own. The problem came when I ended up with exercise 11. Here’s the description of exercise 11:

Let the user input two integer values.

Square the first variable and divide by the second.

Assign the result to a floating point variable.

Output the result

Compile and run

The issue with this exercise was that my […]

/ Comments Off on First week of programming
Program: Programming

First week of programming

We started our programming course this week. After the introduction this monday, we went through different variables this tuesday. After tuesday’s lesson, I did some of the practise exercises on my own. The problem came when I ended up with exercise 11. Here’s the description of exercise 11:

Let the user input two integer values.

Square the first variable and divide by the second.

Assign the result to a floating point variable.

Output the result

Compile and run

The issue with this exercise was that my […]

/ Comments Off on First week of programming
Program: Programming

First week of programming

We started our programming course this week. After the introduction this monday, we went through different variables this tuesday. After tuesday’s lesson, I did some of the practise exercises on my own. The problem came when I ended up with exercise 11. Here’s the description of exercise 11:

Let the user input two integer values.

Square the first variable and divide by the second.

Assign the result to a floating point variable.

Output the result

Compile and run

The issue with this exercise was that my […]

/ Comments Off on First week of programming
Program: Programming

Updates

So, we have now started our 5 weeks project where we are to build a functioning digital game, in theory. Our paper prototype was deemed good by our teacher, Marcus. He laughed quite a bit while playing it, and it felt like he thought the idea was good. We also managed to incorporate our keywords, Thurmaturgy and Summer well. Thurmaturgy as in our main character, our magician. Summer as in the design, taking place on a beach, with beach outfit. […]

/ Comments Off on Updates
Program: Programming

Updates

So, we have now started our 5 weeks project where we are to build a functioning digital game, in theory. Our paper prototype was deemed good by our teacher, Marcus. He laughed quite a bit while playing it, and it felt like he thought the idea was good. We also managed to incorporate our keywords, Thurmaturgy and Summer well. Thurmaturgy as in our main character, our magician. Summer as in the design, taking place on a beach, with beach outfit. […]

/ Comments Off on Updates
Program: Programming

Updates

So, we have now started our 5 weeks project where we are to build a functioning digital game, in theory. Our paper prototype was deemed good by our teacher, Marcus. He laughed quite a bit while playing it, and it felt like he thought the idea was good. We also managed to incorporate our keywords, Thurmaturgy and Summer well. Thurmaturgy as in our main character, our magician. Summer as in the design, taking place on a beach, with beach outfit. […]

/ Comments Off on Updates
Program: Programming

Updates

So, we have now started our 5 weeks project where we are to build a functioning digital game, in theory. Our paper prototype was deemed good by our teacher, Marcus. He laughed quite a bit while playing it, and it felt like he thought the idea was good. We also managed to incorporate our keywords, Thurmaturgy and Summer well. Thurmaturgy as in our main character, our magician. Summer as in the design, taking place on a beach, with beach outfit. […]

/ Comments Off on Updates
Program: Programming

Started reading the book Game programming in…

Started reading the book: ”Game programming in C++: Start to finish written by Erik Yuzwa. Only read about 40 pages so far, but it’s really a book I would recommend since it has already caught my attention, in a good way.

/ Comments Off on Started reading the book Game programming in…
Program: Programming

Started reading the book Game programming in…

Started reading the book: ”Game programming in C++: Start to finish written by Erik Yuzwa. Only read about 40 pages so far, but it’s really a book I would recommend since it has already caught my attention, in a good way.

/ Comments Off on Started reading the book Game programming in…
Program: Programming