Browsing 'Programming': Posts from Game Design and Programming

4th blog post of 10 Week Project – Designing The End Game Boss

Since the beta is next week, we have tried to finish the design of the end game boss.
The enemies of the game are made of three elemental types and it was decided that the boss would possess all of these elements. What element she is currently using will be shown by changing the color of the sprite and by having different projectiles/attacks for each element. The visual representation of our boss will be somewhat like the lost souls but wearing […]

/ Comments Off on 4th blog post of 10 Week Project – Designing The End Game Boss
Program: Programming

4th blog post of 10 Week Project – Designing The End Game Boss

Since the beta is next week, we have tried to finish the design of the end game boss.
The enemies of the game are made of three elemental types and it was decided that the boss would possess all of these elements. What element she is currently using will be shown by changing the color of the sprite and by having different projectiles/attacks for each element. The visual representation of our boss will be somewhat like the lost souls but wearing […]

/ Comments Off on 4th blog post of 10 Week Project – Designing The End Game Boss
Program: Programming

4th blog post of 10 Week Project – Designing The End Game Boss

Since the beta is next week, we have tried to finish the design of the end game boss.
The enemies of the game are made of three elemental types and it was decided that the boss would possess all of these elements. What element she is currently using will be shown by changing the color of the sprite and by having different projectiles/attacks for each element. The visual representation of our boss will be somewhat like the lost souls but wearing […]

/ Comments Off on 4th blog post of 10 Week Project – Designing The End Game Boss
Program: Programming

4th blog post of 10 Week Project – Designing The End Game Boss

Since the beta is next week, we have tried to finish the design of the end game boss.
The enemies of the game are made of three elemental types and it was decided that the boss would possess all of these elements. What element she is currently using will be shown by changing the color of the sprite and by having different projectiles/attacks for each element. The visual representation of our boss will be somewhat like the lost souls but wearing […]

/ Comments Off on 4th blog post of 10 Week Project – Designing The End Game Boss
Program: Programming

Sprint planning + progression (?)

As usual I am going to write about the past week and what I’ve done as a coder in the group. So last week I had a bunch of things to, and the following picture showes what the assigned tasks were that I was expected to do:

 
As you can see there were a total of eight artifacts and the estimated work hours summed up to a total of whopping 52 hours in a week, so it isn’t hard to […]

/ Comments Off on Sprint planning + progression (?)
Program: Programming

Sprint planning + progression (?)

As usual I am going to write about the past week and what I’ve done as a coder in the group. So last week I had a bunch of things to, and the following picture showes what the assigned tasks were that I was expected to do:

 
As you can see there were a total of eight artifacts and the estimated work hours summed up to a total of whopping 52 hours in a week, so it isn’t hard to […]

/ Comments Off on Sprint planning + progression (?)
Program: Programming

Leakin’ dem bytes

Memory leaks are something that programmers (especially those in C and C++) always have to keep in mind. Unfortunately, we didn’t really think about them until roughly halfway into the project. That means we end up with something like this:

Taken from our pre-alpha playtesting build.

This could have ended up a lot worse than it actually did. We didn’t really have any constant leaks, so the total leaks didn’t grow in size.
Now, for those of you that aren’t that into programming, […]

/ Comments Off on Leakin’ dem bytes
Program: Programming

Leakin’ dem bytes

Memory leaks are something that programmers (especially those in C and C++) always have to keep in mind. Unfortunately, we didn’t really think about them until roughly halfway into the project. That means we end up with something like this:

Taken from our pre-alpha playtesting build.

This could have ended up a lot worse than it actually did. We didn’t really have any constant leaks, so the total leaks didn’t grow in size.
Now, for those of you that aren’t that into programming, […]

/ Comments Off on Leakin’ dem bytes
Program: Programming

Haunted Light – Button class

This time I’ll be talking about a simple Button-class that I created this weak and the planning involved around it.
When I was thinking this through and listing everything I needed for the class to do what we want it to do, I planned it to be unnecessarily complicated. How I planned it was that it would be very similar to SFML’s own Sprite class. By creating 4 points, or verticies, they dictate the buttons size and then we could […]

/ Comments Off on Haunted Light – Button class
Program: Programming

Haunted Light – Button class

This time I’ll be talking about a simple Button-class that I created this weak and the planning involved around it.
When I was thinking this through and listing everything I needed for the class to do what we want it to do, I planned it to be unnecessarily complicated. How I planned it was that it would be very similar to SFML’s own Sprite class. By creating 4 points, or verticies, they dictate the buttons size and then we could […]

/ Comments Off on Haunted Light – Button class
Program: Programming

Week 7 – With Intent

There isn’t much I can write about this week, since I got a sudden call this Tuesday. I’ll be taking the ferry back to the mainland tomorrow afternoon, I’ll earn some money from it and the traveling expenses is being paid, I couldn’t really pass up on that now could I?
During the last weekend and into Monday, I’ve been working on the Collision Manager, Unlike the first version of the collision manager that took 2 arguments (position and radius), the […]

/ Comments Off on Week 7 – With Intent
Program: Programming

Week 7 – With Intent

There isn’t much I can write about this week, since I got a sudden call this Tuesday. I’ll be taking the ferry back to the mainland tomorrow afternoon, I’ll earn some money from it and the traveling expenses is being paid, I couldn’t really pass up on that now could I?
During the last weekend and into Monday, I’ve been working on the Collision Manager, Unlike the first version of the collision manager that took 2 arguments (position and radius), the […]

