Browsing '5SD023': Game Programming II

Arianas Travels

Since the 19th me and five others have been working parallel to another Game Programming II course is a course named Introduction to Game Development.
From now on I will be blogging about how my position as lead designer have taken it’s toll and what have been going to my mind during the choices we’ve taken.
The development went through picking a finished game design document, had a brainstorm about what the group was able to do and specifically me had to […]

/ Comments Off on Arianas Travels
Program: Programming

Arianas Travels

Since the 19th me and five others have been working parallel to another Game Programming II course is a course named Introduction to Game Development.
From now on I will be blogging about how my position as lead designer have taken it’s toll and what have been going to my mind during the choices we’ve taken.
The development went through picking a finished game design document, had a brainstorm about what the group was able to do and specifically me had to […]

/ Comments Off on Arianas Travels
Program: Programming

more collisions

2014 02 06
I’ve been doing the collisions again.. The circle works fine, sort of. I have Three circles drawn. Two of them collide like they are supposed to. The third circle will not collide with any of the two colliding circles.
I also have Three rectangles. Same thing there, only two of the rectangles will collide.
I Think this has something to do with how I check for collisions. I now have two different std::vectors containing colliders, one for rectangle colliders and […]

/ Comments Off on more collisions
Program: Programming

more collisions

2014 02 06
I’ve been doing the collisions again.. The circle works fine, sort of. I have Three circles drawn. Two of them collide like they are supposed to. The third circle will not collide with any of the two colliding circles.
I also have Three rectangles. Same thing there, only two of the rectangles will collide.
I Think this has something to do with how I check for collisions. I now have two different std::vectors containing colliders, one for rectangle colliders and […]

/ Comments Off on more collisions
Program: Programming

Unnamed Fish Game BloggPost 3

Today I ran into some issues while trying to modify the code from the Platformer project we got during last course. The problem occured as the old code used SDL, and the new project is using SFML.
The issues I ran into here was that the Sprite works differently in these libraries, as of the SFML has one included and in SDL we created our own, This made several of the parameters for the function in need for change. as of […]

/ Comments Off on Unnamed Fish Game BloggPost 3
Program: Programming

Unnamed Fish Game BloggPost 3

Today I ran into some issues while trying to modify the code from the Platformer project we got during last course. The problem occured as the old code used SDL, and the new project is using SFML.
The issues I ran into here was that the Sprite works differently in these libraries, as of the SFML has one included and in SDL we created our own, This made several of the parameters for the function in need for change. as of […]

/ Comments Off on Unnamed Fish Game BloggPost 3
Program: Programming

Game dev – Milestone, playable game

The game is playable. It is a very simple version without almost all collision since that is not implemented yet. All code that makes the game playable is located within the engine but it will be broken up into the different states and managers as they start getting added.
I made a temporary collision code, as it was needed for collision between projectiles and enemies. It looks like this:

