Browsing 'Programming': Posts from Game Design and Programming
Maybe it is fine
We had a talk among the people in the group today and the good news is that Gustav won’t be leaving the group.
The bad news is that he’s still struggling to make the sound work and that i found out sound was a minimum requirement. Thankfully these two sort of worked each other out as Gustav hopefully should be able to finish the sound functionality before the end of the course. If nothing else it’ll keep me and Martin’s minds […]
Maybe it is fine
We had a talk among the people in the group today and the good news is that Gustav won’t be leaving the group.
The bad news is that he’s still struggling to make the sound work and that i found out sound was a minimum requirement. Thankfully these two sort of worked each other out as Gustav hopefully should be able to finish the sound functionality before the end of the course. If nothing else it’ll keep me and Martin’s minds […]
Frogger: Week 3
Hi Again!
Sorry for the long waiting for this post. I have been busy celebrating the holidays with friends and family. And therefore I have not been working to hard on this project.
But, right before the celebration started I managed to get my frog to move. My next steps is to create the cars and logs and make them move. I think this will not be a big deal, since I got my frog to move by pressing keys.
After this I […]
Frogger: Week 3
Hi Again!
Sorry for the long waiting for this post. I have been busy celebrating the holidays with friends and family. And therefore I have not been working to hard on this project.
But, right before the celebration started I managed to get my frog to move. My next steps is to create the cars and logs and make them move. I think this will not be a big deal, since I got my frog to move by pressing keys.
After this I […]
This is fine
Last night I sent out a request for a meeting today in the Skype group. No responses until I asked if they were okay this afternoon. I still went down to school all day today but the lack of any response hampered my morale and what i could do.
I did get what i set out to do done at least. Figure out how to actually take inputs into the program.
My issue was fairly simple but it took some digging to […]
This is fine
Last night I sent out a request for a meeting today in the Skype group. No responses until I asked if they were okay this afternoon. I still went down to school all day today but the lack of any response hampered my morale and what i could do.
I did get what i set out to do done at least. Figure out how to actually take inputs into the program.
My issue was fairly simple but it took some digging to […]
Week 5 – Arkanoid & Collision
This week we completed Arkanoid. The game is fully functional and the code is the code we are going to use for our own project. In the final version of Arkanoid, we implemented collision for the different objects in the game. The collision checks if an objects half width plus the other objects half width is bigger than one of the objects width. We also implented SpriteText, this is useful when you want to write out text on your screen.
We have […]
Week 5 – Arkanoid & Collision
This week we completed Arkanoid. The game is fully functional and the code is the code we are going to use for our own project. In the final version of Arkanoid, we implemented collision for the different objects in the game. The collision checks if an objects half width plus the other objects half width is bigger than one of the objects width. We also implented SpriteText, this is useful when you want to write out text on your screen.
We have […]
week 7: Boomberman Game movement
This week we started by finishing the map it printed out every thing and it looked good! The problem we had was minor. We had said that it should print out blocks solidblocks and background in the wrong order. This was fixxed easy by changing up in what order they was printed out in.
We also started working on movement. We managed to print out the player on screen and got him to walk. But we wanted our movement to be […]
week 7: Boomberman Game movement
This week we started by finishing the map it printed out every thing and it looked good! The problem we had was minor. We had said that it should print out blocks solidblocks and background in the wrong order. This was fixxed easy by changing up in what order they was printed out in.
We also started working on movement. We managed to print out the player on screen and got him to walk. But we wanted our movement to be […]
week 7: Boomberman Game movement
This week we started by finishing the map it printed out every thing and it looked good! The problem we had was minor. We had said that it should print out blocks solidblocks and background in the wrong order. This was fixxed easy by changing up in what order they was printed out in.
We also started working on movement. We managed to print out the player on screen and got him to walk. But we wanted our movement to be […]
week 7: Boomberman Game movement
This week we started by finishing the map it printed out every thing and it looked good! The problem we had was minor. We had said that it should print out blocks solidblocks and background in the wrong order. This was fixxed easy by changing up in what order they was printed out in.
We also started working on movement. We managed to print out the player on screen and got him to walk. But we wanted our movement to be […]
Programming: SDL2 Native functions (cont.)
In this post, I want to present remaining important SDL2 functions that were used in Araknoid coding sessions.
First, one more SDL object type.
SDL_Event
– a grouping of objects that refer to user input events. Objects of this type are declared by the programmer but are filled with meaningful data by a special function, SDL_PollEvent()
SDL_PollEvent()
SDL_PollEvent(&event)
In SDL, when the user moves a mouse, presses a key on the keyboard etc., an input event of appropriate type is added to the event queue. […]
Programming: SDL2 Native functions (cont.)
In this post, I want to present remaining important SDL2 functions that were used in Araknoid coding sessions.
First, one more SDL object type.
SDL_Event
– a grouping of objects that refer to user input events. Objects of this type are declared by the programmer but are filled with meaningful data by a special function, SDL_PollEvent()
SDL_PollEvent()
SDL_PollEvent(&event)
In SDL, when the user moves a mouse, presses a key on the keyboard etc., an input event of appropriate type is added to the event queue. […]
New year, new week, and a new console
My WiiU finally arrived in the mail today, wonderful. I might even have some time to play tonight after all the system update downloads are done; because tomorrow i return to town where i will probably stay until next Friday.
Had a good day today touched up on some of the collision and input logic. Most of it should be in now, when a specific button is pressed the game state calls a function of the corresponding player(currently all the players) […]
New year, new week, and a new console
My WiiU finally arrived in the mail today, wonderful. I might even have some time to play tonight after all the system update downloads are done; because tomorrow i return to town where i will probably stay until next Friday.
Had a good day today touched up on some of the collision and input logic. Most of it should be in now, when a specific button is pressed the game state calls a function of the corresponding player(currently all the players) […]

