Browsing '5SD022': Game Programming I

Proper length post, if only i had this much to write every day.

Okay, not on top today due to a case of migraine but thanks to the wonders of pharmaceutical science i am well enough to shake up something more than i did last night,
So, I had Visual studio 2013 installed on the school laptop since i had been working on my stationary computer during the break. I could have sworn we were supposed to install 2012, note to self, look that up this Friday.
Second note, Great news. I found the error in […]

/ Comments Off on Proper length post, if only i had this much to write every day.
Program: Programming

Proper length post, if only i had this much to write every day.

Okay, not on top today due to a case of migraine but thanks to the wonders of pharmaceutical science i am well enough to shake up something more than i did last night,
So, I had Visual studio 2013 installed on the school laptop since i had been working on my stationary computer during the break. I could have sworn we were supposed to install 2012, note to self, look that up this Friday.
Second note, Great news. I found the error in […]

/ Comments Off on Proper length post, if only i had this much to write every day.
Program: Programming

Understanding Managers

I’ve been fiddle ling with GameObjectManagers and InputManagers and I’ve noticed something.
It’s not really necessary to implement these into this game but it’s essential for the grade, fun note; grade is more important.
The GameObjectManager was built using iterators, you create a list of objects, update their positions to know where they are and by the architects command delete and create new ones accordingly.It of course wasn’t my idea like anything during this course so I was very impressed by the […]

/ Comments Off on Understanding Managers
Program: Programming

Understanding Managers

I’ve been fiddle ling with GameObjectManagers and InputManagers and I’ve noticed something.
It’s not really necessary to implement these into this game but it’s essential for the grade, fun note; grade is more important.
The GameObjectManager was built using iterators, you create a list of objects, update their positions to know where they are and by the architects command delete and create new ones accordingly.It of course wasn’t my idea like anything during this course so I was very impressed by the […]

/ Comments Off on Understanding Managers
Program: Programming

Game Programming – Assignment day 14

Created the State manager class and several state classes.
Need to move the code in engine to the game state class.
Tried improving the way the player start position was loaded from a file, will need to get back on that.
Managed to make a bullet object spawn at the player ship cannon. Now I need a way to make it move as well as a way to make it possible for several bullets to exist at the same time, states will no […]

/ Comments Off on Game Programming – Assignment day 14
Program: Programming

Game Programming – Assignment day 14

Created the State manager class and several state classes.
Need to move the code in engine to the game state class.
Tried improving the way the player start position was loaded from a file, will need to get back on that.
Managed to make a bullet object spawn at the player ship cannon. Now I need a way to make it move as well as a way to make it possible for several bullets to exist at the same time, states will no […]

/ Comments Off on Game Programming – Assignment day 14
Program: Programming

Back from holiday and on to school

Aside from relaxing during the holiday me and my Enchant group finally made the game. Now I know how it feels to both code and do a level design and it takes much more time than one would’ve expect. During the next days I will post the project plan (should’ve posted it earlier) for our Arkanoid game project that is due to Sunday next week (if I recall correctly), and I’ve to prepare for some crunching again. I prioritized the […]

/ Comments Off on Back from holiday and on to school
Program: Programming

Back from holiday and on to school

Aside from relaxing during the holiday me and my Enchant group finally made the game. Now I know how it feels to both code and do a level design and it takes much more time than one would’ve expect. During the next days I will post the project plan (should’ve posted it earlier) for our Arkanoid game project that is due to Sunday next week (if I recall correctly), and I’ve to prepare for some crunching again. I prioritized the […]

/ Comments Off on Back from holiday and on to school
Program: Programming

Frogger the game

Så då har vi äntligen börjat på projektarbetet till programmerings kursen. Vi har valt att göra det gamla spelet Frogger och har redan kommit en bit på vägen.
Jag ska sätta mig och börja skaffa fram bilarna på skärmen, det kommer nog bli en lista med bilar som när de åkt över skärmen bara dyker upp från början igen.

/ Comments Off on Frogger the game
Program: Programming

Frogger the game

Så då har vi äntligen börjat på projektarbetet till programmerings kursen. Vi har valt att göra det gamla spelet Frogger och har redan kommit en bit på vägen.
Jag ska sätta mig och börja skaffa fram bilarna på skärmen, det kommer nog bli en lista med bilar som när de åkt över skärmen bara dyker upp från början igen.

/ Comments Off on Frogger the game
Program: Programming

too late to blog

I totally forgot to make a post today, i’ll make a more detailed one tomorrow.
Since Sunday I’ve installed Visual studio 2013 on the laptop, found the animation error and merged my code with Martin’s. More on these developments tomorrow.

/ Comments Off on too late to blog
Program: Programming

too late to blog

I totally forgot to make a post today, i’ll make a more detailed one tomorrow.
Since Sunday I’ve installed Visual studio 2013 on the laptop, found the animation error and merged my code with Martin’s. More on these developments tomorrow.

/ Comments Off on too late to blog
Program: Programming

Update programming project

