Browsing '5SD022': Game Programming I

Moving frogs

Today i attempted to fix the movement of the player which had been acting up. The player would upon forwards or backwards movement teleport to the desired location and vibrate for a few moments before stopping. I simplified my version and made the player straight out move there. My intention was to add another function which saved the player’s original position and then made the player start moving in the right direction. Once the player had traveled the desired length […]

/ Comments Off on Moving frogs
Program: Programming

Moving frogs

Today i attempted to fix the movement of the player which had been acting up. The player would upon forwards or backwards movement teleport to the desired location and vibrate for a few moments before stopping. I simplified my version and made the player straight out move there. My intention was to add another function which saved the player’s original position and then made the player start moving in the right direction. Once the player had traveled the desired length […]

/ Comments Off on Moving frogs
Program: Programming

Spelprogrammering I – Assignment – 2,3,4 & 5.

Due to computer issues (I’ve not had access to internet for several days) I haven’t been able to maintain the blog properly.
I’ve reviewed the Pong Workshop Code we did in class in order to better understand how C++ works. I’ve also spent a lot of time reading up on the subject in books (more specifically “Starting out with Games and Graphics in C++“). I’m honestly a little bit lost, but I’m working on it. Right now, I’m doing everything (again) […]

/ Comments Off on Spelprogrammering I – Assignment – 2,3,4 & 5.
Program: Programming

Spelprogrammering I – Assignment – 2,3,4 & 5.

Due to computer issues (I’ve not had access to internet for several days) I haven’t been able to maintain the blog properly.
I’ve reviewed the Pong Workshop Code we did in class in order to better understand how C++ works. I’ve also spent a lot of time reading up on the subject in books (more specifically “Starting out with Games and Graphics in C++“). I’m honestly a little bit lost, but I’m working on it. Right now, I’m doing everything (again) […]

/ Comments Off on Spelprogrammering I – Assignment – 2,3,4 & 5.
Program: Programming

Pixel perfect collision and particles

Yesterday I had time to check up on those collision and so far I have done these collisions:

Rectangle vs Rectangle
Circle vs Circle
Pixel Perfect

We miss the Rectangle vs Circle collision but I dont think it would be so hard to implement that since we already have collisions for circles and rectangles.

I’ve also changed the plan a bit and removed those tetris falling blocks and replaced it with static blocks in the top(like arkanoid) but with a few changes that will come […]

/ Comments Off on Pixel perfect collision and particles
Program: Programming

Pixel perfect collision and particles

Yesterday I had time to check up on those collision and so far I have done these collisions:

Rectangle vs Rectangle
Circle vs Circle
Pixel Perfect

We miss the Rectangle vs Circle collision but I dont think it would be so hard to implement that since we already have collisions for circles and rectangles.

I’ve also changed the plan a bit and removed those tetris falling blocks and replaced it with static blocks in the top(like arkanoid) but with a few changes that will come […]

/ Comments Off on Pixel perfect collision and particles
Program: Programming

Game Programming – Assignment day 9

Continued working on the soundclip, musicclip and soundmanager classes today, encountered some problems while trying to test them.
I got a build error saying I had 15 unresolved externals, not sure what it’s supposed to mean.
As I understand it ”unresolved external” means I have made something in a header file that has not been defined in a source file, but I can find no such thing, certainly not 15.
 
I also helped my co-worker find and correct an error with the collision […]

/ Comments Off on Game Programming – Assignment day 9
Program: Programming

Game Programming – Assignment day 9

Continued working on the soundclip, musicclip and soundmanager classes today, encountered some problems while trying to test them.
I got a build error saying I had 15 unresolved externals, not sure what it’s supposed to mean.
As I understand it ”unresolved external” means I have made something in a header file that has not been defined in a source file, but I can find no such thing, certainly not 15.
 
I also helped my co-worker find and correct an error with the collision […]

/ Comments Off on Game Programming – Assignment day 9
Program: Programming

Frogger Progress 27/12

Once again I’ve been working on states, Now got two states and a temporary toggle button to change between them. It will be easy to add more states afterwards.
Besides this I’ve been working on getting over more useful things from the Platformer project, and hopefully during the next time I work with it, there will be some Visual differences ( Drawing out the Level, and Player). Rather than just behind the scenes work.

/ Comments Off on Frogger Progress 27/12
Program: Programming

Frogger Progress 27/12

Once again I’ve been working on states, Now got two states and a temporary toggle button to change between them. It will be easy to add more states afterwards.
Besides this I’ve been working on getting over more useful things from the Platformer project, and hopefully during the next time I work with it, there will be some Visual differences ( Drawing out the Level, and Player). Rather than just behind the scenes work.

/ Comments Off on Frogger Progress 27/12
Program: Programming

Another day, another blogpost

Today i added the goal objects to the game, i feel like i could have done it faster however. On the other hand i learned what causes the “unresolved external symbol” error and how to fix it(which took most of the time). On a side note i also made an image of where the goal objects are drawn.
Martin worked on adding logs today and struggled with collision, we didn’t work together today so i am not sure how well he […]

/ Comments Off on Another day, another blogpost
Program: Programming

Another day, another blogpost