v.8
Denna vecka har jag jobbat lite mer med kollision. Jag försökte få till att när gubbe går in i en boll så ska bollen försvinna och att dom som är kvar inte längre har någon kollision, alltså att dom blir vanliga sprites igen. Det gick ingen vidare.
Jag försökte även göra rätt men som man kan se på bilden så var inte det så enkelt. Gubben är för liten och pokemonbollarna för stora.
Jag ska försöka fixa det så att jag kan […]

v.8
Denna vecka har jag jobbat lite mer med kollision. Jag försökte få till att när gubbe går in i en boll så ska bollen försvinna och att dom som är kvar inte längre har någon kollision, alltså att dom blir vanliga sprites igen. Det gick ingen vidare.
Jag försökte även göra rätt men som man kan se på bilden så var inte det så enkelt. Gubben är för liten och pokemonbollarna för stora.
Jag ska försöka fixa det så att jag kan […]

Programming: SDL2 Native Functions
We’re using SDL 2 library to create our first games. This library allows low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
In our first working game, Arkanoid, we used about 20 SDL2’s functions. I’m going to describe them in this post.
SDL_Init() and SDL_Quit()
SDL_Init(flags)
The two functions initialize and quit the SDL system, respectively. You have to initialize SDL to be able to make use of functions provided by the SDL or to quit it to […]

Programming: SDL2 Native Functions
We’re using SDL 2 library to create our first games. This library allows low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.
In our first working game, Arkanoid, we used about 20 SDL2’s functions. I’m going to describe them in this post.
SDL_Init() and SDL_Quit()
SDL_Init(flags)
The two functions initialize and quit the SDL system, respectively. You have to initialize SDL to be able to make use of functions provided by the SDL or to quit it to […]
Week 6 : Boomberman Game
This week we started working on the Map in the game, we made a new Class for SolidBlock. We decided to make the map from a .txt file so we could change the map how we wanted to.
We had loads of problem with getting the code to read from our text file. But then we got it to work by starting over again and review the code from the txt reader lesson.
We finally had our map printed out and when […]
Week 6 : Boomberman Game
This week we started working on the Map in the game, we made a new Class for SolidBlock. We decided to make the map from a .txt file so we could change the map how we wanted to.
We had loads of problem with getting the code to read from our text file. But then we got it to work by starting over again and review the code from the txt reader lesson.
We finally had our map printed out and when […]
Week 6 : Boomberman Game
This week we started working on the Map in the game, we made a new Class for SolidBlock. We decided to make the map from a .txt file so we could change the map how we wanted to.
We had loads of problem with getting the code to read from our text file. But then we got it to work by starting over again and review the code from the txt reader lesson.
We finally had our map printed out and when […]
Week 6 : Boomberman Game
This week we started working on the Map in the game, we made a new Class for SolidBlock. We decided to make the map from a .txt file so we could change the map how we wanted to.
We had loads of problem with getting the code to read from our text file. But then we got it to work by starting over again and review the code from the txt reader lesson.
We finally had our map printed out and when […]