Browsing 'Programming': Posts from Game Design and Programming

Has the entertainment industry gone too far?
Today was an ordinary day where I finally had some spare time on my hands and decided to watch a movie. I don’t know what came over me but I wanted to watch the “How to train your dragon 2″- Movie as I really liked the first one I watched and I have been thinking about watching this one for a while.
Everything was all well en good but this time I was watching this movie in a different way, I […]

Has the entertainment industry gone too far?
Today was an ordinary day where I finally had some spare time on my hands and decided to watch a movie. I don’t know what came over me but I wanted to watch the “How to train your dragon 2″- Movie as I really liked the first one I watched and I have been thinking about watching this one for a while.
Everything was all well en good but this time I was watching this movie in a different way, I […]
The looping sound of progress.
Today was a better day, i made a lot of progress.
I worked until lunch with adding the functionality of the class.
During the day i realized that having a number sent in while adding numbers to the list was not a good solution for when i sent in single numbers later. Because if this is reworked the function to instead go through the exciting nodes in order to find the right place in the list. I found that drawing a diagram […]
The looping sound of progress.
Today was a better day, i made a lot of progress.
I worked until lunch with adding the functionality of the class.
During the day i realized that having a number sent in while adding numbers to the list was not a good solution for when i sent in single numbers later. Because if this is reworked the function to instead go through the exciting nodes in order to find the right place in the list. I found that drawing a diagram […]
Pong!
The end of the second week of Game Programming I and our lecturer guided the class in putting together basic, two-player Pong during a two-day intensive workshop. In this project we’ve gone beyond the scope of what we’ve covered so far in the course, which has no programming prerequisites, so it’s right into the deep end!
Collision in this version is rough:
The ball can sometimes get “stuck” against the paddle. The collision programming negates the direction but the ball sometimes doesn’t […]
Pong!
The end of the second week of Game Programming I and our lecturer guided the class in putting together basic, two-player Pong during a two-day intensive workshop. In this project we’ve gone beyond the scope of what we’ve covered so far in the course, which has no programming prerequisites, so it’s right into the deep end!
Collision in this version is rough:
The ball can sometimes get “stuck” against the paddle. The collision programming negates the direction but the ball sometimes doesn’t […]

Squash (pong mod)
This is sort of a late blog post due to a busy weekend, so I’m posting now.
(Sorry if the language is confusing somewhere)
Last week we learned some fundamentals of programming by creating the simple game Pong. Allthough the simplicity I think I’ve learned alot from that!
I’ve been tweeking around on the Pong-code we did and made my own little game: Squash (it’s not complete though)
So basically, the mechanics are kind of the same as Pong, but instead of having […]

Squash (pong mod)
This is sort of a late blog post due to a busy weekend, so I’m posting now.
(Sorry if the language is confusing somewhere)
Last week we learned some fundamentals of programming by creating the simple game Pong. Allthough the simplicity I think I’ve learned alot from that!
I’ve been tweeking around on the Pong-code we did and made my own little game: Squash (it’s not complete though)
So basically, the mechanics are kind of the same as Pong, but instead of having […]

Squash (pong mod)
This is sort of a late blog post due to a busy weekend, so I’m posting now.
(Sorry if the language is confusing somewhere)
Last week we learned some fundamentals of programming by creating the simple game Pong. Allthough the simplicity I think I’ve learned alot from that!
I’ve been tweeking around on the Pong-code we did and made my own little game: Squash (it’s not complete though)
So basically, the mechanics are kind of the same as Pong, but instead of having […]

