Browsing '5SD022': Game Programming I

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

Unexpected help

Today was a…productive day, more that i would have thought when rolling out of bet at 10AM.
Me and Martin met up in the Game room where we both worked on the last things we wanted to put in the game. I worked on getting the sprites in the game and as it turned out the sprites were drawing but at the top left corner due to me making the collider of the Particle’s Gameobject a nullpointer when declaring it.  Once […]

/ Comments Off on Unexpected help
Program: Programming

Unexpected help

Today was a…productive day, more that i would have thought when rolling out of bet at 10AM.
Me and Martin met up in the Game room where we both worked on the last things we wanted to put in the game. I worked on getting the sprites in the game and as it turned out the sprites were drawing but at the top left corner due to me making the collider of the Particle’s Gameobject a nullpointer when declaring it.  Once […]

/ Comments Off on Unexpected help
Program: Programming

Progress of the day


Kept working on the Sound Manager, in order to the the Buttons to work accordingly. at the moment there are some issues with it, nothing to mayor though.
When pressing the Stop, then Play it will jump to the next song rather than restarting the one it stopped on. Should be quite easy to fix.
Blog posts are getting smaller, Not much left to create. and deadline approaches, Tomorrow ill have to start writing on the report due this Sunday as […]

/ Comments Off on Progress of the day
Program: Programming

Progress of the day


Kept working on the Sound Manager, in order to the the Buttons to work accordingly. at the moment there are some issues with it, nothing to mayor though.
When pressing the Stop, then Play it will jump to the next song rather than restarting the one it stopped on. Should be quite easy to fix.
Blog posts are getting smaller, Not much left to create. and deadline approaches, Tomorrow ill have to start writing on the report due this Sunday as […]

/ Comments Off on Progress of the day
Program: Programming

Programming Project, day 28

My box vs circle wasn’t working the way it should. I tested it with very slow moving objects and after much rewriting (and a looooot of thinking / discussing with classmates / googling) it works very well.
And I added a few songs to the song lists. Maps seem to order themselves when using insert().

/ Comments Off on Programming Project, day 28
Program: Programming

Programming Project, day 28

My box vs circle wasn’t working the way it should. I tested it with very slow moving objects and after much rewriting (and a looooot of thinking / discussing with classmates / googling) it works very well.
And I added a few songs to the song lists. Maps seem to order themselves when using insert().

/ Comments Off on Programming Project, day 28
Program: Programming

Spelprogrammering – Assignment – 17

Tic-tac-tic-tac. Time’s running out.
I’ve been hunkered down and working all day. I’ve realized that I’m pressed on time, so I’ve given up on some features in favor of others. For example I created the most basic GUI of all time in the bottom left corner that changes colour based on the amount of lives you have. I also added a “GAME OVER” screen, that shows up for three seconds until the game restarts itself.
Inadvertently, it’s causing memory leaks, which origin […]

/ Comments Off on Spelprogrammering – Assignment – 17
Program: Programming

Spelprogrammering – Assignment – 17

Tic-tac-tic-tac. Time’s running out.
I’ve been hunkered down and working all day. I’ve realized that I’m pressed on time, so I’ve given up on some features in favor of others. For example I created the most basic GUI of all time in the bottom left corner that changes colour based on the amount of lives you have. I also added a “GAME OVER” screen, that shows up for three seconds until the game restarts itself.
Inadvertently, it’s causing memory leaks, which origin […]

/ Comments Off on Spelprogrammering – Assignment – 17
Program: Programming

Game Programming I – Assignment day 23

More work on collision detection today.
The collision manager now checks overlaps between objects.
If there is one it returns a pair to the first object containing a pointer to the second object and the offset.
Now I will need to work on collision handling in the different classes.
They will decide what happens when a collision with a certain object occurs.

/ Comments Off on Game Programming I – Assignment day 23
Program: Programming

Game Programming I – Assignment day 23

More work on collision detection today.
The collision manager now checks overlaps between objects.
If there is one it returns a pair to the first object containing a pointer to the second object and the offset.
Now I will need to work on collision handling in the different classes.
They will decide what happens when a collision with a certain object occurs.

/ Comments Off on Game Programming I – Assignment day 23
Program: Programming

TTF is not my friend. Post #7

Writing this one slightly late, as the following is what I did yesterday. Got home way too late to blog anything.
Anyhow. As I wrote in my last post I was playing with the reset-function of the game, but that’s still not working. It’s really a low priority thing so I only work on it if I have some extra time. I’m getting closer, but yeah, that is put on ice for now.
We got the score up and running yesterday, although […]

/ Comments Off on TTF is not my friend. Post #7
Program: Programming

TTF is not my friend. Post #7

