Browsing 'Programming': Posts from Game Design and Programming

Event System in C++

As a part of getting input into the game I’m working on for the programming course we’re taking right now, I wanted to implement some kind of event system. I come from a background in web development, working a lot with javascript and actionscript and I tend to draw inspiration from there. I always liked the flexibility and ease of use of the event handling in javascript and actionscript, and I wanted to try and do something similar with my […]

/ Comments Off on Event System in C++
Program: Programming

Event System in C++

As a part of getting input into the game I’m working on for the programming course we’re taking right now, I wanted to implement some kind of event system. I come from a background in web development, working a lot with javascript and actionscript and I tend to draw inspiration from there. I always liked the flexibility and ease of use of the event handling in javascript and actionscript, and I wanted to try and do something similar with my […]

/ Comments Off on Event System in C++
Program: Programming

Programming Project, day 12

I’ve created states within the gamestate, two so far. They called “GamePlayState” and “GameEndState”.
I made a ScoreManager because that is the next step to expanding the game. It uses to save and load the current highscore.  It works and tracks the following things: current score, high score and player wins (support for 4 players, even though the rest of the game is hard coded to two at the moment).
To get all these things to work the way I want I […]

/ Comments Off on Programming Project, day 12
Program: Programming

Programming Project, day 12

I’ve created states within the gamestate, two so far. They called “GamePlayState” and “GameEndState”.
I made a ScoreManager because that is the next step to expanding the game. It uses to save and load the current highscore.  It works and tracks the following things: current score, high score and player wins (support for 4 players, even though the rest of the game is hard coded to two at the moment).
To get all these things to work the way I want I […]

/ Comments Off on Programming Project, day 12
Program: Programming

Levels!

Hi again!
I sat all christmas eve (yesterday)  trying to figure out why my enemy would not show up on the map.
I had made an EnemyObject class and the cpp-file pretty similar to the Player object files. I used the very basics of the Player object and removed the keybord forward declaration and it’s implementation in the constructor. Everything was in order, I debugged and the object was there and its collider at the correct position but there was no sprite! […]

/ Comments Off on Levels!
Program: Programming

Levels!

Hi again!
I sat all christmas eve (yesterday)  trying to figure out why my enemy would not show up on the map.
I had made an EnemyObject class and the cpp-file pretty similar to the Player object files. I used the very basics of the Player object and removed the keybord forward declaration and it’s implementation in the constructor. Everything was in order, I debugged and the object was there and its collider at the correct position but there was no sprite! […]

/ Comments Off on Levels!
Program: Programming

Programming Assignment, Blog Post 1

I’ve started working on the assignment, but I’m having a hard time making the duck objects when I have no draw or object manager which is part of my project partner’s chores.
I made a sound manager for the sound and music clips, but I get a lot of errors saying things like “Error 3 error LNK2001: unresolved external symbol _Mix_HaltChannel” so I don’t know if I missed adding anything to the project’s properties or it’s something else I’ve done wrong.
[…]

/ Comments Off on Programming Assignment, Blog Post 1
Program: Programming

Programming Assignment, Blog Post 1

I’ve started working on the assignment, but I’m having a hard time making the duck objects when I have no draw or object manager which is part of my project partner’s chores.
I made a sound manager for the sound and music clips, but I get a lot of errors saying things like “Error 3 error LNK2001: unresolved external symbol _Mix_HaltChannel” so I don’t know if I missed adding anything to the project’s properties or it’s something else I’ve done wrong.
[…]

/ Comments Off on Programming Assignment, Blog Post 1
Program: Programming

Frogger Dev. Post 05

Yesterday me and Herman started working on one part each, I worked on the Game State and such while Herman worked with the graphics. In the end we made some progress. The logic of the Player Object and Gamestate is now working in a good way. Upon creation of the Gamestate the Gameobjectmanager, the Drawmanager and the Spritemanager are all assigned as pointers and can therefore be accessed from the Enter() function that is used whenever the state starts being […]

/ Comments Off on Frogger Dev. Post 05
Program: Programming

Frogger Dev. Post 05

Yesterday me and Herman started working on one part each, I worked on the Game State and such while Herman worked with the graphics. In the end we made some progress. The logic of the Player Object and Gamestate is now working in a good way. Upon creation of the Gamestate the Gameobjectmanager, the Drawmanager and the Spritemanager are all assigned as pointers and can therefore be accessed from the Enter() function that is used whenever the state starts being […]

/ Comments Off on Frogger Dev. Post 05
Program: Programming

Today I’ve been trying to fix the Input and started working on sound.
I’ve been trying to debug and fix the input, but I just cant figure out whats wrong with it, I’ve sent the code to Anthon so he can take a look at it, in the meanwhile I have started working on how to get sound in the game, I missed that lecture but I got the code, now I’ve been trying to figure out exactly what is does […]

/ Comments Off on
Program: Programming