fDistanceX = fabs(m_xEnemies[k]->GetPos().x – m_xProjectiles[i]->GetPos().x);
fDistanceY = fabs(m_xEnemies[k]->GetPos().y – m_xProjectiles[i]->GetPos().y);
fDistanceTotal = sqrtf(fDistanceX*fDistanceX + fDistanceY*fDistanceY);
if(fDistanceTotal […]

/ Comments Off on Game dev – Milestone, playable game
Program: Programming

Game dev – Milestone, playable game

The game is playable. It is a very simple version without almost all collision since that is not implemented yet. All code that makes the game playable is located within the engine but it will be broken up into the different states and managers as they start getting added.
I made a temporary collision code, as it was needed for collision between projectiles and enemies. It looks like this:

fDistanceX = fabs(m_xEnemies[k]->GetPos().x – m_xProjectiles[i]->GetPos().x);
fDistanceY = fabs(m_xEnemies[k]->GetPos().y – m_xProjectiles[i]->GetPos().y);
fDistanceTotal = sqrtf(fDistanceX*fDistanceX + fDistanceY*fDistanceY);
if(fDistanceTotal […]

/ Comments Off on Game dev – Milestone, playable game
Program: Programming

Meeting, meeting, metting.

So it’s been a long time ago since wrote in this blog. So from Monday to Wednesday we have had four meetings. Monday we had a meeting with Finn Engström, we talked about how to better work in a group together. Not criticizes people based on no facts. Tell them what you think they are doing what you do not like. We should discuss in the group about how the dynamic is and what should change to make it better.
Tuesday […]

/ Comments Off on Meeting, meeting, metting.
Program: Programming

Meeting, meeting, metting.

So it’s been a long time ago since wrote in this blog. So from Monday to Wednesday we have had four meetings. Monday we had a meeting with Finn Engström, we talked about how to better work in a group together. Not criticizes people based on no facts. Tell them what you think they are doing what you do not like. We should discuss in the group about how the dynamic is and what should change to make it better.
Tuesday […]

/ Comments Off on Meeting, meeting, metting.
Program: Programming

Doing Collision management

I have made a Collider class.
It has Three overlap bool functions for rectangle vs rectangle overlaping, rectangle vs circle overlaping and circle vs circle overlapping.
The mathematics is not that difficult when you have the seperating axis theorem and the basic knowlage of a simple circle and a rectangle.
The rectangle vs rectangle one checks to see if there is overlapping by the x-axis of the rectangle’s extension, width and height. Then it checks if it is ovelapping the y-axis. (seperating axes […]

/ Comments Off on Doing Collision management
Program: Programming

Doing Collision management

I have made a Collider class.
It has Three overlap bool functions for rectangle vs rectangle overlaping, rectangle vs circle overlaping and circle vs circle overlapping.
The mathematics is not that difficult when you have the seperating axis theorem and the basic knowlage of a simple circle and a rectangle.
The rectangle vs rectangle one checks to see if there is overlapping by the x-axis of the rectangle’s extension, width and height. Then it checks if it is ovelapping the y-axis. (seperating axes […]

/ Comments Off on Doing Collision management
Program: Programming

Even more collision!

Today I worked some more on the collision-checks for the game. I got the line-circle collision to work with SFML. The code had been working for a while before I realized I had forgotten to update the players collider position when the player moved. Now it has been implemented and I will put it to the test tomorrow.
I have also added a check between two circles. Most of the objects (I believe all the objects but the projectiles) will have […]

/ Comments Off on Even more collision!
Program: Programming

Even more collision!

Today I worked some more on the collision-checks for the game. I got the line-circle collision to work with SFML. The code had been working for a while before I realized I had forgotten to update the players collider position when the player moved. Now it has been implemented and I will put it to the test tomorrow.
I have also added a check between two circles. Most of the objects (I believe all the objects but the projectiles) will have […]

/ Comments Off on Even more collision!
Program: Programming

Escape week 2 day one

Well for the past two weeks I’ve been working on mostly the scrum document, the design document and the prototype of the game. While now I get to start working on the inner workings of the game, I will begin with all that concerns the sound of the game.The game will be about a corporate spy in a sci-fi 40′s setting that enters a office building on a mission to steal “the documents”.
The programming on my part will to a […]

/ Comments Off on Escape week 2 day one
Program: Programming

Escape week 2 day one

Well for the past two weeks I’ve been working on mostly the scrum document, the design document and the prototype of the game. While now I get to start working on the inner workings of the game, I will begin with all that concerns the sound of the game.The game will be about a corporate spy in a sci-fi 40′s setting that enters a office building on a mission to steal “the documents”.
The programming on my part will to a […]

/ Comments Off on Escape week 2 day one
Program: Programming

Developing the game using SCRUM

This Post was created -2014 02 02
Last wednesday, we thought we’d try to get some basic stuff to our Project up and running by the Sprint Review/planning on (last) friday.
We initiated the Game states StartState, the first screen containing quit, play and options button, GameState, in which the acctual gameplay is, optionState, change volume and such.
By “initiated” I mean just made the hpp and cpp files with some empty methods. We also made a StateManager to go with that […]

/ Comments Off on Developing the game using SCRUM
Program: Programming

Developing the game using SCRUM

This Post was created -2014 02 02
Last wednesday, we thought we’d try to get some basic stuff to our Project up and running by the Sprint Review/planning on (last) friday.
We initiated the Game states StartState, the first screen containing quit, play and options button, GameState, in which the acctual gameplay is, optionState, change volume and such.
By “initiated” I mean just made the hpp and cpp files with some empty methods. We also made a StateManager to go with that […]

/ Comments Off on Developing the game using SCRUM
Program: Programming

Game Programming 2 and Game Developement introduction

The Project I last did with Jonas is no doubt in need of some finishing work, but we have 4 attempts left and there is not very much left to complete.
This post is not about that, all though I may be blogging about that project as well.
This post is about the current two courses: Game Programming 2 and Game Production – an introduction.
In the first course, game design and analysis – an introduction we all worked in groups and created […]

/ Comments Off on Game Programming 2 and Game Developement introduction
Program: Programming

Game Programming 2 and Game Developement introduction

The Project I last did with Jonas is no doubt in need of some finishing work, but we have 4 attempts left and there is not very much left to complete.
This post is not about that, all though I may be blogging about that project as well.
This post is about the current two courses: Game Programming 2 and Game Production – an introduction.
In the first course, game design and analysis – an introduction we all worked in groups and created […]

/ Comments Off on Game Programming 2 and Game Developement introduction
Program: Programming

Game Developement and Coding

This week we had our first scrum sprint, meaning we set up assignments for each group member to be done with by Friday. The assignments were either art, music or code to be used in the game we are making, Dangerous Dander.
Being a coder my assignments were to start on the different classes of our game objects as well as their inheritance structure. That basically means I had to make so called Parent classes from which other classes will inherit […]

/ Comments Off on Game Developement and Coding
Program: Programming

Game Developement and Coding

This week we had our first scrum sprint, meaning we set up assignments for each group member to be done with by Friday. The assignments were either art, music or code to be used in the game we are making, Dangerous Dander.
Being a coder my assignments were to start on the different classes of our game objects as well as their inheritance structure. That basically means I had to make so called Parent classes from which other classes will inherit […]

/ Comments Off on Game Developement and Coding
Program: Programming

Project Haunted Light 2013-02-02

Today I finally got the States working,I had goofed up the code because I had accidentally removed the while loop in main that keeps the game running, instead of just shutting it down after it has run one time. And after that I was going to start with the input for the game but it seems like we already have one up and running in the prototype.
So my task for the following  week is to get a functional drawmanager and […]

/ Comments Off on Project Haunted Light 2013-02-02
Program: Programming

Project Haunted Light 2013-02-02

Today I finally got the States working,I had goofed up the code because I had accidentally removed the while loop in main that keeps the game running, instead of just shutting it down after it has run one time. And after that I was going to start with the input for the game but it seems like we already have one up and running in the prototype.
So my task for the following  week is to get a functional drawmanager and […]

/ Comments Off on Project Haunted Light 2013-02-02
Program: Programming