Today i added the goal objects to the game, i feel like i could have done it faster however. On the other hand i learned what causes the “unresolved external symbol” error and how to fix it(which took most of the time). On a side note i also made an image of where the goal objects are drawn.
Martin worked on adding logs today and struggled with collision, we didn’t work together today so i am not sure how well he […]

/ Comments Off on Another day, another blogpost
Program: Programming

Back again!

After a smaller X-mas break I’ve looked into the Frogger Project again.
This time I went back to the Platformer and managed to fix the Animations that i didn’t get to work during the last lecture before leaving the island.
By doing this I now think that I have a plan on how to get it into Frogger.
Also did some State Testing, now able to change state with a keypress. Not that much done with the states themselves yet though just color […]

/ Comments Off on Back again!
Program: Programming

Back again!

After a smaller X-mas break I’ve looked into the Frogger Project again.
This time I went back to the Platformer and managed to fix the Animations that i didn’t get to work during the last lecture before leaving the island.
By doing this I now think that I have a plan on how to get it into Frogger.
Also did some State Testing, now able to change state with a keypress. Not that much done with the states themselves yet though just color […]

/ Comments Off on Back again!
Program: Programming

Visual progress!

Today i added a background object to our project.
This may have been extremely unnecessary as i seem to have forgotten to put .PNG after the filename in my original method of drawing. This caused me to go create a brand new game object for the background instead of just drawing it as a sprite. Tomorrow i will make sure whether i can achieve the same result without the extra class.
In general i feel like we made a lot of progress […]

/ Comments Off on Visual progress!
Program: Programming

Visual progress!

Today i added a background object to our project.
This may have been extremely unnecessary as i seem to have forgotten to put .PNG after the filename in my original method of drawing. This caused me to go create a brand new game object for the background instead of just drawing it as a sprite. Tomorrow i will make sure whether i can achieve the same result without the extra class.
In general i feel like we made a lot of progress […]

/ Comments Off on Visual progress!
Program: Programming

Block object and Utilities class

The following was made yesterday and I had no time making a blogpost because now it’s Christmas.

So what is have been done.

I have tweaked the GameState since the main focus lies there and not in MenuState och HighscoreState.

I added blocks spawning in a rate of 1*.6 seconds wich will be changed in future. I´ve also added movement to the blocks. I think I have alot more understanding in pointers and iterators now. First I saw an iterator as a usual […]

/ Comments Off on Block object and Utilities class
Program: Programming

Block object and Utilities class

The following was made yesterday and I had no time making a blogpost because now it’s Christmas.

So what is have been done.

I have tweaked the GameState since the main focus lies there and not in MenuState och HighscoreState.

I added blocks spawning in a rate of 1*.6 seconds wich will be changed in future. I´ve also added movement to the blocks. I think I have alot more understanding in pointers and iterators now. First I saw an iterator as a usual […]

/ Comments Off on Block object and Utilities class
Program: Programming

Colliding with bounds

Now I have managed to make the blocks collide with the floor. But their y values are not equal when the land so some blocks get an offset wich I cant get rid of (visible on picture). I think it’s because we are dealing with floats. I will try to round it to nearset 1 decimal.

I have not heard from Laban since the 23th. I hope hes OK and have grabbed the sounds.My next task is […]

/ Comments Off on Colliding with bounds
Program: Programming

Colliding with bounds

Now I have managed to make the blocks collide with the floor. But their y values are not equal when the land so some blocks get an offset wich I cant get rid of (visible on picture). I think it’s because we are dealing with floats. I will try to round it to nearset 1 decimal.

I have not heard from Laban since the 23th. I hope hes OK and have grabbed the sounds.My next task is […]

/ Comments Off on Colliding with bounds
Program: Programming

Post for two days

While i remembered to make a post about Sunday on Monday, i ironically forgot to make Monday’s post on Monday. So, Monday I went through the code trying to find the exact line that drew the player onto the screen. It became a test of going through code over several classes as i didn’t save the work without the animation from the platformer project. I was eventually unable to find it and i ended the day on a low point.
Tuesday […]

/ Comments Off on Post for two days
Program: Programming

Post for two days

While i remembered to make a post about Sunday on Monday, i ironically forgot to make Monday’s post on Monday. So, Monday I went through the code trying to find the exact line that drew the player onto the screen. It became a test of going through code over several classes as i didn’t save the work without the animation from the platformer project. I was eventually unable to find it and i ended the day on a low point.
Tuesday […]

/ Comments Off on Post for two days
Program: Programming

Programming Project, day 12

I’ve created states within the gamestate, two so far. They called “GamePlayState” and “GameEndState”.
I made a ScoreManager because that is the next step to expanding the game. It uses to save and load the current highscore.  It works and tracks the following things: current score, high score and player wins (support for 4 players, even though the rest of the game is hard coded to two at the moment).
To get all these things to work the way I want I […]

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

Programming Project, day 12

I’ve created states within the gamestate, two so far. They called “GamePlayState” and “GameEndState”.
I made a ScoreManager because that is the next step to expanding the game. It uses to save and load the current highscore.  It works and tracks the following things: current score, high score and player wins (support for 4 players, even though the rest of the game is hard coded to two at the moment).
To get all these things to work the way I want I […]

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