Browsing 'Programming': Posts from Game Design and Programming
And Happy New Year
Last time I wrote something here I was having issues with what I thought was a memory leak, so this week I decided to take the chance while home in Stockholm and asked my father for assistance.
To debug we went through the existing code, seeking through it piece by piece until we found where exactly everything broke. After having traced the code back through the DrawManager we realized that m_sprite, the intended source of the sprite, was for some reason […]
And Happy New Year
Last time I wrote something here I was having issues with what I thought was a memory leak, so this week I decided to take the chance while home in Stockholm and asked my father for assistance.
To debug we went through the existing code, seeking through it piece by piece until we found where exactly everything broke. After having traced the code back through the DrawManager we realized that m_sprite, the intended source of the sprite, was for some reason […]
And Happy New Year
Last time I wrote something here I was having issues with what I thought was a memory leak, so this week I decided to take the chance while home in Stockholm and asked my father for assistance.
To debug we went through the existing code, seeking through it piece by piece until we found where exactly everything broke. After having traced the code back through the DrawManager we realized that m_sprite, the intended source of the sprite, was for some reason […]
And Happy New Year
Last time I wrote something here I was having issues with what I thought was a memory leak, so this week I decided to take the chance while home in Stockholm and asked my father for assistance.
To debug we went through the existing code, seeking through it piece by piece until we found where exactly everything broke. After having traced the code back through the DrawManager we realized that m_sprite, the intended source of the sprite, was for some reason […]
What’s that in the distance? progress?
Today was a pretty bad day but it did turn out decent after all.
I was feeling a bit under the weather today so I didn’t get much done but i did have a talk with Martin during the afternoon. I managed to get the answers to what i was looking for regarding where the “game loop” of the game was to be placed and now that i know that i know where to start placing the code for game logic.
We […]
What’s that in the distance? progress?
Today was a pretty bad day but it did turn out decent after all.
I was feeling a bit under the weather today so I didn’t get much done but i did have a talk with Martin during the afternoon. I managed to get the answers to what i was looking for regarding where the “game loop” of the game was to be placed and now that i know that i know where to start placing the code for game logic.
We […]
Beginning of Space Invaders Clone
I have started with the final project during this course. The assignment is to make a clone of an existing game like Tetris or Pacman in c++ using the SDL library. I work together with another person in my class, and we choose creating a Space invaders clone as our project. We choose this game because it seemed to fit our level of skill in programming, we both have limited experience and Space Invaders seemed to be less complex compared […]
Beginning of Space Invaders Clone
I have started with the final project during this course. The assignment is to make a clone of an existing game like Tetris or Pacman in c++ using the SDL library. I work together with another person in my class, and we choose creating a Space invaders clone as our project. We choose this game because it seemed to fit our level of skill in programming, we both have limited experience and Space Invaders seemed to be less complex compared […]
Beginning of Space Invaders Clone
I have started with the final project during this course. The assignment is to make a clone of an existing game like Tetris or Pacman in c++ using the SDL library. I work together with another person in my class, and we choose creating a Space invaders clone as our project. We choose this game because it seemed to fit our level of skill in programming, we both have limited experience and Space Invaders seemed to be less complex compared […]
Beginning of Space Invaders Clone
I have started with the final project during this course. The assignment is to make a clone of an existing game like Tetris or Pacman in c++ using the SDL library. I work together with another person in my class, and we choose creating a Space invaders clone as our project. We choose this game because it seemed to fit our level of skill in programming, we both have limited experience and Space Invaders seemed to be less complex compared […]

Mario Clone Update
This update will show how far I have come in my mario clone. Currently I only have a mario character that can move left and right and jump. If he falls off he resets at the starting position.
This image shows how the game looks so far, as you can see its pretty empty and I still haven’t fixed sdl_image so my sprites aren’t transparent. There are also no animations yet. The jump feels floaty which is a thing that I […]

Mario Clone Update
This update will show how far I have come in my mario clone. Currently I only have a mario character that can move left and right and jump. If he falls off he resets at the starting position.
This image shows how the game looks so far, as you can see its pretty empty and I still haven’t fixed sdl_image so my sprites aren’t transparent. There are also no animations yet. The jump feels floaty which is a thing that I […]