/ Comments Off on Week 7 – With Intent
Program: Programming

Game configurations

Today I am going to talk about game configurations and how they were implemented in the project. A configuration file is just a ordinary text file with game information that is loaded into the game. But I am not doing this the ordinary way, I am using something much better.We start of this post by asking ourselves a question.
Why do we need configurations?Every game needs some sort of configuration to make it easier to change things on demand and making it […]

/ Comments Off on Game configurations
Program: Programming

Game configurations

Today I am going to talk about game configurations and how they were implemented in the project. A configuration file is just a ordinary text file with game information that is loaded into the game. But I am not doing this the ordinary way, I am using something much better.We start of this post by asking ourselves a question.
Why do we need configurations?Every game needs some sort of configuration to make it easier to change things on demand and making it […]

/ Comments Off on Game configurations
Program: Programming

Problem solved! Next Mission: WeaponManager and EquipManager

This week I will start with some good professional work:
During this past week I have gotten the WeaponManager to correctly work.
In order to make the std::map in my favor I needed the pointer* in the class I wanted to use weapon to make a new weapon and a new weaponManager.
Like this bellow as you can see I have added a Weapon* pointer in order to even find the data I thought was there to begin with.
You hit and miss sometimes […]

/ Comments Off on Problem solved! Next Mission: WeaponManager and EquipManager
Program: Programming

Problem solved! Next Mission: WeaponManager and EquipManager

This week I will start with some good professional work:
During this past week I have gotten the WeaponManager to correctly work.
In order to make the std::map in my favor I needed the pointer* in the class I wanted to use weapon to make a new weapon and a new weaponManager.
Like this bellow as you can see I have added a Weapon* pointer in order to even find the data I thought was there to begin with.
You hit and miss sometimes […]

/ Comments Off on Problem solved! Next Mission: WeaponManager and EquipManager
Program: Programming

Game Developement and Coding 6 March 2014 – Rubbish Bin Class

Rubbish Bin Class.
Might not sound all too exciting, but rubbish bins in our game space play an important role for the game play. They can be knocked over by the player and when this is done a power up might spawn by the bin. Otherwise there will only be trash coming out of it.
The basics of the class were simple enough to code. I simply made a new class type with its own sprite, collider (for checking collisions) and variables, […]

/ Comments Off on Game Developement and Coding 6 March 2014 – Rubbish Bin Class
Program: Programming

Game Developement and Coding 6 March 2014 – Rubbish Bin Class

Rubbish Bin Class.
Might not sound all too exciting, but rubbish bins in our game space play an important role for the game play. They can be knocked over by the player and when this is done a power up might spawn by the bin. Otherwise there will only be trash coming out of it.
The basics of the class were simple enough to code. I simply made a new class type with its own sprite, collider (for checking collisions) and variables, […]

/ Comments Off on Game Developement and Coding 6 March 2014 – Rubbish Bin Class
Program: Programming

Bosses implemented

This week I have finally implemented the AI for all our three bosses, and tried to balance them somewhat. I will explain some of the balancing in this post, for the bosses’ different AI take a look at my previous post from last week.
I started with our boss Grubby McGrub (the whack-a-mole boss). When he shoots up from the ground he will shoot some slime at you. I started with one, aimed at the player, and then added four more shooting […]

/ Comments Off on Bosses implemented
Program: Programming

Bosses implemented

This week I have finally implemented the AI for all our three bosses, and tried to balance them somewhat. I will explain some of the balancing in this post, for the bosses’ different AI take a look at my previous post from last week.
I started with our boss Grubby McGrub (the whack-a-mole boss). When he shoots up from the ground he will shoot some slime at you. I started with one, aimed at the player, and then added four more shooting […]

/ Comments Off on Bosses implemented
Program: Programming

Suit Em Up, various stuff and some other stuff including particles

Once again I haven’t worked on one artifact enough this week to justify writing a whole blogpost about it, so because I have to write something I’ll write a bit about what I’ve done this week. I’ve been touching up some small things and added a few new smaller features.
First off, I had some troubles with adding a non-repeating sound effect that plays when you are hovering over a button. First I did the stupid thing and was trying to […]

/ Comments Off on Suit Em Up, various stuff and some other stuff including particles
Program: Programming

Suit Em Up, various stuff and some other stuff including particles

Once again I haven’t worked on one artifact enough this week to justify writing a whole blogpost about it, so because I have to write something I’ll write a bit about what I’ve done this week. I’ve been touching up some small things and added a few new smaller features.
First off, I had some troubles with adding a non-repeating sound effect that plays when you are hovering over a button. First I did the stupid thing and was trying to […]

/ Comments Off on Suit Em Up, various stuff and some other stuff including particles
Program: Programming

Artifact : SoundManager

What?
The soundmanager is an essential part of the game. and required to play both sound effect and music. It allows for in the code easily use the soundmanager and call its play function with the given path parameter. if such a sound has already been played it will simply play the sound. otherwise it will add the sound before playing it.  more details on this in the next section with how it was made.
How?
The SoundManager I’ve created is done by […]

/ Comments Off on Artifact : SoundManager
Program: Programming

Artifact : SoundManager

What?
The soundmanager is an essential part of the game. and required to play both sound effect and music. It allows for in the code easily use the soundmanager and call its play function with the given path parameter. if such a sound has already been played it will simply play the sound. otherwise it will add the sound before playing it.  more details on this in the next section with how it was made.
How?
The SoundManager I’ve created is done by […]

/ Comments Off on Artifact : SoundManager
Program: Programming