Monthly Archives: December 2013

Spelprogrammering 1/ Game Programming 1

Jag och Andrée Henriksson ska tillsammans skapa ett spel i c++ samt använda oss av SDL katalogen.
Spelet som vi ska skapa ska vara ett klassiskt Tower Defence spel.
Project Plan
Game genre: Tower Defense
A simple Tower Defense with 3 different towers. Enemies walk from A to B following a path. The players objective is to put towers on the side of the path to stop them from reaching their destination.
Towers: 3 different
– Standard canon tower
– Long-range sniper tower
– Short-range heavy tower
Money: Each enemy […]

/ Comments Off on Spelprogrammering 1/ Game Programming 1
Program: Programming

Spelprogrammering 1/ Game Programming 1

Jag och Andrée Henriksson ska tillsammans skapa ett spel i c++ samt använda oss av SDL katalogen.
Spelet som vi ska skapa ska vara ett klassiskt Tower Defence spel.
Project Plan
Game genre: Tower Defense
A simple Tower Defense with 3 different towers. Enemies walk from A to B following a path. The players objective is to put towers on the side of the path to stop them from reaching their destination.
Towers: 3 different
– Standard canon tower
– Long-range sniper tower
– Short-range heavy tower
Money: Each enemy […]

/ Comments Off on Spelprogrammering 1/ Game Programming 1
Program: Programming

Game Programming 1

So, I am currently taking the Game Programming 1 course now. The first 3 lectures covered everything I knew about programming. The rest have been all new stuff for me. We have been using the SDL library commonly used in Game programming and the pace is very fast, at least for me.
We have reached the point where we were given our assignment. In pairs, we are supposed to make a 2d-game and write individual reports about its process.
My team-mate Jonas […]

/ Comments Off on Game Programming 1
Program: Programming

Game Programming 1

So, I am currently taking the Game Programming 1 course now. The first 3 lectures covered everything I knew about programming. The rest have been all new stuff for me. We have been using the SDL library commonly used in Game programming and the pace is very fast, at least for me.
We have reached the point where we were given our assignment. In pairs, we are supposed to make a 2d-game and write individual reports about its process.
My team-mate Jonas […]

/ Comments Off on Game Programming 1
Program: Programming

Working on a level editor

I´m working on a level editor to use in future games. The level editor is made in JavaScript and I will soon release it in public.
 TODO:Set custom dimension for gameAdding support for multiple layersAdding support for custom tiles – I have to make this very flexible. I have some thoughts in autoloading img from url.Adding auto generated map ready to be edited
Here is a picture of how it looks right now.

I drew this myself, […]

/ Comments Off on Working on a level editor
Program: Programming

Working on a level editor

I´m working on a level editor to use in future games. The level editor is made in JavaScript and I will soon release it in public.
 TODO:Set custom dimension for gameAdding support for multiple layersAdding support for custom tiles – I have to make this very flexible. I have some thoughts in autoloading img from url.Adding auto generated map ready to be edited
Here is a picture of how it looks right now.

I drew this myself, […]

/ Comments Off on Working on a level editor
Program: Programming

Is point within a rectangle

I came up with this neat function to check if a point [x,y] is within a rectangle [x, y, width, height].
It´s made in Javascript but can be applied to ALL languages.
// CommentUtils.pointWithinRect = function(point, rect) { var px = point[0]; var py = point[1]; var top = rect.y; var left = rect.x; var bottom = rect.y + rect.height; var right […]

/ Comments Off on Is point within a rectangle
Program: Programming

Is point within a rectangle

I came up with this neat function to check if a point [x,y] is within a rectangle [x, y, width, height].
It´s made in Javascript but can be applied to ALL languages.
// CommentUtils.pointWithinRect = function(point, rect) { var px = point[0]; var py = point[1]; var top = rect.y; var left = rect.x; var bottom = rect.y + rect.height; var right […]

/ Comments Off on Is point within a rectangle
Program: Programming

Started with our programming project today, took a while to figure out how GitHub works, but got it now. Hopefully it will work as intended throughout the whole thing.

/ Comments Off on
Program: Programming

Started with our programming project today, took a while to figure out how GitHub works, but got it now. Hopefully it will work as intended throughout the whole thing.

/ Comments Off on
Program: Programming

Frogger Progress

After spending a large part of this evening with the Frogger assignment its now time for the daily update (even though its past midnight).
Today I’ve spent much time thinking of in which order to build up the game, Ended up with me working on implementing GameStates.
While its a work in progress i think its important to get this in as early as possible, in order to make it easier to work with rather than getting the game states later.
As of […]

/ Comments Off on Frogger Progress
Program: Programming

Frogger Progress