Today I’ve been trying to fix the Input and started working on sound.
I’ve been trying to debug and fix the input, but I just cant figure out whats wrong with it, I’ve sent the code to Anthon so he can take a look at it, in the meanwhile I have started working on how to get sound in the game, I missed that lecture but I got the code, now I’ve been trying to figure out exactly what is does […]

/ Comments Off on
Program: Programming

Levels!

Hi again!
I have suffered a hard weekend the last three days.. I have had NO INTERNET ACCESS at all! Tommi, the last three days of not posting does NOT count.
The weekend wasn’t all that bad though, I had my daughter and I have studied programming. Mostly pointers and the std vector array. Besides from that I have learned how the soundmanager works, there is now a pause function for the background Music and there is a sound when the character […]

/ Comments Off on Levels!
Program: Programming

Levels!

Hi again!
I have suffered a hard weekend the last three days.. I have had NO INTERNET ACCESS at all! Tommi, the last three days of not posting does NOT count.
The weekend wasn’t all that bad though, I had my daughter and I have studied programming. Mostly pointers and the std vector array. Besides from that I have learned how the soundmanager works, there is now a pause function for the background Music and there is a sound when the character […]

/ Comments Off on Levels!
Program: Programming

Programming Project, day 11 (christmas break)

Today I noticed and fixed some bugs that had to do with the sound volumes. That’s about the only thing I did today. There was a lot of christmas stuff to do here today, so!
I’m wondering about what to do next. I checked the planning document and I think it’s time to add a graphical user interface and TTF. I need to make the existing code regarding positions and size of tiles more dynamic first. Well, that’s for after christmas. I will […]

/ Comments Off on Programming Project, day 11 (christmas break)
Program: Programming

Programming Project, day 11 (christmas break)

Today I noticed and fixed some bugs that had to do with the sound volumes. That’s about the only thing I did today. There was a lot of christmas stuff to do here today, so!
I’m wondering about what to do next. I checked the planning document and I think it’s time to add a graphical user interface and TTF. I need to make the existing code regarding positions and size of tiles more dynamic first. Well, that’s for after christmas. I will […]

/ Comments Off on Programming Project, day 11 (christmas break)
Program: Programming

2013-12-23

Today I’ve been drawing loads of sprites of one of the playable characters to our game:

/ Comments Off on 2013-12-23
Program: Programming

2013-12-23

Today I’ve been drawing loads of sprites of one of the playable characters to our game:

/ Comments Off on 2013-12-23
Program: Programming

Day 7, Day before Christmas

I managed to get a little work done. I made a basic level class that is used to draw the level in the GameState. I played around with sprites as well and added fullscreen as soon as you enter the gamestate.Here is a screen of what we got so far.

It’s nice to get a visual of all the code done so far. Sure it’s not a game yet but it’s a start.Now its time for some […]

/ Comments Off on Day 7, Day before Christmas
Program: Programming

Day 7, Day before Christmas

I managed to get a little work done. I made a basic level class that is used to draw the level in the GameState. I played around with sprites as well and added fullscreen as soon as you enter the gamestate.Here is a screen of what we got so far.

It’s nice to get a visual of all the code done so far. Sure it’s not a game yet but it’s a start.Now its time for some […]

/ Comments Off on Day 7, Day before Christmas
Program: Programming

Credit where it’s due, and it’s not here.

I forgot to make a blog post last night and decided it was better to do it today then to do it while tired.
Yesterday we finally got together and had a skype call with screen sharing going and worked together. I felt like i had no idea what i was doing as i went through the code trying to understand the states Martin had added earlier. Later we decided that i should work on game objects and getting a player […]

/ Comments Off on Credit where it’s due, and it’s not here.
Program: Programming

Credit where it’s due, and it’s not here.

I forgot to make a blog post last night and decided it was better to do it today then to do it while tired.
Yesterday we finally got together and had a skype call with screen sharing going and worked together. I felt like i had no idea what i was doing as i went through the code trying to understand the states Martin had added earlier. Later we decided that i should work on game objects and getting a player […]

/ Comments Off on Credit where it’s due, and it’s not here.
Program: Programming

Input Manager & sprite

Today we managed to do alot of stuff. We have created a very flexible class, Entity all game objects will instance of or inherit. We added keyboard and mouse input to every state.

Tomorrow I continue on our project plan and make blocks fall and stack on the bottom of the screen.I also think we should resize the player object.Laban is currrently working on SFX which I have no clue about how to do. I think we’ll […]

/ Comments Off on Input Manager & sprite
Program: Programming

Input Manager & sprite

Today we managed to do alot of stuff. We have created a very flexible class, Entity all game objects will instance of or inherit. We added keyboard and mouse input to every state.

Tomorrow I continue on our project plan and make blocks fall and stack on the bottom of the screen.I also think we should resize the player object.Laban is currrently working on SFX which I have no clue about how to do. I think we’ll […]

/ Comments Off on Input Manager & sprite
Program: Programming