Monthly Archives: January 2014

Sound effects

Yesterday, the 5th January I managed to create sound effects.
Since we will use audio like everywhere in our game I decided to initialize the sounds in main.cpp. It could also be initialized in engine but I choosed main for the simplicity, right now main is holding all the important initializes which I think is good practice.A class that manage SDL-only initializes could have been made but for this project I do not see why this shouldn’t be enough.
If you want […]

/ Comments Off on Sound effects
Program: Programming

Sound effects

Yesterday, the 5th January I managed to create sound effects.
Since we will use audio like everywhere in our game I decided to initialize the sounds in main.cpp. It could also be initialized in engine but I choosed main for the simplicity, right now main is holding all the important initializes which I think is good practice.A class that manage SDL-only initializes could have been made but for this project I do not see why this shouldn’t be enough.
If you want […]

/ Comments Off on Sound effects
Program: Programming

Frogger Dev. Post 15

Because of my lack of progress when it comes to the score output I decided today that I was going to focus on getting the sound done instead since it should (hopefully) take less time and I am more familiar with that sort of work. Once I am done with that I will see over if there isn’t anything else that abosultkey needs to be done before going back to the score output problems again.
I estimate that fixing sound should […]

/ Comments Off on Frogger Dev. Post 15
Program: Programming

Frogger Dev. Post 15

Because of my lack of progress when it comes to the score output I decided today that I was going to focus on getting the sound done instead since it should (hopefully) take less time and I am more familiar with that sort of work. Once I am done with that I will see over if there isn’t anything else that abosultkey needs to be done before going back to the score output problems again.
I estimate that fixing sound should […]

/ Comments Off on Frogger Dev. Post 15
Program: Programming

Day 11, What a mess!

The day started out well. I got some brilliant ideas about the code layout to get everything in order with the GameObjectManager so it could handle all kinds of GameObjects even from derived classes.My plan was to put all my created GameObjects, PlayerObject, BallObject, BrickObject in my vector.I think I coded for 8 hours non stop, changing bascilly all code to a more dynamic way.I must have been delusional because i went way ahead of my skill level and […]

/ Comments Off on Day 11, What a mess!
Program: Programming

Day 11, What a mess!

The day started out well. I got some brilliant ideas about the code layout to get everything in order with the GameObjectManager so it could handle all kinds of GameObjects even from derived classes.My plan was to put all my created GameObjects, PlayerObject, BallObject, BrickObject in my vector.I think I coded for 8 hours non stop, changing bascilly all code to a more dynamic way.I must have been delusional because i went way ahead of my skill level and […]

/ Comments Off on Day 11, What a mess!
Program: Programming

Almost forgot to post today

Nothing much today. Still trying to have the animated sprites drawn out. I went through the palttformer again and found that i had missed adding the Loadimage method in Spreiteman.cpp, however this was not the correct thing to do. I went through the code using breakpoints today with limited success until towards the end when i found out that that the method EnemyObject::AddAnimation wasn’t receiving the correct sprite and also that i must have missed something since the code seemed to […]

/ Comments Off on Almost forgot to post today
Program: Programming

Almost forgot to post today

Nothing much today. Still trying to have the animated sprites drawn out. I went through the palttformer again and found that i had missed adding the Loadimage method in Spreiteman.cpp, however this was not the correct thing to do. I went through the code using breakpoints today with limited success until towards the end when i found out that that the method EnemyObject::AddAnimation wasn’t receiving the correct sprite and also that i must have missed something since the code seemed to […]

/ Comments Off on Almost forgot to post today
Program: Programming

Frogger Dev. Post 14

Some work was done today. For starters, I did make some progress on the whole Score sriting thing. I did make a Text class which is a child clas of the Sprite class that I thought might be helpful, however, the Text class isn’t too different from the Sprite Class so I might drop this. Other than that, I started checking what I need to properly draw the text on screen. See, the problem now isn’t that I can’t launch […]

/ Comments Off on Frogger Dev. Post 14
Program: Programming

Frogger Dev. Post 14

Some work was done today. For starters, I did make some progress on the whole Score sriting thing. I did make a Text class which is a child clas of the Sprite class that I thought might be helpful, however, the Text class isn’t too different from the Sprite Class so I might drop this. Other than that, I started checking what I need to properly draw the text on screen. See, the problem now isn’t that I can’t launch […]

/ Comments Off on Frogger Dev. Post 14
Program: Programming

Text class

Today I have made the text class which will be used to present text in our game.

The class supports different fontFamilys, fontSizes and colors and can be placed anywhere on the screen.

Here is a picture of 2 text objects I use here.

Tomorrow I will start working on player score and lifes and also when you destroy a brick which is above level 1(the blue ones) that block should change its level and sprite to the level […]

/ Comments Off on Text class
Program: Programming

Text class

Today I have made the text class which will be used to present text in our game.

The class supports different fontFamilys, fontSizes and colors and can be placed anywhere on the screen.

Here is a picture of 2 text objects I use here.

Tomorrow I will start working on player score and lifes and also when you destroy a brick which is above level 1(the blue ones) that block should change its level and sprite to the level […]

/ Comments Off on Text class
Program: Programming

