Browsing '2014 ': Students starting in 2014

Mario Clone Update 3

This week I’ve added enemies and powerups. I’ve also implemented animations for the enemies and the player. I have some bugs regarding how the animation changes when you hit an enemy or when you pick up a powerup, hpoefully i can fix it.
Next on my list of things to implement are states, a menustate and a deadstate.

/ Comments Off on Mario Clone Update 3
Program: Programming

Mario Clone Update 3

This week I’ve added enemies and powerups. I’ve also implemented animations for the enemies and the player. I have some bugs regarding how the animation changes when you hit an enemy or when you pick up a powerup, hpoefully i can fix it.
Next on my list of things to implement are states, a menustate and a deadstate.

/ Comments Off on Mario Clone Update 3
Program: Programming

Space Invaders – Making the enemies shoot

One of my task was to make the space invaders shot at the player. We used block code in the Arcanoid engine as our enemies and the ball code for the projectiles the player can shoot. I thought the code in the ball could be reused for the enemy’s projectile so I created Bullet.cpp and Bullet.h using largely the same structure as the Ball.cpp and Ball.h.
I then used the code in the GameState for making the ball (or projectile) follow […]

/ Comments Off on Space Invaders – Making the enemies shoot
Program: Programming

Space Invaders – Making the enemies shoot

One of my task was to make the space invaders shot at the player. We used block code in the Arcanoid engine as our enemies and the ball code for the projectiles the player can shoot. I thought the code in the ball could be reused for the enemy’s projectile so I created Bullet.cpp and Bullet.h using largely the same structure as the Ball.cpp and Ball.h.
I then used the code in the GameState for making the ball (or projectile) follow […]

/ Comments Off on Space Invaders – Making the enemies shoot
Program: Programming

Helping programmers

During the winter break, I didn’t get much drawing done. I did some small work on the assignment we were given, but didn’t finish it until I got back to the island. However, I did help some programmers with their art in the game they are making; to program a game is their final assignment. I was asked to draw two different blocks; one solid and one that could be destroyed, a background, two players, an enemy, a bomb and an explosion. […]

/ Comments Off on Helping programmers
Program: Graphics

Helping programmers

During the winter break, I didn’t get much drawing done. I did some small work on the assignment we were given, but didn’t finish it until I got back to the island. However, I did help some programmers with their art in the game they are making; to program a game is their final assignment. I was asked to draw two different blocks; one solid and one that could be destroyed, a background, two players, an enemy, a bomb and an explosion. […]

/ Comments Off on Helping programmers
Program: Graphics

Still More Dev Diary

