Browsing 'Programming': Posts from Game Design and 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 […]
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 […]
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 […]
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 […]
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 […]
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 […]

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 […]

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 […]

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 […]

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 […]
Week 2: Learning, Progress and Confusion.
This week we have started to work with Arrays, Functions, Strings we have also touched a bit on Pointers and Memory. When I have been working on this weeks exercises I feel like I have learned a lot but I also feel really confused. I can’t really explain how I feel. I understand and at the same time I feel lost and like there is much that I don’t understand. I guess I am learning to code. We also had […]
Week 2: Learning, Progress and Confusion.
This week we have started to work with Arrays, Functions, Strings we have also touched a bit on Pointers and Memory. When I have been working on this weeks exercises I feel like I have learned a lot but I also feel really confused. I can’t really explain how I feel. I understand and at the same time I feel lost and like there is much that I don’t understand. I guess I am learning to code. We also had […]
Week 2: Learning, Progress and Confusion.
This week we have started to work with Arrays, Functions, Strings we have also touched a bit on Pointers and Memory. When I have been working on this weeks exercises I feel like I have learned a lot but I also feel really confused. I can’t really explain how I feel. I understand and at the same time I feel lost and like there is much that I don’t understand. I guess I am learning to code. We also had […]
Week 2: Learning, Progress and Confusion.
This week we have started to work with Arrays, Functions, Strings we have also touched a bit on Pointers and Memory. When I have been working on this weeks exercises I feel like I have learned a lot but I also feel really confused. I can’t really explain how I feel. I understand and at the same time I feel lost and like there is much that I don’t understand. I guess I am learning to code. We also had […]

Game Programming III – the second week, linked lists part three (3)
Hello again!
Let’s try to finish up the linked list. Last time I put up a completely functional linked list for integer variables. We now need to remake it into a list that can story data any type, in other words we need to make it generic.
There are a few things different about this version. First off we will need to write it all in the header file and not use any source file at all because we are […]

Game Programming III – the second week, linked lists part three (3)
Hello again!
Let’s try to finish up the linked list. Last time I put up a completely functional linked list for integer variables. We now need to remake it into a list that can story data any type, in other words we need to make it generic.
There are a few things different about this version. First off we will need to write it all in the header file and not use any source file at all because we are […]
Game Programming III – the second week, linked lists part three (3)
Hello again!
Let’s try to finish up the linked list. Last time I put up a completely functional linked list for integer variables. We now need to remake it into a list that can story data any type, in other words we need to make it generic.
There are a few things different about this version. First off we will need to write it all in the header file and not use any source file at all because we are making use […]
Game Programming III – the second week, linked lists part three (3)
Hello again!
Let’s try to finish up the linked list. Last time I put up a completely functional linked list for integer variables. We now need to remake it into a list that can story data any type, in other words we need to make it generic.
There are a few things different about this version. First off we will need to write it all in the header file and not use any source file at all because we are making use […]
Programming: Week 2
Arrays and functions … this has long become the “traditional” point in learning a programming language where I would quit it altogether. This was the case with Pascal like 12 years ago and then with C++ a few years ago.
But this time it’s serious – it’s part of formal studies so there’s no way I’m quitting now.
Ex. 1
Write a program that calls a function called Square. The function takes a float
parameter and returns its square (also a float
).
#include “stdafx.h”
#include “iostream”
float square(float a)
{
a = a*a;
return a;
}
int […]
Programming: Week 2
Arrays and functions … this has long become the “traditional” point in learning a programming language where I would quit it altogether. This was the case with Pascal like 12 years ago and then with C++ a few years ago.
But this time it’s serious – it’s part of formal studies so there’s no way I’m quitting now.
Ex. 1
Write a program that calls a function called Square. The function takes a float
parameter and returns its square (also a float
).
#include “stdafx.h”
#include “iostream”
float square(float a)
{
a = a*a;
return a;
}
int […]

Programming update
So here is the finished guessing game. I should have posted it way earlier because it already feels like I could do it better with the knowledge from the first lectures of this week. But I figure this is too basic a game to put any more time into, because regardless how perfect, it will always be a boring game to play.
#include
#include
#include
int random(int min, int max)
{
return min + (rand() % (max – min + 1));
}
int main(int […]

Programming update
So here is the finished guessing game. I should have posted it way earlier because it already feels like I could do it better with the knowledge from the first lectures of this week. But I figure this is too basic a game to put any more time into, because regardless how perfect, it will always be a boring game to play.
#include
#include
#include
int random(int min, int max)
{
return min + (rand() % (max – min + 1));
}
int main(int […]

Programming update
So here is the finished guessing game. I should have posted it way earlier because it already feels like I could do it better with the knowledge from the first lectures of this week. But I figure this is too basic a game to put any more time into, because regardless how perfect, it will always be a boring game to play.
#include
#include
#include
int random(int min, int max)
{
return min + (rand() % (max – min + 1));
}
int main(int […]

Programming update
So here is the finished guessing game. I should have posted it way earlier because it already feels like I could do it better with the knowledge from the first lectures of this week. But I figure this is too basic a game to put any more time into, because regardless how perfect, it will always be a boring game to play.
#include
#include
#include
int random(int min, int max)
{
return min + (rand() % (max – min + 1));
}
int main(int […]