Yearly Archives: 2013

Programming Project, day 14

Now there are three different options states within the main menu options state. One for sound, one for graphics and one serves as a menu to the other two. I plan on adding controls as a forth state later on.
In the graphics state there are three options for the window resolution. The code is flexible enough to handle almost any resolution now. The tile size gets bigger if there is space for it within the window resolution. Currently, the only […]

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

Programming Project, day 14

Now there are three different options states within the main menu options state. One for sound, one for graphics and one serves as a menu to the other two. I plan on adding controls as a forth state later on.
In the graphics state there are three options for the window resolution. The code is flexible enough to handle almost any resolution now. The tile size gets bigger if there is space for it within the window resolution. Currently, the only […]

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

Spelprogrammering I – Assignment – 6

I’ve caught a nasty cold. And as we all know, when a man has a cold, we’re on the brink of death.
I’m currently working on collision for our Arkanoid game, although the logic doesn’t quite make any sense to me in my feverish state of mind.

/ Comments Off on Spelprogrammering I – Assignment – 6
Program: Programming

Spelprogrammering I – Assignment – 6

I’ve caught a nasty cold. And as we all know, when a man has a cold, we’re on the brink of death.
I’m currently working on collision for our Arkanoid game, although the logic doesn’t quite make any sense to me in my feverish state of mind.

/ Comments Off on Spelprogrammering I – Assignment – 6
Program: Programming

The last week.

Most of my time this week have been reading the SDL documentary about the functions that I can use as well as drawing a simple flowchart so I have some overview of the work to be done the (then) coming weeks.
I used up several hours trying to get SDL_AddTimer to work as intended, for some reason, using ”event.user.code = 1″ didn’t work as intended, moving the mouse in the screen would trigger the […]

/ Comments Off on The last week.
Program: Programming

The last week.

Most of my time this week have been reading the SDL documentary about the functions that I can use as well as drawing a simple flowchart so I have some overview of the work to be done the (then) coming weeks.
I used up several hours trying to get SDL_AddTimer to work as intended, for some reason, using ”event.user.code = 1″ didn’t work as intended, moving the mouse in the screen would trigger the […]

/ Comments Off on The last week.
Program: Programming

Programming assignment 2013-12-27

Begun on the enemies today and thought that if I create one player controlled enemy at the start I can check all collisions quickly instead of chasing after a randomly moved object like we did in pong. The similarities to player are many at the moment. Been also looking at how we could implement a background but when I google for it I always end up with solutions that are written in a single file and we have headers and […]

/ Comments Off on Programming assignment 2013-12-27
Program: Programming

Programming assignment 2013-12-27

Begun on the enemies today and thought that if I create one player controlled enemy at the start I can check all collisions quickly instead of chasing after a randomly moved object like we did in pong. The similarities to player are many at the moment. Been also looking at how we could implement a background but when I google for it I always end up with solutions that are written in a single file and we have headers and […]

/ Comments Off on Programming assignment 2013-12-27
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

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

Frogger Dev. Post 08

Today we got improved player logic, more logs, turtles that should work and you can now die in the water. The turtles works the same as the logs, but they have a hidden timer that ticks down, and when it reaches 0 they cease to be safe. If the player exists above the part where the water starts she will experience a loss of life unless she is on a log. Keeping track on this is a boolean Safe variable […]

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

Frogger Dev. Post 08

Today we got improved player logic, more logs, turtles that should work and you can now die in the water. The turtles works the same as the logs, but they have a hidden timer that ticks down, and when it reaches 0 they cease to be safe. If the player exists above the part where the water starts she will experience a loss of life unless she is on a log. Keeping track on this is a boolean Safe variable […]

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

Frogger Dev. Post 07

Did some good work today, we now have working logs that can carry you over the water and an enemyobject that will basically fill the functionality of cars, hitting them will cause the player’s death. both of these are built from Game Objects.
I didn’t have much contact with Herman today, but from what I know he worked witht the Player Logic to make it work better as well as creating the goals.
Tomorrows mission should be to place out the enemies […]

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

Frogger Dev. Post 07

Did some good work today, we now have working logs that can carry you over the water and an enemyobject that will basically fill the functionality of cars, hitting them will cause the player’s death. both of these are built from Game Objects.
I didn’t have much contact with Herman today, but from what I know he worked witht the Player Logic to make it work better as well as creating the goals.
Tomorrows mission should be to place out the enemies […]

/ Comments Off on Frogger Dev. Post 07
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