Browsing 'Programming': Posts from Game Design and 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

Week 6 in game programming (delayed blog post)

This week we went through how to add text into a game. This was done using SDL, and works similar to how you insert images in your code. We also went through advanced collision briefly, for example the different kinds of collision, and how to make circles collide and such. For some weeks now, I’ll be working on my Bomberman project together with Ludvig Storm, so far, we haven’t gotten very far. But we’re agreed on what needs to be […]

/ Comments Off on Week 6 in game programming (delayed blog post)
Program: Programming

Week 6 in game programming (delayed blog post)

This week we went through how to add text into a game. This was done using SDL, and works similar to how you insert images in your code. We also went through advanced collision briefly, for example the different kinds of collision, and how to make circles collide and such. For some weeks now, I’ll be working on my Bomberman project together with Ludvig Storm, so far, we haven’t gotten very far. But we’re agreed on what needs to be […]

/ Comments Off on Week 6 in game programming (delayed blog post)
Program: Programming

Week 6 in game programming (delayed blog post)

This week we went through how to add text into a game. This was done using SDL, and works similar to how you insert images in your code. We also went through advanced collision briefly, for example the different kinds of collision, and how to make circles collide and such. For some weeks now, I’ll be working on my Bomberman project together with Ludvig Storm, so far, we haven’t gotten very far. But we’re agreed on what needs to be […]

/ Comments Off on Week 6 in game programming (delayed blog post)
Program: Programming

Week 6 in game programming (delayed blog post)

This week we went through how to add text into a game. This was done using SDL, and works similar to how you insert images in your code. We also went through advanced collision briefly, for example the different kinds of collision, and how to make circles collide and such. For some weeks now, I’ll be working on my Bomberman project together with Ludvig Storm, so far, we haven’t gotten very far. But we’re agreed on what needs to be […]

/ Comments Off on Week 6 in game programming (delayed blog post)
Program: Programming

18.12.14

Idag fick jag hjälp utav Jerry att skriva den koden som gör att jag kan använda tangentbordet för att förflytta mitt egna skepp som spelare.

/ Comments Off on 18.12.14
Program: Programming

18.12.14

Idag fick jag hjälp utav Jerry att skriva den koden som gör att jag kan använda tangentbordet för att förflytta mitt egna skepp som spelare.

/ Comments Off on 18.12.14
Program: Programming

17.12.14

Idag har jag börjat med att göra en lista över allting som behövs finnas i min Space Invader för att verkligen få med allting och se till att uppfylla de kraven som behövs på denna uppgift. Jag har använt bland annat denna video som referens över vad jag behöver göra.

Förutom det har jag börjat jobba mer i mallen och skriva in, idag blev jag klar med att anpassa skärmen till en storlek som jag finner passande. Jag har också skapat […]

/ Comments Off on 17.12.14
Program: Programming

17.12.14

Idag har jag börjat med att göra en lista över allting som behövs finnas i min Space Invader för att verkligen få med allting och se till att uppfylla de kraven som behövs på denna uppgift. Jag har använt bland annat denna video som referens över vad jag behöver göra.

Förutom det har jag börjat jobba mer i mallen och skriva in, idag blev jag klar med att anpassa skärmen till en storlek som jag finner passande. Jag har också skapat […]

/ Comments Off on 17.12.14
Program: Programming

Frogger project going forward

Of course I forgot to update when I meant to. The project is going forward. We now have correct background colors and the purple sidewalks are in place. Since we have a sprite sheet, we figured the easiest way to draw the sidewalks was to make a class for the sidewalk tile, and make several instances of that class. The frog can be moved using the arrow keys, but there is no animation. We decided to postpone implementation of all […]

/ Comments Off on Frogger project going forward
Program: Programming

Frogger project going forward

Of course I forgot to update when I meant to. The project is going forward. We now have correct background colors and the purple sidewalks are in place. Since we have a sprite sheet, we figured the easiest way to draw the sidewalks was to make a class for the sidewalk tile, and make several instances of that class. The frog can be moved using the arrow keys, but there is no animation. We decided to postpone implementation of all […]

/ Comments Off on Frogger project going forward
Program: Programming

Frogger project going forward

Of course I forgot to update when I meant to. The project is going forward. We now have correct background colors and the purple sidewalks are in place. Since we have a sprite sheet, we figured the easiest way to draw the sidewalks was to make a class for the sidewalk tile, and make several instances of that class. The frog can be moved using the arrow keys, but there is no animation. We decided to postpone implementation of all […]

/ Comments Off on Frogger project going forward
Program: Programming

Frogger project going forward

Of course I forgot to update when I meant to. The project is going forward. We now have correct background colors and the purple sidewalks are in place. Since we have a sprite sheet, we figured the easiest way to draw the sidewalks was to make a class for the sidewalk tile, and make several instances of that class. The frog can be moved using the arrow keys, but there is no animation. We decided to postpone implementation of all […]

/ Comments Off on Frogger project going forward
Program: Programming

Week 6 | Red Plane1942

I’ve started working on a replica of a game called ”Red Plane 1942″. I’m using the same engine we created in class for the Arkanoid project. What I’ve done this week is to create the basic objects. I made a class called BackgroundObject. It’s basically just a object with a sprite that moves down towards the end of the screen. After it is below the edge it resets above the screen and randomizes a x position. The Player object is […]

/ Comments Off on Week 6 | Red Plane1942
Program: Programming

Week 6 | Red Plane1942

I’ve started working on a replica of a game called ”Red Plane 1942″. I’m using the same engine we created in class for the Arkanoid project. What I’ve done this week is to create the basic objects. I made a class called BackgroundObject. It’s basically just a object with a sprite that moves down towards the end of the screen. After it is below the edge it resets above the screen and randomizes a x position. The Player object is […]

/ Comments Off on Week 6 | Red Plane1942
Program: Programming

Week 6 | Red Plane1942

I’ve started working on a replica of a game called ”Red Plane 1942”. I’m using the same engine we created in class for the Arkanoid project. What I’ve done this week is to create the basic objects. I made a class called BackgroundObject. It’s basically just a object with a sprite that moves down towards the end of the screen. After it is below the edge it resets above the screen and randomizes a x position. The Player object is […]

/ Comments Off on Week 6 | Red Plane1942
Program: Programming

Week 6 | Red Plane1942

I’ve started working on a replica of a game called ”Red Plane 1942”. I’m using the same engine we created in class for the Arkanoid project. What I’ve done this week is to create the basic objects. I made a class called BackgroundObject. It’s basically just a object with a sprite that moves down towards the end of the screen. After it is below the edge it resets above the screen and randomizes a x position. The Player object is […]

/ Comments Off on Week 6 | Red Plane1942
Program: Programming

Programming Project – FPS

This I’ve been working with creating the playerobject, the playermovement, boundingboxes for collision and the collision. When I tried to add plaermovement the first time I fucked it up completely, I didnt account for the direction the player is facing in anyway so it obviously didn’t work. I blame being tired for it.
Then I got the Idea to just use the movement that the camera already has and then make set the playerobject and boundingbox to the position to the […]

/ Comments Off on Programming Project – FPS
Program: Programming

Programming Project – FPS

This I’ve been working with creating the playerobject, the playermovement, boundingboxes for collision and the collision. When I tried to add plaermovement the first time I fucked it up completely, I didnt account for the direction the player is facing in anyway so it obviously didn’t work. I blame being tired for it.
Then I got the Idea to just use the movement that the camera already has and then make set the playerobject and boundingbox to the position to the […]

/ Comments Off on Programming Project – FPS
Program: Programming