Author Archives: Carl Johansson

Haunted Light – Text and menu functionality, mostly

Hello. This week I’ve mainly been working on adding the functionalities and text in the options menu as well as making the credits screen. I’ve also been working on AI for one of the enemies in the game, but since I’m not finished with it just yet, I’m only going to cover it using pseudo code and not the code behind it. The AI will hopefully be finished tomorrow.

This is how the Options menu looks now. Not too […]

/ Comments Off on Haunted Light – Text and menu functionality, mostly
Program: Programming

Haunted Light – Text and menu functionality, mostly

Hello. This week I’ve mainly been working on adding the functionalities and text in the options menu as well as making the credits screen. I’ve also been working on AI for one of the enemies in the game, but since I’m not finished with it just yet, I’m only going to cover it using pseudo code and not the code behind it. The AI will hopefully be finished tomorrow.

This is how the Options menu looks now. Not too […]

/ Comments Off on Haunted Light – Text and menu functionality, mostly
Program: Programming

Haunted Light – Text and menu functionality, mostly

Hello. This week I’ve mainly been working on adding the functionalities and text in the options menu as well as making the credits screen. I’ve also been working on AI for one of the enemies in the game, but since I’m not finished with it just yet, I’m only going to cover it using pseudo code and not the code behind it. The AI will hopefully be finished tomorrow.

This is how the Options menu looks now. Not too […]

/ Comments Off on Haunted Light – Text and menu functionality, mostly
Program: Programming

Haunted Light – Text and menu functionality, mostly

Hello. This week I’ve mainly been working on adding the functionalities and text in the options menu as well as making the credits screen. I’ve also been working on AI for one of the enemies in the game, but since I’m not finished with it just yet, I’m only going to cover it using pseudo code and not the code behind it. The AI will hopefully be finished tomorrow.

This is how the Options menu looks now. Not too […]

/ Comments Off on Haunted Light – Text and menu functionality, mostly
Program: Programming

Haunted Light – Buttons and Menus!

Hello readers! This week I’ve been working on getting buttons into the menus and assign what they are going to do. After creating the button class it felt natural for me to take the task of putting them into the game and it’s menus, since I was the one that, probably and hopefully, knew the most about how they were made and how they work. If you don’t know how the buttons work, I’ll cover it shortly but I recommend […]

/ Comments Off on Haunted Light – Buttons and Menus!
Program: Programming

Haunted Light – Buttons and Menus!

Hello readers! This week I’ve been working on getting buttons into the menus and assign what they are going to do. After creating the button class it felt natural for me to take the task of putting them into the game and it’s menus, since I was the one that, probably and hopefully, knew the most about how they were made and how they work. If you don’t know how the buttons work, I’ll cover it shortly but I recommend […]

/ Comments Off on Haunted Light – Buttons and Menus!
Program: Programming

Haunted Light – Buttons and Menus!

Hello readers! This week I’ve been working on getting buttons into the menus and assign what they are going to do. After creating the button class it felt natural for me to take the task of putting them into the game and it’s menus, since I was the one that, probably and hopefully, knew the most about how they were made and how they work. If you don’t know how the buttons work, I’ll cover it shortly but I recommend […]

/ Comments Off on Haunted Light – Buttons and Menus!
Program: Programming

Haunted Light – Buttons and Menus!

Hello readers! This week I’ve been working on getting buttons into the menus and assign what they are going to do. After creating the button class it felt natural for me to take the task of putting them into the game and it’s menus, since I was the one that, probably and hopefully, knew the most about how they were made and how they work. If you don’t know how the buttons work, I’ll cover it shortly but I recommend […]

/ Comments Off on Haunted Light – Buttons and Menus!
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

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

Haunted Light – Pathfinding!

This was a hard nut to crack. And I’m not going to lie, our lead programmer, http://codergimmic.wordpress.com/, was extremely helpful with this, since he supplied me with A* pathfinding code from one of his projects. And so I analyzed that code and figured out the logic behind it. I also used this website to try and figure it out: http://www.policyalmanac.org/games/aStarTutorial.htm. I also read about A* at other sites, but those two sources were my main help […]

/ Comments Off on Haunted Light – Pathfinding!
Program: Programming

Haunted Light – Pathfinding!

This was a hard nut to crack. And I’m not going to lie, our lead programmer, http://codergimmic.wordpress.com/, was extremely helpful with this, since he supplied me with A* pathfinding code from one of his projects. And so I analyzed that code and figured out the logic behind it. I also used this website to try and figure it out: http://www.policyalmanac.org/games/aStarTutorial.htm. I also read about A* at other sites, but those two sources were my main help […]

/ Comments Off on Haunted Light – Pathfinding!
Program: Programming

Haunted Light – Pathfinding!

