Daily Archives: January 18, 2014

Past 2 weeks

Ok, so I’ve been slacking off with the typing, and didn’t work for a week after new year. So here’s a summary.
I mentioned that SDL_Timer took a lot of CPU last time, and it was partially true, but not the sole reason. I had forgot to add SDL_delay(), causing the application to use any available CPU power, updating an arbitrary amount of times a second. after adding a delay of 10ms, it worked smoothly (albeit still use more CPU than […]

/ Comments Off on Past 2 weeks
Program: Programming

Past 2 weeks

Ok, so I’ve been slacking off with the typing, and didn’t work for a week after new year. So here’s a summary.
I mentioned that SDL_Timer took a lot of CPU last time, and it was partially true, but not the sole reason. I had forgot to add SDL_delay(), causing the application to use any available CPU power, updating an arbitrary amount of times a second. after adding a delay of 10ms, it worked smoothly (albeit still use more CPU than […]

/ Comments Off on Past 2 weeks
Program: Programming

Programming assignment 2014-01-18

Been working around the clock but now I’ve finally got the menus working as intended, they all use the same window! This was achieved by making a pointer from engine’s drawmanager to every state so that they all received the same window.
UPDATE: I’ve added the a background color to every menu. And added it to the most updated collision version of the game. There is a lot of work to be done to make engine’s draw manager work everywhere. Almost […]

/ Comments Off on Programming assignment 2014-01-18
Program: Programming

Programming assignment 2014-01-18

Been working around the clock but now I’ve finally got the menus working as intended, they all use the same window! This was achieved by making a pointer from engine’s drawmanager to every state so that they all received the same window.
UPDATE: I’ve added the a background color to every menu. And added it to the most updated collision version of the game. There is a lot of work to be done to make engine’s draw manager work everywhere. Almost […]

/ Comments Off on Programming assignment 2014-01-18
Program: Programming

Programming assignment 2014-01-(16-18)

Been working around the clock but now I’ve finally got the menus working as intended, they all use the same window! This was achieved by making a pointer from engine’s drawmanager to every state so that they all received the same window.
UPDATE: I’ve added the a background color to every menu. And added it to the most updated collision version of the game. There is a lot of work to be done to make engine’s draw manager work everywhere. Almost […]

/ Comments Off on Programming assignment 2014-01-(16-18)
Program: Programming

Programming assignment 2014-01-(16-18)

Been working around the clock but now I’ve finally got the menus working as intended, they all use the same window! This was achieved by making a pointer from engine’s drawmanager to every state so that they all received the same window.
UPDATE: I’ve added the a background color to every menu. And added it to the most updated collision version of the game. There is a lot of work to be done to make engine’s draw manager work everywhere. Almost […]

/ Comments Off on Programming assignment 2014-01-(16-18)
Program: Programming

Day 22

Ok so…I thought I was finished with programming for this project but nope, Thanks to my classmate Tomas that spotted that my collision for box vs circle was wrongly made I went through the code and found also that circle vs circle was wrong.I fixed circle vs circle fairly easy and I have the solution for box vs circle in my grasp but I just can’t get the offset to work on the ball after the collision has occured and […]

/ Comments Off on Day 22
Program: Programming

Day 22

Ok so…I thought I was finished with programming for this project but nope, Thanks to my classmate Tomas that spotted that my collision for box vs circle was wrongly made I went through the code and found also that circle vs circle was wrong.I fixed circle vs circle fairly easy and I have the solution for box vs circle in my grasp but I just can’t get the offset to work on the ball after the collision has occured and […]

/ Comments Off on Day 22
Program: Programming

Programming Project

Today I have been working on SDL_Mix Volume and balancing the game. We can now set a volume value between 0-100% on both soundeffects and music. It enables us to set different volume levels for music and sound effects. We can do this by reading the value from a text file.  Example, you can put music in the value of 50% while the sound effects have a value of 30%.
To balance the game was not so easy but is quite good now.
 

January 18, 2014 / Comments Off on Programming Project
Program: Programming

Programming Project

Today I have been working on SDL_Mix Volume and balancing the game. We can now set a volume value between 0-100% on both soundeffects and music. It enables us to set different volume levels for music and sound effects. We can do this by reading the value from a text file.  Example, you can put music in the value of 50% while the sound effects have a value of 30%.
To balance the game was not so easy but is quite good now.
 

January 18, 2014 / Comments Off on Programming Project
Program: Programming

Programming Project

Today I have been working on SDL_Mix Volume and balancing the game. We can now set a volume value between 0-100% on both soundeffects and music. It enables us to set different volume levels for music and sound effects. We can do this by reading the value from a text file.  Example, you can put music in the value of 50% while the sound effects have a value of 30%.
To balance the game was not so easy but is quite good now.
 

January 18, 2014 / Comments Off on Programming Project
Program: Programming

Programming Project

Today I have been working on SDL_Mix Volume and balancing the game. We can now set a volume value between 0-100% on both soundeffects and music. It enables us to set different volume levels for music and sound effects. We can do this by reading the value from a text file.  Example, you can put music in the value of 50% while the sound effects have a value of 30%.
To balance the game was not so easy but is quite good now.
 

January 18, 2014 / Comments Off on Programming Project
Program: Programming

Frogger Dev. Post 24

We’re finally getting done. Today I just made a few small adjustments, added some minor functions and cleaned up the code. That work is going to continue tomorrow but not until after we’ve synchronised our work one last time. Once we’ve done that we’ll have to write the report and prepeare to hand it in.
On one hand I am glad to be done with this project as that means that I can move on to doing other things. I’ve most […]

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

Frogger Dev. Post 24

We’re finally getting done. Today I just made a few small adjustments, added some minor functions and cleaned up the code. That work is going to continue tomorrow but not until after we’ve synchronised our work one last time. Once we’ve done that we’ll have to write the report and prepeare to hand it in.
On one hand I am glad to be done with this project as that means that I can move on to doing other things. I’ve most […]

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