Daily Archives: December 26, 2014

Sjunde veckan

Under denna vecka har det varit mycket jul stök och andra händelser som tagit upp tid
Det har självklart varit tidigt men eget arbete har blivit fokus under veckan.
Under veckan har jag arbetat med Sprite och SpriteManager samt en enkel variant av gamestate som test grund.
Eftersom det har varit stökigt so har fokus varit att lära sig mer hur ett spel ska struktureras samt hur SDL fungerar lite djupare på sprite ritningar.
Nu framöver blir det mer intensivt grupparbete när vi gör […]

/ Comments Off on Sjunde veckan
Program: Programming

Sjunde veckan

Under denna vecka har det varit mycket jul stök och andra händelser som tagit upp tid
Det har självklart varit tidigt men eget arbete har blivit fokus under veckan.
Under veckan har jag arbetat med Sprite och SpriteManager samt en enkel variant av gamestate som test grund.
Eftersom det har varit stökigt so har fokus varit att lära sig mer hur ett spel ska struktureras samt hur SDL fungerar lite djupare på sprite ritningar.
Nu framöver blir det mer intensivt grupparbete när vi gör […]

/ Comments Off on Sjunde veckan
Program: Programming

V.7

Arbetet går ganska segt framåt pga jul och släkt men lite framåt går det.
Jag har fått ut en gubbe jag kan gå runt med i första staden men har bara hunnit sätta kollision på vattnet och inte huset/staketen. Har även försökt få gubben att vrida sig men lyckas inte få till att den ska byta sprite när man går åt ett annat håll. Ett exempel på vad jag har gjort:
/////////
else if (m_keyboard->IsKeyDown(1))
{
m_y += speed;
if (m_y > 325)
{
m_y = 325;
}
if (m_x > […]

/ Comments Off on V.7
Program: Programming

V.7

Arbetet går ganska segt framåt pga jul och släkt men lite framåt går det.
Jag har fått ut en gubbe jag kan gå runt med i första staden men har bara hunnit sätta kollision på vattnet och inte huset/staketen. Har även försökt få gubben att vrida sig men lyckas inte få till att den ska byta sprite när man går åt ett annat håll. Ett exempel på vad jag har gjort:
/////////
else if (m_keyboard->IsKeyDown(1))
{
m_y += speed;
if (m_y > 325)
{
m_y = 325;
}
if (m_x > […]

/ Comments Off on V.7
Program: Programming

Jolly Christmas Programming.

Merry Christmas!
So when others are drinking egg nod and the Swedish Christmas specialties ”glögg” and ”julmust”  during a quite relaxing weekend i am stuck with my groups Pokémon project. So far we have managed to print a background image with a movable character on it with some collision covering the edges, so our character do not runt outside the screen. Our main concern at the moment is adding additional blocks restricting the movement on the map along with creating a state […]

/ Comments Off on Jolly Christmas Programming.
Program: Programming

Jolly Christmas Programming.

Merry Christmas!
So when others are drinking egg nod and the Swedish Christmas specialties ”glögg” and ”julmust”  during a quite relaxing weekend i am stuck with my groups Pokémon project. So far we have managed to print a background image with a movable character on it with some collision covering the edges, so our character do not runt outside the screen. Our main concern at the moment is adding additional blocks restricting the movement on the map along with creating a state […]

/ Comments Off on Jolly Christmas Programming.
Program: Programming

All work and no progress. Situation looking pretty grim.

Worked for a good five hours today without being able to hail the two other in the group.
The main issue was that the program would not compile due to an error in the initialization of the player class where i had put the variable types in front of the names of the variables as if trying to create new instances of them rather than set them to specific values.
The rest of the day was spent not understanding how the Helium […]

/ Comments Off on All work and no progress. Situation looking pretty grim.
Program: Programming

All work and no progress. Situation looking pretty grim.

Worked for a good five hours today without being able to hail the two other in the group.
The main issue was that the program would not compile due to an error in the initialization of the player class where i had put the variable types in front of the names of the variables as if trying to create new instances of them rather than set them to specific values.
The rest of the day was spent not understanding how the Helium […]

/ Comments Off on All work and no progress. Situation looking pretty grim.
Program: Programming

Merry Christmas!

The last week has for my part involved a lot of traveling and get-togethers with family, leaving my project a bit unattended. While I have worked on setting up a move function and prepare proper graphics, I’ve encountered a pretty major set-back in the shape of a memory leak.
While changing around to get the new sprite into the code, I somehow managed to break SDL_Texture, causing a break at any time when I try to run a debug. I have […]

/ Comments Off on Merry Christmas!
Program: Programming

Merry Christmas!

The last week has for my part involved a lot of traveling and get-togethers with family, leaving my project a bit unattended. While I have worked on setting up a move function and prepare proper graphics, I’ve encountered a pretty major set-back in the shape of a memory leak.
While changing around to get the new sprite into the code, I somehow managed to break SDL_Texture, causing a break at any time when I try to run a debug. I have […]

/ Comments Off on Merry Christmas!
Program: Programming

Merry Christmas!

The last week has for my part involved a lot of traveling and get-togethers with family, leaving my project a bit unattended. While I have worked on setting up a move function and prepare proper graphics, I’ve encountered a pretty major set-back in the shape of a memory leak.
While changing around to get the new sprite into the code, I somehow managed to break SDL_Texture, causing a break at any time when I try to run a debug. I have […]

/ Comments Off on Merry Christmas!
Program: Programming

Merry Christmas!

The last week has for my part involved a lot of traveling and get-togethers with family, leaving my project a bit unattended. While I have worked on setting up a move function and prepare proper graphics, I’ve encountered a pretty major set-back in the shape of a memory leak.
While changing around to get the new sprite into the code, I somehow managed to break SDL_Texture, causing a break at any time when I try to run a debug. I have […]

/ Comments Off on Merry Christmas!
Program: Programming

December 19 and 26

December 19
Late post, only explanation is that i simply forgot.
The project is going forward but slowly. I have my game window and my Player class but I have not yet created or rendered my sprite in the window.
December 26
The project is going a little bit better now and i have my Sprite rendered on the screen but it is only 16×15 pixles and that is way too small. I tried to make it bigger with a function but after some […]

/ Comments Off on December 19 and 26
Program: Programming

December 19 and 26

December 19
Late post, only explanation is that i simply forgot.
The project is going forward but slowly. I have my game window and my Player class but I have not yet created or rendered my sprite in the window.
December 26
The project is going a little bit better now and i have my Sprite rendered on the screen but it is only 16×15 pixles and that is way too small. I tried to make it bigger with a function but after some […]

/ Comments Off on December 19 and 26
Program: Programming

Programming III

I’ve been looking through your code for the menu state. You can see how this is created with the knowledge from previous courses. Really good to see that you have set up a simple collision system in a 2D space in order to simplify the creation process.
class Hitbox2D {
public:
Hitbox2D() {
m_x = 0;
m_y = 0;
m_w = 0;
m_h = 0;
}
Hitbox2D(float x, float y, float w, float h) {
m_x = x;
m_y = y;
m_w = w;
m_h = h;
};
And then later on tracking the mouse’s […]

/ Comments Off on Programming III
Program: Programming

Programming III

I’ve been looking through your code for the menu state. You can see how this is created with the knowledge from previous courses. Really good to see that you have set up a simple collision system in a 2D space in order to simplify the creation process.
class Hitbox2D {
public:
Hitbox2D() {
m_x = 0;
m_y = 0;
m_w = 0;
m_h = 0;
}
Hitbox2D(float x, float y, float w, float h) {
m_x = x;
m_y = y;
m_w = w;
m_h = h;
};
And then later on tracking the mouse’s […]

/ Comments Off on Programming III
Program: Programming

Programming III

I’ve been looking through your code for the menu state. You can see how this is created with the knowledge from previous courses. Really good to see that you have set up a simple collision system in a 2D space in order to simplify the creation process.
class Hitbox2D {
public:
Hitbox2D() {
m_x = 0;
m_y = 0;
m_w = 0;
m_h = 0;
}
Hitbox2D(float x, float y, float w, float h) {
m_x = x;
m_y = y;
m_w = w;
m_h = h;
};
And then later on tracking the mouse’s […]

/ Comments Off on Programming III
Program: Programming

Programming III

I’ve been looking through your code for the menu state. You can see how this is created with the knowledge from previous courses. Really good to see that you have set up a simple collision system in a 2D space in order to simplify the creation process.
class Hitbox2D {
public:
Hitbox2D() {
m_x = 0;
m_y = 0;
m_w = 0;
m_h = 0;
}
Hitbox2D(float x, float y, float w, float h) {
m_x = x;
m_y = y;
m_w = w;
m_h = h;
};
And then later on tracking the mouse’s […]

/ Comments Off on Programming III
Program: Programming