Daily Archives: November 21, 2014

Game programming I – Week 2

This week we have started to learn about and work with Arrays, Functions, Strings, Pointers and we’ve also discussed Memory and the two types of memory – stack and heap.
Stack memory is the general type of memory which is allocated automatically, heap memory is allocated and deallocated by the programmer. Memory leakage is when the stack memory is not correctly deallocated and is the biggest reason for games and other programs crashing as they are hard to remember and easy to […]

/ Comments Off on Game programming I – Week 2
Program: Programming

Game programming I – Week 2

This week we have started to learn about and work with Arrays, Functions, Strings, Pointers and we’ve also discussed Memory and the two types of memory – stack and heap.
Stack memory is the general type of memory which is allocated automatically, heap memory is allocated and deallocated by the programmer. Memory leakage is when the stack memory is not correctly deallocated and is the biggest reason for games and other programs crashing as they are hard to remember and easy to […]

/ Comments Off on Game programming I – Week 2
Program: Programming

Game programming I – Week 2

This week we have started to learn about and work with Arrays, Functions, Strings, Pointers and we’ve also discussed Memory and the two types of memory – stack and heap.
Stack memory is the general type of memory which is allocated automatically, heap memory is allocated and deallocated by the programmer. Memory leakage is when the stack memory is not correctly deallocated and is the biggest reason for games and other programs crashing as they are hard to remember and easy to […]

/ Comments Off on Game programming I – Week 2
Program: Programming

Game programming I – Week 2

This week we have started to learn about and work with Arrays, Functions, Strings, Pointers and we’ve also discussed Memory and the two types of memory – stack and heap.
Stack memory is the general type of memory which is allocated automatically, heap memory is allocated and deallocated by the programmer. Memory leakage is when the stack memory is not correctly deallocated and is the biggest reason for games and other programs crashing as they are hard to remember and easy to […]

/ Comments Off on Game programming I – Week 2
Program: Programming

Game programming wk.2

I thought that week one was intensive until we started week two. In five days we managed to learn functions, pointers and then jump straight in SDL() and make Pong.
While doing that we got to learn a new data structure called struct, struct is a group of data elements, these elements called members. Using struct increased efficiency when creating similar instances of a class or a struct.

struct Paddle