Mario Clone Update
This update will show how far I have come in my mario clone. Currently I only have a mario character that can move left and right and jump. If he falls off he resets at the starting position.
This image shows how the game looks so far, as you can see its pretty empty and I still haven’t fixed sdl_image so my sprites aren’t transparent. There are also no animations yet. The jump feels floaty which is a thing that I […]

Mario Clone Update
This update will show how far I have come in my mario clone. Currently I only have a mario character that can move left and right and jump. If he falls off he resets at the starting position.
This image shows how the game looks so far, as you can see its pretty empty and I still haven’t fixed sdl_image so my sprites aren’t transparent. There are also no animations yet. The jump feels floaty which is a thing that I […]
Happy new year! I worked today!
We took yesterday off but today i started some work on this week’s schedule.
On it i have work on collision, handling inputs and assisting Martin with the drawing of object.
Today i studied how to handle inputs for the game and i think i figured out how to solve it but i will need some advice from Martin on where to set up the different states and objects. The engine itself seems to be able to handle inputs without too much […]
Happy new year! I worked today!
We took yesterday off but today i started some work on this week’s schedule.
On it i have work on collision, handling inputs and assisting Martin with the drawing of object.
Today i studied how to handle inputs for the game and i think i figured out how to solve it but i will need some advice from Martin on where to set up the different states and objects. The engine itself seems to be able to handle inputs without too much […]

28.12.14
Det går inte precis snabbt fram det här arbetet, speciellt inte nu när det har varit jul och jag har inte haft tid att sitta och plugga då jag har umgåtts med familjen. Men idag fokuserade jag på sprites.
Så nu har jag en sprite som rör sig från mitten och mot höger, ska fortsätta så jag får den att röra sig i det mönstret som de gör i orginalet innan jag lägger till resten.

28.12.14
Det går inte precis snabbt fram det här arbetet, speciellt inte nu när det har varit jul och jag har inte haft tid att sitta och plugga då jag har umgåtts med familjen. Men idag fokuserade jag på sprites.
Så nu har jag en sprite som rör sig från mitten och mot höger, ska fortsätta så jag får den att röra sig i det mönstret som de gör i orginalet innan jag lägger till resten.
Three days of track manager
Three days without a blog post but our work efforts are starting to take shape. The efforts that is, the results are still a bit lacking.
My work for the last three days have mainly been to get the track manager built properly.
The track manager creates the individual segments of the straight pipe which makes up our track, make sure they are created in the right position, that they move backwards towards the camera and finally that they are […]
Three days of track manager
Three days without a blog post but our work efforts are starting to take shape. The efforts that is, the results are still a bit lacking.
My work for the last three days have mainly been to get the track manager built properly.
The track manager creates the individual segments of the straight pipe which makes up our track, make sure they are created in the right position, that they move backwards towards the camera and finally that they are […]
Programming: several C++ container classes
In our live Arkanoid coding sessions, we used several standard C++ container classes. I am going to describe them in this post.
std::pair
An array contains multiple elements of the same type. Sometimes, however, it is useful to hold two objects (possibly of different types) as a single entity. For this purpose, we use the std::pair
container.
Below is a table with basic personal data:
Id
Name
100
John
It is natural to group Id and Name and refer to them as a single object within the […]
Programming: several C++ container classes
In our live Arkanoid coding sessions, we used several standard C++ container classes. I am going to describe them in this post.
std::pair
An array contains multiple elements of the same type. Sometimes, however, it is useful to hold two objects (possibly of different types) as a single entity. For this purpose, we use the std::pair
container.
Below is a table with basic personal data:
Id
Name
100
John
It is natural to group Id and Name and refer to them as a single object within the […]
GameProgramming 1 – Week 6
More advanced collision and animations. The rest used to really get started with the project work.
Animations was basic, well I say basic but everything we learn right now is technically basic but from our perspective it is not, it was about loading the duration, position and size of each picture from a text file and then letting the program show them. You have a sprite sheet that shows a figure and then you figure out the position and size of […]
GameProgramming 1 – Week 6
More advanced collision and animations. The rest used to really get started with the project work.
Animations was basic, well I say basic but everything we learn right now is technically basic but from our perspective it is not, it was about loading the duration, position and size of each picture from a text file and then letting the program show them. You have a sprite sheet that shows a figure and then you figure out the position and size of […]