Writing this one slightly late, as the following is what I did yesterday. Got home way too late to blog anything.
Anyhow. As I wrote in my last post I was playing with the reset-function of the game, but that’s still not working. It’s really a low priority thing so I only work on it if I have some extra time. I’m getting closer, but yeah, that is put on ice for now.
We got the score up and running yesterday, although […]

/ Comments Off on TTF is not my friend. Post #7
Program: Programming

SDL_ttf

I’ve tried to get the SDL_ttf working.
It turns out that it was made for SDL 1.2 and not 2.0, which we are using.
This makes implementing it a lot harder, it’s based on SDL_Surfaces and not SDL_Windows, that we use..

/ Comments Off on SDL_ttf
Program: Programming

SDL_ttf

I’ve tried to get the SDL_ttf working.
It turns out that it was made for SDL 1.2 and not 2.0, which we are using.
This makes implementing it a lot harder, it’s based on SDL_Surfaces and not SDL_Windows, that we use..

/ Comments Off on SDL_ttf
Program: Programming

Spelprogrammering – Assignment – 16 (Yesterday)

I can’t figure out how to get my gamestates to work, so – in the interest of time, I’ll leave that be for the time being. Instead I manually (hardcoded) a new level when you’ve cleared every single block on the screen.
I’ve got a few more points to collect, so I’ll be trying to add text and maybe highscores just to gain those few extra points.  

/ Comments Off on Spelprogrammering – Assignment – 16 (Yesterday)
Program: Programming

Spelprogrammering – Assignment – 16 (Yesterday)

I can’t figure out how to get my gamestates to work, so – in the interest of time, I’ll leave that be for the time being. Instead I manually (hardcoded) a new level when you’ve cleared every single block on the screen.
I’ve got a few more points to collect, so I’ll be trying to add text and maybe highscores just to gain those few extra points.  

/ Comments Off on Spelprogrammering – Assignment – 16 (Yesterday)
Program: Programming

KreakOut #9 – Text? Where we’re going, we don’t need text!

Seriously, SDL_TTF is frustrating when you don’t know 100% what is going on with the rendering. Most of the day went towards trying to get that to work, so we didn’t get as much as we wanted done today. Tomorrow (Friday) might be the last day we work on this, as we don’t want to rush with the report too much.
Things we did get to work had to do with the audio, though. Sound-effects are in place and so is […]

/ Comments Off on KreakOut #9 – Text? Where we’re going, we don’t need text!
Program: Programming

KreakOut #9 – Text? Where we’re going, we don’t need text!

Seriously, SDL_TTF is frustrating when you don’t know 100% what is going on with the rendering. Most of the day went towards trying to get that to work, so we didn’t get as much as we wanted done today. Tomorrow (Friday) might be the last day we work on this, as we don’t want to rush with the report too much.
Things we did get to work had to do with the audio, though. Sound-effects are in place and so is […]

/ Comments Off on KreakOut #9 – Text? Where we’re going, we don’t need text!
Program: Programming

Getting All The Objects to work in sync + Animations

I have to admit I was almost beaten but this was easily the most fun I had.
When you get to play with the objects and fiddle around with the values of sprite size, speed and correlations it was a delight to see everything working finally.
After finding trouble thinking how I should tackle things I only hope the next project will require me to ask less questions and help from people.
The animation is only working as intended with the avatar at […]

/ Comments Off on Getting All The Objects to work in sync + Animations
Program: Programming

Getting All The Objects to work in sync + Animations

I have to admit I was almost beaten but this was easily the most fun I had.
When you get to play with the objects and fiddle around with the values of sprite size, speed and correlations it was a delight to see everything working finally.
After finding trouble thinking how I should tackle things I only hope the next project will require me to ask less questions and help from people.
The animation is only working as intended with the avatar at […]

/ Comments Off on Getting All The Objects to work in sync + Animations
Program: Programming

Programming Project, day 27

I’ve gotten all collisions except pixel perfect to work. Circle vs Box was tricky, but it works now. I have an offset to the top left that i don’t want, but otherwise it works great!
The collision objects now fly around and collide across all menu states except the ones within the GameState, I need to add them there aswell.
I need to add an option to disable the menu collisionobject effect.

/ Comments Off on Programming Project, day 27
Program: Programming

Programming Project, day 27

I’ve gotten all collisions except pixel perfect to work. Circle vs Box was tricky, but it works now. I have an offset to the top left that i don’t want, but otherwise it works great!
The collision objects now fly around and collide across all menu states except the ones within the GameState, I need to add them there aswell.
I need to add an option to disable the menu collisionobject effect.

/ Comments Off on Programming Project, day 27
Program: Programming