Stuck in every way

Yesturday we did nothing worth mentioning since Martin was packing for returning to Gotland and my brother had his birthday. 
We did pretty much the same thing as we did Thursday today. Martin is working on drawing text and i’m trying to add animations to objects. While i had limited success today using the code from the platformer i still didn’t manage to draw out the sprite, at least i didn’t accidentally make the collier draw out bigger or whatever i […]

/ Comments Off on Stuck in every way
Program: Programming

Stuck in every way

Yesturday we did nothing worth mentioning since Martin was packing for returning to Gotland and my brother had his birthday. 
We did pretty much the same thing as we did Thursday today. Martin is working on drawing text and i’m trying to add animations to objects. While i had limited success today using the code from the platformer i still didn’t manage to draw out the sprite, at least i didn’t accidentally make the collier draw out bigger or whatever i […]

/ Comments Off on Stuck in every way
Program: Programming

Game Programming I – day 12

Added a function to read the player start position from a txt-file.
I will attempt to move this to a separate class, right now it is written into the engine´s initialize.
Hopefully we will soon be able to load level objects and enemies onto the screen from a separate file as well.
We are also supposed to make a function that saves data from a game session to be used again later, in other words a function that writes to files.
Maybe we can […]

/ Comments Off on Game Programming I – day 12
Program: Programming

Game Programming I – day 12

Added a function to read the player start position from a txt-file.
I will attempt to move this to a separate class, right now it is written into the engine´s initialize.
Hopefully we will soon be able to load level objects and enemies onto the screen from a separate file as well.
We are also supposed to make a function that saves data from a game session to be used again later, in other words a function that writes to files.
Maybe we can […]

/ Comments Off on Game Programming I – day 12
Program: Programming

The fundamental design of Frogger


I haven’t really gotten around to anything yet. My mind is really all over the place. What I’ve narrowed down is Movement and some kind of collision. considering I want pixel perfekt collision isn’t not really necessarry in our game considering the game needs to be a bit easy on the “preciseness” but anywho I’ve looked into it at least. Other than that I’ve been reading alot on pathing and input for a while now. I will be starting […]

/ Comments Off on The fundamental design of Frogger
Program: Programming

The fundamental design of Frogger


I haven’t really gotten around to anything yet. My mind is really all over the place. What I’ve narrowed down is Movement and some kind of collision. considering I want pixel perfekt collision isn’t not really necessarry in our game considering the game needs to be a bit easy on the “preciseness” but anywho I’ve looked into it at least. Other than that I’ve been reading alot on pathing and input for a while now. I will be starting […]

/ Comments Off on The fundamental design of Frogger
Program: Programming

Help?! 2014-01-04

So I haven’t made much progress the past couple of days because everytime I try to do something I get errors and when the errors are fixed, new ones pop up instead. Been trying to get the game to read spwan points from a file but that didn’t work, have also tried to make a player controller enemy..that didn’t work and I’ve been looking for ways to spawn random objects on the screen like in asteroids but I can’t find […]

/ Comments Off on Help?! 2014-01-04
Program: Programming

Help?! 2014-01-04

So I haven’t made much progress the past couple of days because everytime I try to do something I get errors and when the errors are fixed, new ones pop up instead. Been trying to get the game to read spwan points from a file but that didn’t work, have also tried to make a player controller enemy..that didn’t work and I’ve been looking for ways to spawn random objects on the screen like in asteroids but I can’t find […]

/ Comments Off on Help?! 2014-01-04
Program: Programming

Day 10, Something looking like Arkanoid

I have been working since 06:00 in the morning both with programming and graphical things.I developed the CollisonManager some more so it can handle both ball and player collision.It still have some bugs like the ball getting stuck or bouncing in some strange ways. and  it rarely push through the game border and gets away. I’m thinking of changing how the collision is handled for the border.I added a BrickObject class to keep track of the bricks. For example like […]

/ Comments Off on Day 10, Something looking like Arkanoid
Program: Programming

Day 10, Something looking like Arkanoid

I have been working since 06:00 in the morning both with programming and graphical things.I developed the CollisonManager some more so it can handle both ball and player collision.It still have some bugs like the ball getting stuck or bouncing in some strange ways. and  it rarely push through the game border and gets away. I’m thinking of changing how the collision is handled for the border.I added a BrickObject class to keep track of the bricks. For example like […]

/ Comments Off on Day 10, Something looking like Arkanoid
Program: Programming

Frogger Dev. Post 13

Not too much progress today on my part. It is a little bit funny that displaying a simple text is more complicated than displaying and maintaining several images. In my quest to make the HUD for the game I realized that I had to learn how a new library work. As far as I was able to gather I have to change the sprite every time I want to make the number change. To do this I made a function […]

/ Comments Off on Frogger Dev. Post 13
Program: Programming

Frogger Dev. Post 13

Not too much progress today on my part. It is a little bit funny that displaying a simple text is more complicated than displaying and maintaining several images. In my quest to make the HUD for the game I realized that I had to learn how a new library work. As far as I was able to gather I have to change the sprite every time I want to make the number change. To do this I made a function […]

/ Comments Off on Frogger Dev. Post 13
Program: Programming