After spending a large part of this evening with the Frogger assignment its now time for the daily update (even though its past midnight).
Today I’ve spent much time thinking of in which order to build up the game, Ended up with me working on implementing GameStates.
While its a work in progress i think its important to get this in as early as possible, in order to make it easier to work with rather than getting the game states later.
As of […]

/ Comments Off on Frogger Progress
Program: Programming

Programming Project, day 6

After todays lecture I added animations to the PlayerObjects, it works very well! There are now animations for idle and walking in four directions.
Next up is getting the bombs to explode, spreading fire in the correct way and getting it to destroy bricks/kill players. There after, its time to get the animations right on the explosions. Then, powerups! The game is pretty close to being playable now.

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

Programming Project, day 6

After todays lecture I added animations to the PlayerObjects, it works very well! There are now animations for idle and walking in four directions.
Next up is getting the bombs to explode, spreading fire in the correct way and getting it to destroy bricks/kill players. There after, its time to get the animations right on the explosions. Then, powerups! The game is pretty close to being playable now.

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

Teapots and pretty lights!

I’ve recently been experimenting a lot with OpenGL as a part of an assignment in the programming course I’m taking right now. Playing around with lighting has really captivated me. I love creating visuals through code, the instant feedback that you get when the smallest code change entirely transforms the feel of a scene is simply intoxicating!

/ Comments Off on Teapots and pretty lights!
Program: Programming

Teapots and pretty lights!

I’ve recently been experimenting a lot with OpenGL as a part of an assignment in the programming course I’m taking right now. Playing around with lighting has really captivated me. I love creating visuals through code, the instant feedback that you get when the smallest code change entirely transforms the feel of a scene is simply intoxicating!

/ Comments Off on Teapots and pretty lights!
Program: Programming

Day 5

I stayed home this morning to work on the project alone. I managed to understand the use of states and I made the frame for a virtual State class. I also made a MenuState class, GameState class and a StateManager class keeping track of it all. It felt good when i figured out how to implement it all. I’m not sure I’m doing it “the right way” but it works in its basic form but the classes still need much […]

/ Comments Off on Day 5
Program: Programming

Day 5

I stayed home this morning to work on the project alone. I managed to understand the use of states and I made the frame for a virtual State class. I also made a MenuState class, GameState class and a StateManager class keeping track of it all. It felt good when i figured out how to implement it all. I’m not sure I’m doing it “the right way” but it works in its basic form but the classes still need much […]

/ Comments Off on Day 5
Program: Programming

Character Design

The third week of the 2D-course was spent on developing a character from one of the thumbnails we created during the first week, we were supposed to hand in the original thumbnail, a construction drawing and one complete drawing that is the last step before clean up. (The close up of the face was one of the VG criterias).
For a real game project I am not sure if the character i chose is the most interesting one to develop, […]

/ Comments Off on Character Design
Program: Graphics

Character Design

The third week of the 2D-course was spent on developing a character from one of the thumbnails we created during the first week, we were supposed to hand in the original thumbnail, a construction drawing and one complete drawing that is the last step before clean up. (The close up of the face was one of the VG criterias).
For a real game project I am not sure if the character i chose is the most interesting one to develop, […]

/ Comments Off on Character Design
Program: Graphics

The Pitch

I just realised that I had written this post about our big presentation but forgotten to post it so here it is.This Monday was the day we had to be finished with our projects and pitch them to the rest of our class, the second year students, our teacher and staff. Of course we where nervous but we felt prepared as we had practiced a lot and put a lot of time into this […]

/ Comments Off on The Pitch
Program: Graphics

The Pitch

I just realised that I had written this post about our big presentation but forgotten to post it so here it is.This Monday was the day we had to be finished with our projects and pitch them to the rest of our class, the second year students, our teacher and staff. Of course we where nervous but we felt prepared as we had practiced a lot and put a lot of time into this […]

/ Comments Off on The Pitch
Program: Graphics

2D Week 2 Perspective

The second week of the 2D-course we studied perspective, once you know how to do it is rather straight forwards but it is tedious work and I did not find photoshop the best tool for this week’s assignment which was to draw an airplane and a car in the same picture. Here is what I did along with the reflective assignment of the week.After having drawn on paper during this week I have realised how messy it can be […]

/ Comments Off on 2D Week 2 Perspective
Program: Graphics

2D Week 2 Perspective

The second week of the 2D-course we studied perspective, once you know how to do it is rather straight forwards but it is tedious work and I did not find photoshop the best tool for this week’s assignment which was to draw an airplane and a car in the same picture. Here is what I did along with the reflective assignment of the week.After having drawn on paper during this week I have realised how messy it can be […]

/ Comments Off on 2D Week 2 Perspective
Program: Graphics