This was a hard nut to crack. And I’m not going to lie, our lead programmer, http://codergimmic.wordpress.com/, was extremely helpful with this, since he supplied me with A* pathfinding code from one of his projects. And so I analyzed that code and figured out the logic behind it. I also used this website to try and figure it out: http://www.policyalmanac.org/games/aStarTutorial.htm. I also read about A* at other sites, but those two sources were my main help […]

/ Comments Off on Haunted Light – Pathfinding!
Program: Programming

Haunted Light – Pathfinding!

This was a hard nut to crack. And I’m not going to lie, our lead programmer, http://codergimmic.wordpress.com/, was extremely helpful with this, since he supplied me with A* pathfinding code from one of his projects. And so I analyzed that code and figured out the logic behind it. I also used this website to try and figure it out: http://www.policyalmanac.org/games/aStarTutorial.htm. I also read about A* at other sites, but those two sources were my main help […]

/ Comments Off on Haunted Light – Pathfinding!
Program: Programming

Haunted Light – Base code for Enemies

Hello. Today I’ll be talking about the base for our enemy objects, how it works and how it’s different from the normal GameObject and also why that is. Both of the classes, EnemyObject and EnemyObjectManager, are heavily based on the already existing files PlayerObject, GameObject and GameObjectManager, with EnemyObject being a combination of GameObject and PlayerObject. The key differences are that the Enemy-ones doesn’t have keyboard and mouse as inputs, since you don’t control your enemies, and that EnemyObject doesn’t […]

/ Comments Off on Haunted Light – Base code for Enemies
Program: Programming

Haunted Light – Base code for Enemies

Hello. Today I’ll be talking about the base for our enemy objects, how it works and how it’s different from the normal GameObject and also why that is. Both of the classes, EnemyObject and EnemyObjectManager, are heavily based on the already existing files PlayerObject, GameObject and GameObjectManager, with EnemyObject being a combination of GameObject and PlayerObject. The key differences are that the Enemy-ones doesn’t have keyboard and mouse as inputs, since you don’t control your enemies, and that EnemyObject doesn’t […]

/ Comments Off on Haunted Light – Base code for Enemies
Program: Programming

Haunted Light – Base code for Enemies

Hello. Today I’ll be talking about the base for our enemy objects, how it works and how it’s different from the normal GameObject and also why that is. Both of the classes, EnemyObject and EnemyObjectManager, are heavily based on the already existing files PlayerObject, GameObject and GameObjectManager, with EnemyObject being a combination of GameObject and PlayerObject. The key differences are that the Enemy-ones doesn’t have keyboard and mouse as inputs, since you don’t control your enemies, and that EnemyObject doesn’t […]

/ Comments Off on Haunted Light – Base code for Enemies
Program: Programming

Haunted Light – Base code for Enemies

Hello. Today I’ll be talking about the base for our enemy objects, how it works and how it’s different from the normal GameObject and also why that is. Both of the classes, EnemyObject and EnemyObjectManager, are heavily based on the already existing files PlayerObject, GameObject and GameObjectManager, with EnemyObject being a combination of GameObject and PlayerObject. The key differences are that the Enemy-ones doesn’t have keyboard and mouse as inputs, since you don’t control your enemies, and that EnemyObject doesn’t […]

/ Comments Off on Haunted Light – Base code for Enemies
Program: Programming

Haunted Light – AnimatedSprite

Hello. Today I’ll be covering the AnimatedSprite class I’ve been creating for this project. It was a though one because of a lot of core changes in the program. Using SFML made it easier than I expected though because of its versatility. It also helped that I actually planned what the class was going to contain, and then build on from there. I even think that part saved me a lot of hassle since I first “sketched up” a first […]

/ Comments Off on Haunted Light – AnimatedSprite
Program: Programming

Haunted Light – AnimatedSprite

Hello. Today I’ll be covering the AnimatedSprite class I’ve been creating for this project. It was a though one because of a lot of core changes in the program. Using SFML made it easier than I expected though because of its versatility. It also helped that I actually planned what the class was going to contain, and then build on from there. I even think that part saved me a lot of hassle since I first “sketched up” a first […]

/ Comments Off on Haunted Light – AnimatedSprite
Program: Programming

Haunted Light – AnimatedSprite

Hello. Today I’ll be covering the AnimatedSprite class I’ve been creating for this project. It was a though one because of a lot of core changes in the program. Using SFML made it easier than I expected though because of its versatility. It also helped that I actually planned what the class was going to contain, and then build on from there. I even think that part saved me a lot of hassle since I first “sketched up” a first […]

/ Comments Off on Haunted Light – AnimatedSprite
Program: Programming

Haunted Light – AnimatedSprite

Hello. Today I’ll be covering the AnimatedSprite class I’ve been creating for this project. It was a though one because of a lot of core changes in the program. Using SFML made it easier than I expected though because of its versatility. It also helped that I actually planned what the class was going to contain, and then build on from there. I even think that part saved me a lot of hassle since I first “sketched up” a first […]

/ Comments Off on Haunted Light – AnimatedSprite
Program: Programming