{

float x,y; //The X and Y coordinates of the paddle

//An array that has […]

/ Comments Off on Game programming wk.2
Program: Programming

Game programming wk.2

I thought that week one was intensive until we started week two. In five days we managed to learn functions, pointers and then jump straight in SDL() and make Pong.
While doing that we got to learn a new data structure called struct, struct is a group of data elements, these elements called members. Using struct increased efficiency when creating similar instances of a class or a struct.

struct Paddle

{

float x,y; //The X and Y coordinates of the paddle

//An array that has […]

/ Comments Off on Game programming wk.2
Program: Programming

Second week of programming, Introduction to SDL.

So the second week of C++ programming has gone by, this has been a lot more difficult with a lot more things to learn. Including dynamic memory and pointers. We have also made a pong game using the SDL library, or well we did not do it from scratch. We followed our teachers instructions.
Here is some examples of what we have learned, that i did not know before.
& is a pointer for a specific variables memory address.
* points at the […]

/ Comments Off on Second week of programming, Introduction to SDL.
Program: Programming

Second week of programming, Introduction to SDL.

So the second week of C++ programming has gone by, this has been a lot more difficult with a lot more things to learn. Including dynamic memory and pointers. We have also made a pong game using the SDL library, or well we did not do it from scratch. We followed our teachers instructions.
Here is some examples of what we have learned, that i did not know before.
& is a pointer for a specific variables memory address.
* points at the […]

/ Comments Off on Second week of programming, Introduction to SDL.
Program: Programming

Second week of programming, Introduction to SDL.

So the second week of C++ programming has gone by, this has been a lot more difficult with a lot more things to learn. Including dynamic memory and pointers. We have also made a pong game using the SDL library, or well we did not do it from scratch. We followed our teachers instructions.
Here is some examples of what we have learned, that i did not know before.
& is a pointer for a specific variables memory address.
* points at the […]

/ Comments Off on Second week of programming, Introduction to SDL.
Program: Programming

Second week of programming, Introduction to SDL.

So the second week of C++ programming has gone by, this has been a lot more difficult with a lot more things to learn. Including dynamic memory and pointers. We have also made a pong game using the SDL library, or well we did not do it from scratch. We followed our teachers instructions.
Here is some examples of what we have learned, that i did not know before.
& is a pointer for a specific variables memory address.
* points at the […]

/ Comments Off on Second week of programming, Introduction to SDL.
Program: Programming

Sorting Arrays

This is the second week of this course and we are still moving in a fast pace. My prior experience with programming in Java (four years ago) helped me to keep up during the first week, but this week’s assignments were a challenge for me.
One of these assignments were to sort an array filled with randomly generated numbers. There are many different ways you can sort an array in C++, each with benefits and disadvantages. The first method I tried […]

/ Comments Off on Sorting Arrays
Program: Programming

Sorting Arrays

This is the second week of this course and we are still moving in a fast pace. My prior experience with programming in Java (four years ago) helped me to keep up during the first week, but this week’s assignments were a challenge for me.
One of these assignments were to sort an array filled with randomly generated numbers. There are many different ways you can sort an array in C++, each with benefits and disadvantages. The first method I tried […]

/ Comments Off on Sorting Arrays
Program: Programming

Sorting Arrays

This is the second week of this course and we are still moving in a fast pace. My prior experience with programming in Java (four years ago) helped me to keep up during the first week, but this week’s assignments were a challenge for me.
One of these assignments were to sort an array filled with randomly generated numbers. There are many different ways you can sort an array in C++, each with benefits and disadvantages. The first method I tried […]

/ Comments Off on Sorting Arrays
Program: Programming

Sorting Arrays

This is the second week of this course and we are still moving in a fast pace. My prior experience with programming in Java (four years ago) helped me to keep up during the first week, but this week’s assignments were a challenge for me.
One of these assignments were to sort an array filled with randomly generated numbers. There are many different ways you can sort an array in C++, each with benefits and disadvantages. The first method I tried […]

/ Comments Off on Sorting Arrays
Program: Programming

Spelprogrammering III – 2nd Post

This week we’ve been working on creating a UDP Chatprogram, as a part of learning the class basic network coding.
In a nutshell, the program we are creating uses UDP to send packets of data to one and another containing messages using the console (It’s a mess when you get 26 people to do this at once though).
I’ll just dedicate this little bloggpost to what I’ve been learning, as I’ve been trying to define what everything is, and what everything does […]

/ Comments Off on Spelprogrammering III – 2nd Post
Program: Programming

Spelprogrammering III – 2nd Post

This week we’ve been working on creating a UDP Chatprogram, as a part of learning the class basic network coding.
In a nutshell, the program we are creating uses UDP to send packets of data to one and another containing messages using the console (It’s a mess when you get 26 people to do this at once though).
I’ll just dedicate this little bloggpost to what I’ve been learning, as I’ve been trying to define what everything is, and what everything does […]

/ Comments Off on Spelprogrammering III – 2nd Post
Program: Programming

Start of the 2D course

Last week, the 2D course started here at Campus Gotland – oh the joy! We started off by spending a couple of days life drawing, and reading about how to catch the “essence of a pose”. I’ve been doing some life drawing before I started here, but this is the first time I understood that the most important thing is not to “copy” the model in front of you, but to draw the feeling, the esesnce, of the pose. Starting […]

/ Comments Off on Start of the 2D course
Program: Graphics

Start of the 2D course

Last week, the 2D course started here at Campus Gotland – oh the joy! We started off by spending a couple of days life drawing, and reading about how to catch the “essence of a pose”. I’ve been doing some life drawing before I started here, but this is the first time I understood that the most important thing is not to “copy” the model in front of you, but to draw the feeling, the esesnce, of the pose. Starting […]

/ Comments Off on Start of the 2D course
Program: Graphics

Andra veckan med progg

Denna vecka gick vi igenom arrays, pointers och minnen.
VI fick reda på olika typer av arrays och hur pointers och minnen fungerade.
Under torsdagen och fredagen hade vi våra första föreläsningar om hur man gör ett spel med ”grafik”. Spelet var pong ett av de enklare spelen. Det kan även nämnas att bara för att mekaniken är enkel så kan koden bakom det bli lite komplicerat. Det är objekt som ska interagera med varandra och kolidera.
Vi gick igenom koden för att […]

/ Comments Off on Andra veckan med progg
Program: Programming

Andra veckan med progg

Denna vecka gick vi igenom arrays, pointers och minnen.
VI fick reda på olika typer av arrays och hur pointers och minnen fungerade.
Under torsdagen och fredagen hade vi våra första föreläsningar om hur man gör ett spel med ”grafik”. Spelet var pong ett av de enklare spelen. Det kan även nämnas att bara för att mekaniken är enkel så kan koden bakom det bli lite komplicerat. Det är objekt som ska interagera med varandra och kolidera.
Vi gick igenom koden för att […]

/ Comments Off on Andra veckan med progg
Program: Programming

GAME PROGRAMMING I: WEEK TWO

This week we went over the following:

Functions
Arrays
String
Memory
Pointers
Dynamic Memory

We are still covering material that I had previously learned from my earier educations, but it is nice to get a reminder of how it all works and a refresher of how to use them.
We also made a version of Pong, our first game of the course. Pong, for those that do not know, is a game played by two people who each control a paddle on either side of the screen. The object […]

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

GAME PROGRAMMING I: WEEK TWO

This week we went over the following:

Functions
Arrays
String
Memory
Pointers
Dynamic Memory

We are still covering material that I had previously learned from my earier educations, but it is nice to get a reminder of how it all works and a refresher of how to use them.
We also made a version of Pong, our first game of the course. Pong, for those that do not know, is a game played by two people who each control a paddle on either side of the screen. The object […]

/ Comments Off on GAME PROGRAMMING I: WEEK TWO
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