Squash (pong mod)
This is sort of a late blog post due to a busy weekend, so I’m posting now.
(Sorry if the language is confusing somewhere)
Last week we learned some fundamentals of programming by creating the simple game Pong. Allthough the simplicity I think I’ve learned alot from that!
I’ve been tweeking around on the Pong-code we did and made my own little game: Squash (it’s not complete though)
So basically, the mechanics are kind of the same as Pong, but instead of having […]
Working on assignment. Finally.
This week I realized i was actually really behind on my assignments, therefore i will be working on them fully from now on since we’re done with the group reports.
Today i got up early (normally) and went down to the Game room to work before lunch. Working down there let me make some actual progress in my LinkedList assignment.
The issues i had been having was related to setting up the structure for generic programming when using a separate header file. […]
Working on assignment. Finally.
This week I realized i was actually really behind on my assignments, therefore i will be working on them fully from now on since we’re done with the group reports.
Today i got up early (normally) and went down to the Game room to work before lunch. Working down there let me make some actual progress in my LinkedList assignment.
The issues i had been having was related to setting up the structure for generic programming when using a separate header file. […]
Second Week of Programming: Making Pong and Doing extra work with Classes
Since I’m going back to Stockholm during week 3’s classes, I asked for the assignments in advance so I could brush up on my old C++ knowledge.
Firstly though, we made pong with SDL(Simple Directmedia Library). A programming library is a set of predefined functions and classes which can aid you in different ways. If I want to make a game, I don’t necessarily need to know how to program the graphics card, but SDL do and helps me with that […]
Second Week of Programming: Making Pong and Doing extra work with Classes
Since I’m going back to Stockholm during week 3’s classes, I asked for the assignments in advance so I could brush up on my old C++ knowledge.
Firstly though, we made pong with SDL(Simple Directmedia Library). A programming library is a set of predefined functions and classes which can aid you in different ways. If I want to make a game, I don’t necessarily need to know how to program the graphics card, but SDL do and helps me with that […]
Pointers and Pong with SDL
Second week the programming course, this week the lectures been about arrays, pointers and how to handle RAM, and this is something I’ve had some trouble getting my head around in the past, pointers and memory allocation that is. I’ve worked with pointers and the new- and delete operators, in the past but never really understood how they work, how I use them or why I should use them.
So if I understood everything right, this is what I’ve learned:
Every time […]
Pointers and Pong with SDL
Second week the programming course, this week the lectures been about arrays, pointers and how to handle RAM, and this is something I’ve had some trouble getting my head around in the past, pointers and memory allocation that is. I’ve worked with pointers and the new- and delete operators, in the past but never really understood how they work, how I use them or why I should use them.
So if I understood everything right, this is what I’ve learned:
Every time […]
Pointers and Pong with SDL
Second week the programming course, this week the lectures been about arrays, pointers and how to handle RAM, and this is something I’ve had some trouble getting my head around in the past, pointers and memory allocation that is. I’ve worked with pointers and the new- and delete operators, in the past but never really understood how they work, how I use them or why I should use them.
So if I understood everything right, this is what I’ve learned:
Every time […]
Pointers and Pong with SDL
Second week the programming course, this week the lectures been about arrays, pointers and how to handle RAM, and this is something I’ve had some trouble getting my head around in the past, pointers and memory allocation that is. I’ve worked with pointers and the new- and delete operators, in the past but never really understood how they work, how I use them or why I should use them.
So if I understood everything right, this is what I’ve learned:
Every time […]

Programming – Week 2
Another week of programming has come to an end, and LOTS of new things has been introduced. We have been introduced to functions, arrays, references and pointers, how to use rand and srand to produce a random number. As you can see, lots of things. During thursday and friday we also had a workshop where we went through the code for the classic game Pong. This was done by using Visual Studio and SDL, which stands for Standard Digital media Library.
In the […]

Programming – Week 2
Another week of programming has come to an end, and LOTS of new things has been introduced. We have been introduced to functions, arrays, references and pointers, how to use rand and srand to produce a random number. As you can see, lots of things. During thursday and friday we also had a workshop where we went through the code for the classic game Pong. This was done by using Visual Studio and SDL, which stands for Standard Digital media Library.
In the […]

Programming – Week 2
Another week of programming has come to an end, and LOTS of new things has been introduced. We have been introduced to functions, arrays, references and pointers, how to use rand and srand to produce a random number. As you can see, lots of things. During thursday and friday we also had a workshop where we went through the code for the classic game Pong. This was done by using Visual Studio and SDL, which stands for Standard Digital media Library.
In the […]

Programming – Week 2
Another week of programming has come to an end, and LOTS of new things has been introduced. We have been introduced to functions, arrays, references and pointers, how to use rand and srand to produce a random number. As you can see, lots of things. During thursday and friday we also had a workshop where we went through the code for the classic game Pong. This was done by using Visual Studio and SDL, which stands for Standard Digital media Library.
In the […]
Week of fail
Have been trying to get the DirectX 11 to work with visual studio. somehow I couldn’t open the #pragma comment (lib, “d3dx11.lib”). something I really need. I later fixed it but got another error, LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup. Found the problem later on, had to change the subsystem in the properties. More than that, I just read up on the different functions I will be using in DirectX.
Also this week I tried to download […]
Week of fail
Have been trying to get the DirectX 11 to work with visual studio. somehow I couldn’t open the #pragma comment (lib, “d3dx11.lib”). something I really need. I later fixed it but got another error, LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup. Found the problem later on, had to change the subsystem in the properties. More than that, I just read up on the different functions I will be using in DirectX.
Also this week I tried to download […]