Back from Christmas holiday and New Year celebrations. I have not updated my work for a while and the reason is because I have been busy during the holidays with other things. But now it is time to continue the work. We have now about 2 weeks left to finish our Tower Defence game.
I and Andrée will work as much as we can this week so that we 100 % can finalize the game next week.
Day’s work  2014-1-07
I’m still working to […]

/ Comments Off on Update programming project
Program: Programming

Update programming project

Back from Christmas holiday and New Year celebrations. I have not updated my work for a while and the reason is because I have been busy during the holidays with other things. But now it is time to continue the work. We have now about 2 weeks left to finish our Tower Defence game.
I and Andrée will work as much as we can this week so that we 100 % can finalize the game next week.
Day’s work  2014-1-07
I’m still working to […]

/ Comments Off on Update programming project
Program: Programming

Programming Project, day 18

Today was a good day. I’ve added a state, restrictions to how many games can be played for one “run” and added another bomberman look for the second player.
The state I added is one within the game state called “setup state” which is, you guessed it, for setting up the game. Right now there is only one setting, “best of”. Currently one can only choose best of 3, 5 or 7.
I’ve added buttons and objects to the new state and the […]

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

Programming Project, day 18

Today was a good day. I’ve added a state, restrictions to how many games can be played for one “run” and added another bomberman look for the second player.
The state I added is one within the game state called “setup state” which is, you guessed it, for setting up the game. Right now there is only one setting, “best of”. Currently one can only choose best of 3, 5 or 7.
I’ve added buttons and objects to the new state and the […]

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

A big update

So I’ve been working on creating a character that moves and behaves just like frogger and I think I’ve succeeded. Problem now is to make the games GameObjectManager, InputManager and Collision. I will further update this blog when I have succeeded in doing this. 
 
Main problem I had with movement was simply my idiotic attempt of trying to copy paste code in where I sought was fitting for the code to be placed. I got a lot of help from my […]

/ Comments Off on A big update
Program: Programming

A big update

So I’ve been working on creating a character that moves and behaves just like frogger and I think I’ve succeeded. Problem now is to make the games GameObjectManager, InputManager and Collision. I will further update this blog when I have succeeded in doing this. 
 
Main problem I had with movement was simply my idiotic attempt of trying to copy paste code in where I sought was fitting for the code to be placed. I got a lot of help from my […]

/ Comments Off on A big update
Program: Programming

Game Programming – Assignment day 13

Started on the bullet class today.
Made a bullet that spawns on the screen at coordinates x100 y100, will change this later to be dependent on the player’s position.
The bullet moves upwards slightly faster than the player, may change this later to be much faster than the player speed.
Created a bool method called ”Fire” in the player class that returns true when space is pressed.
The intention is to make bullet objects spawn at the players cannon when pressing space using the […]

/ Comments Off on Game Programming – Assignment day 13
Program: Programming

Game Programming – Assignment day 13

Started on the bullet class today.
Made a bullet that spawns on the screen at coordinates x100 y100, will change this later to be dependent on the player’s position.
The bullet moves upwards slightly faster than the player, may change this later to be much faster than the player speed.
Created a bool method called ”Fire” in the player class that returns true when space is pressed.
The intention is to make bullet objects spawn at the players cannon when pressing space using the […]

/ Comments Off on Game Programming – Assignment day 13
Program: Programming

KreakOut #3 – Since when could I get collisions to work?

Lately I’ve worked with collision detection and it’s actually going better than expected. The ball travels the way it should without any bigger problems.

To find out what side the collision was made on (so the direction would be correct), I had to start checking the offset and that was solved with a couple of if/else without any problems at all actually (to my big surprise).
Next step was changing the directions depending on where on the paddle the ball hits (would […]

/ Comments Off on KreakOut #3 – Since when could I get collisions to work?
Program: Programming

KreakOut #3 – Since when could I get collisions to work?

Lately I’ve worked with collision detection and it’s actually going better than expected. The ball travels the way it should without any bigger problems.

To find out what side the collision was made on (so the direction would be correct), I had to start checking the offset and that was solved with a couple of if/else without any problems at all actually (to my big surprise).
Next step was changing the directions depending on where on the paddle the ball hits (would […]

/ Comments Off on KreakOut #3 – Since when could I get collisions to work?
Program: Programming

Post #2 Collision, Directions, Audio

Today has been our first day of working together in the classroom. We’ve dealt mostly with directions and the collision of the ball in relation to the paddle (aka playerobject). We’ve had some.. misfortune with how the ball acts when it collides with different objects in the game. For the most time it acts the way we want, but sometimes it just suddenly changes direction completely and heads to a new way. We like to call it an official feature […]

/ Comments Off on Post #2 Collision, Directions, Audio
Program: Programming

Post #2 Collision, Directions, Audio

Today has been our first day of working together in the classroom. We’ve dealt mostly with directions and the collision of the ball in relation to the paddle (aka playerobject). We’ve had some.. misfortune with how the ball acts when it collides with different objects in the game. For the most time it acts the way we want, but sometimes it just suddenly changes direction completely and heads to a new way. We like to call it an official feature […]

/ Comments Off on Post #2 Collision, Directions, Audio
Program: Programming