13/1 18:00-22:00
Addressed an animation bug that was locking directional movement on a single frame (animations were being set to a null value if the player was standing still, in order to preserve the directional the player was last moving in. This was addressed by setting the last direction check after the player stops moving to a nonsense value. This prevents smooth animation (frame continues where it last left off if you stop moving) but also removes the movement bug.
Fixed sound […]

/ Comments Off on Still More Dev Diary
Program: Programming

Still More Dev Diary

13/1 18:00-22:00
Addressed an animation bug that was locking directional movement on a single frame (animations were being set to a null value if the player was standing still, in order to preserve the directional the player was last moving in. This was addressed by setting the last direction check after the player stops moving to a nonsense value. This prevents smooth animation (frame continues where it last left off if you stop moving) but also removes the movement bug.
Fixed sound […]

/ Comments Off on Still More Dev Diary
Program: Programming

The eight week of programming.

This is the week we started with our project for real. We got a sort of late start since both of us fell in sick at the beginning of this week. But now we’re working full time on our game.
I’ve so far added a few different classes such as Bomb, Bomberman, Wall, BrickWall and Fire. Meanwhile Emil has been working on a EntityManager.
There’s nothing special to be said about my code It’s pretty standard. I’m using our Fire class as […]

/ Comments Off on The eight week of programming.
Program: Programming

The eight week of programming.

This is the week we started with our project for real. We got a sort of late start since both of us fell in sick at the beginning of this week. But now we’re working full time on our game.
I’ve so far added a few different classes such as Bomb, Bomberman, Wall, BrickWall and Fire. Meanwhile Emil has been working on a EntityManager.
There’s nothing special to be said about my code It’s pretty standard. I’m using our Fire class as […]

/ Comments Off on The eight week of programming.
Program: Programming

The seventh week of programming.

Emil and I decided that we wouldn’t work on the project until we came back to Gotland from our ”Christmas break” so we didn’t work at all this or the coming week.

/ Comments Off on The seventh week of programming.
Program: Programming

The seventh week of programming.

Emil and I decided that we wouldn’t work on the project until we came back to Gotland from our ”Christmas break” so we didn’t work at all this or the coming week.

/ Comments Off on The seventh week of programming.
Program: Programming

The sixth week of programming.

Emil Elthammar and I started to work on a replica of the classic game Bomberman. We’re using the same engine that we created during our Arkanoid project. This week I didn’t really code anything at all in our project

/ Comments Off on The sixth week of programming.
Program: Programming

The sixth week of programming.

Emil Elthammar and I started to work on a replica of the classic game Bomberman. We’re using the same engine that we created during our Arkanoid project. This week I didn’t really code anything at all in our project

/ Comments Off on The sixth week of programming.
Program: Programming

The fifth week of programming.

I’ve been really bad at updating my blog so I will try to remember what we did certain weeks.
If I remember correctly this is the week we finished our Arkanoid project. We added the images to the game with an extension named SDL_IMAGE. With this extension we could and images of different file endings and convert them to the same image type in our program.

/ Comments Off on The fifth week of programming.
Program: Programming

The fifth week of programming.

I’ve been really bad at updating my blog so I will try to remember what we did certain weeks.
If I remember correctly this is the week we finished our Arkanoid project. We added the images to the game with an extension named SDL_IMAGE. With this extension we could and images of different file endings and convert them to the same image type in our program.

/ Comments Off on The fifth week of programming.
Program: Programming

The second week of programming.

This week we learned about pointers in C++. By adding a ‘*’ at the end of the data type you create a pointer. They are used to point on a memory address instead of a value.
If you add a ‘&’ at the front of the variable name you access the variables memory address and if you add a ‘*’ in front of the variable you will access the value of the pointer.

/ Comments Off on The second week of programming.
Program: Programming

The second week of programming.

This week we learned about pointers in C++. By adding a ‘*’ at the end of the data type you create a pointer. They are used to point on a memory address instead of a value.
If you add a ‘&’ at the front of the variable name you access the variables memory address and if you add a ‘*’ in front of the variable you will access the value of the pointer.

/ Comments Off on The second week of programming.
Program: Programming

Dev Diary

Closing in on the hand-in date for our final assignment in Game Programming I!

12/1 17:30 – 21:30
To do:

comment camera
sound effect on hit
gui
remove colliders when exiting rooms (we’re currently only removing the POINTER to the colliders, not the colliders themselves, resulting in a memory leak!)
get keys to work

Discussed how to get keys to work, and how to prevent global entities from displaying when entering new rooms. Decided to remove global entities, eg an enemy, when entering new rooms using an iterator […]

/ Comments Off on Dev Diary
Program: Programming

Dev Diary

Closing in on the hand-in date for our final assignment in Game Programming I!

12/1 17:30 – 21:30
To do:

comment camera
sound effect on hit
gui
remove colliders when exiting rooms (we’re currently only removing the POINTER to the colliders, not the colliders themselves, resulting in a memory leak!)
get keys to work

Discussed how to get keys to work, and how to prevent global entities from displaying when entering new rooms. Decided to remove global entities, eg an enemy, when entering new rooms using an iterator […]

/ Comments Off on Dev Diary
Program: Programming

Lighting of character

Its been a little break with the blog posts over Christmas and new year but now i’m back and I will try to write at least one post per week.
I had an assignment over the Christmas break to create light and forms in my character. It was a big challenge for me personally because I have never lighted a character or painted this seriously.
But given it is my first time ever doing something like this I am very pleased with […]

/ Comments Off on Lighting of character
Program: Graphics

Lighting of character

Its been a little break with the blog posts over Christmas and new year but now i’m back and I will try to write at least one post per week.
I had an assignment over the Christmas break to create light and forms in my character. It was a big challenge for me personally because I have never lighted a character or painted this seriously.
But given it is my first time ever doing something like this I am very pleased with […]

/ Comments Off on Lighting of character
Program: Graphics

Space Invaders – Key input

The Arcanoid code we use as the structure for the space invaders clone used mouse input to control the paddle. We wanted to use keyboard input instead so this had to be changed. This task should actually be rather simple, but I had problems to make it work. I spent a lot of time looking at the Arcanoid to figure out where the changes should be made and how to make them.
The problem lied in how I had written SDL_KEYDOWN […]

/ Comments Off on Space Invaders – Key input
Program: Programming

Space Invaders – Key input

The Arcanoid code we use as the structure for the space invaders clone used mouse input to control the paddle. We wanted to use keyboard input instead so this had to be changed. This task should actually be rather simple, but I had problems to make it work. I spent a lot of time looking at the Arcanoid to figure out where the changes should be made and how to make them.
The problem lied in how I had written SDL_KEYDOWN […]

/ Comments Off on Space Invaders – Key input
Program: Programming