Browsing '5SD022': Game Programming I

Project plan (albeit delayed and inaccurate)

It was my team mate Georgios that made most of this so kudos to him. The goal with this project is to make an Arkanoid-kind game with the use of c++ and SDL. The project responsibilities are as followed (however not restricted to only): “Georgios is in charge of putting the parts of the program together while Stefan is in charge of creating classes that can be implemented into the main program. The aim is to implement all the basic features first to get […]

/ Comments Off on Project plan (albeit delayed and inaccurate)
Program: Programming

Project plan (albeit delayed and inaccurate)

It was my team mate Georgios that made most of this so kudos to him. The goal with this project is to make an Arkanoid-kind game with the use of c++ and SDL. The project responsibilities are as followed (however not restricted to only): “Georgios is in charge of putting the parts of the program together while Stefan is in charge of creating classes that can be implemented into the main program. The aim is to implement all the basic features first to get […]

/ Comments Off on Project plan (albeit delayed and inaccurate)
Program: Programming

Programming Project, day 20 – part 2

Made another small change to the GameEndState, added two textobjects, a title text (“Score screen”) and one that displays the current highscore.
Also, I think there are some pointers that aren’t deleted in the GamePlayState when exiting it.

/ Comments Off on Programming Project, day 20 – part 2
Program: Programming

Programming Project, day 20 – part 2

Made another small change to the GameEndState, added two textobjects, a title text (“Score screen”) and one that displays the current highscore.
Also, I think there are some pointers that aren’t deleted in the GamePlayState when exiting it.

/ Comments Off on Programming Project, day 20 – part 2
Program: Programming

R-kanoid progression with music and sound

After I had that meeting it felt a lot better since I got another perspective on programming and my situation. The game’s new name is “R-kanoid” which gives it a little twist, and yesterday I sat with the code and tried to figure out how to implement the code to the music and sound and trying to understand it, and I do understand it slightly but not as much as I would like to because there is much that I […]

/ Comments Off on R-kanoid progression with music and sound
Program: Programming

R-kanoid progression with music and sound

After I had that meeting it felt a lot better since I got another perspective on programming and my situation. The game’s new name is “R-kanoid” which gives it a little twist, and yesterday I sat with the code and tried to figure out how to implement the code to the music and sound and trying to understand it, and I do understand it slightly but not as much as I would like to because there is much that I […]

/ Comments Off on R-kanoid progression with music and sound
Program: Programming

Programming Project, day 20 – Artificial Intelligence working!

The artificial “intelligence” works now! It was really fun working with. Right now it only has one state, “Farming”.
Actually, the state works in two ways and I will transfer one of these ways to another state which I will call “Fleeing”, “Escaping” or something like that. The “Farming” AI checks the nearby tiles, moves and places a bomb if the conditions are right. Then it runs away (this will be transferred to the “Flee” state) and repeats. It only checks […]

/ Comments Off on Programming Project, day 20 – Artificial Intelligence working!
Program: Programming

Programming Project, day 20 – Artificial Intelligence working!

The artificial “intelligence” works now! It was really fun working with. Right now it only has one state, “Farming”.
Actually, the state works in two ways and I will transfer one of these ways to another state which I will call “Fleeing”, “Escaping” or something like that. The “Farming” AI checks the nearby tiles, moves and places a bomb if the conditions are right. Then it runs away (this will be transferred to the “Flee” state) and repeats. It only checks […]

/ Comments Off on Programming Project, day 20 – Artificial Intelligence working!
Program: Programming

Linking errors is a good start.


 
I started on our game assignment two days ago and I directly encountered some problems. (not related to the above picture)
The problems I encountered were related to me being absent from several lectures, due to hospital visits, leaving me uncapable of understanding the code hierarchy of our “big” workshop project. Which was a platformer with a more complex engine which handles sound, sprites etc. and when I look at it now I just do not understand squat. So to […]

/ Comments Off on Linking errors is a good start.
Program: Programming

Linking errors is a good start.


 
I started on our game assignment two days ago and I directly encountered some problems. (not related to the above picture)
The problems I encountered were related to me being absent from several lectures, due to hospital visits, leaving me uncapable of understanding the code hierarchy of our “big” workshop project. Which was a platformer with a more complex engine which handles sound, sprites etc. and when I look at it now I just do not understand squat. So to […]

/ Comments Off on Linking errors is a good start.
Program: Programming

More progress


Finally took the time to Tweak around with the Level, and Background to create something that looks more appealing to work on.
Beside the visual change there is now working music from the program. At this I ran into some issues with faulty .mp3 files that would exit the program without giving any error messages.
The next step is to work with these sliders in order change volume and such. The Sliders is created in such a way that its very, […]

/ Comments Off on More progress
Program: Programming

More progress


Finally took the time to Tweak around with the Level, and Background to create something that looks more appealing to work on.
Beside the visual change there is now working music from the program. At this I ran into some issues with faulty .mp3 files that would exit the program without giving any error messages.
The next step is to work with these sliders in order change volume and such. The Sliders is created in such a way that its very, […]

/ Comments Off on More progress
Program: Programming

Much changes!

The whole game has been reworked a lot and the current method for creating a sprite is to do

Sprite* ball = new Sprite(“ball.png”, 100, 300);

This will create a sprite at position 100, 300 with a ball image. I exploded the drawManager and divided it into parts, mostly in the WindowManager which manages window and renderer operations(mostly SDL stuff). The current version of the window Manager only takes one window and renderer but it will be changed to have multiple windows […]

/ Comments Off on Much changes!
Program: Programming

Much changes!

The whole game has been reworked a lot and the current method for creating a sprite is to do

Sprite* ball = new Sprite(“ball.png”, 100, 300);

This will create a sprite at position 100, 300 with a ball image. I exploded the drawManager and divided it into parts, mostly in the WindowManager which manages window and renderer operations(mostly SDL stuff). The current version of the window Manager only takes one window and renderer but it will be changed to have multiple windows […]

/ Comments Off on Much changes!
Program: Programming

KreakOut #4 – Bricks shall be shat

A Breakout game without bricks is like a really one-sided Pong match, so now it was time for those!
The main part of the block-script is just a copy of the BallObject, the problem was in getting multiple objects of the same type to work.
As someone that got more experience creating programs, I figured that arrays would do the job. After a lot of tinkering around, we ended up with what seemed like it would work with no errors at all. […]

/ Comments Off on KreakOut #4 – Bricks shall be shat
Program: Programming

KreakOut #4 – Bricks shall be shat

A Breakout game without bricks is like a really one-sided Pong match, so now it was time for those!
The main part of the block-script is just a copy of the BallObject, the problem was in getting multiple objects of the same type to work.
As someone that got more experience creating programs, I figured that arrays would do the job. After a lot of tinkering around, we ended up with what seemed like it would work with no errors at all. […]

/ Comments Off on KreakOut #4 – Bricks shall be shat
Program: Programming

Bricks, bricks and more BRIIIICKS! Post #3, I believe

So, due to our frustration from yesterday we both forgot to write in our precious blog. The mission of the day was to get our new and shiny bricks to load from a textfile, but it just wouldn’t work. I think we sat there for around 3 hours and we couldn’t understand at all what it was thanks to visual studio not showing any errors either. Thing just wouldn’t build.
But today! Today we came up with the great idea of […]

/ Comments Off on Bricks, bricks and more BRIIIICKS! Post #3, I believe
Program: Programming

Bricks, bricks and more BRIIIICKS! Post #3, I believe

So, due to our frustration from yesterday we both forgot to write in our precious blog. The mission of the day was to get our new and shiny bricks to load from a textfile, but it just wouldn’t work. I think we sat there for around 3 hours and we couldn’t understand at all what it was thanks to visual studio not showing any errors either. Thing just wouldn’t build.
But today! Today we came up with the great idea of […]

/ Comments Off on Bricks, bricks and more BRIIIICKS! Post #3, I believe
Program: Programming

Game Programming – Assignment day 15

Fixed Gamestate now, when the game starts you go into the gamestate by writing ”new” into the console and press enter, you exit by pressing escape.
Upon exiting the gamestate you are taken back to the console and can write ”new” again to start a new gamestate.
You can also write ”quit” in the console to exit the program altogether.
When pressing space a bullet objects gets positioned right above the player object.
Received some help to get the ”isDOWNonce” function to work properly, […]

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

Game Programming – Assignment day 15

Fixed Gamestate now, when the game starts you go into the gamestate by writing ”new” into the console and press enter, you exit by pressing escape.
Upon exiting the gamestate you are taken back to the console and can write ”new” again to start a new gamestate.
You can also write ”quit” in the console to exit the program altogether.
When pressing space a bullet objects gets positioned right above the player object.
Received some help to get the ”isDOWNonce” function to work properly, […]

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

Programming Project, day 19

Wall of text incoming.
Today I found a small memory leak and fixed it. I think that I have a couple more in each menu state. I’ll look into that in the future. Right now I’m doing some other interesting stuff.
Me and a classmate Anton Larsson Auna checked some code when sitting beside each other in the “game-room”. He has done some interesting stuff and is a baows at programming. His blog: http://space1nvder.wordpress.com/
I’ve made the code so that it now finally supports […]

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

Programming Project, day 19

Wall of text incoming.
Today I found a small memory leak and fixed it. I think that I have a couple more in each menu state. I’ll look into that in the future. Right now I’m doing some other interesting stuff.
Me and a classmate Anton Larsson Auna checked some code when sitting beside each other in the “game-room”. He has done some interesting stuff and is a baows at programming. His blog: http://space1nvder.wordpress.com/
I’ve made the code so that it now finally supports […]

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

Github Issues

Today, most of the time went into Github… Sadly
When Ladbon committed a 20 days old version of the main code, the synchronization would then for some reason remove the newer files and making a hell of a mess in the process. Luckily it was restore-able but going to take some redoing of the code Ladbon made, As the recovery of the main files removed his changes instead.
Note to self, Always make sure you have the latest version before committing anything […]

/ Comments Off on Github Issues
Program: Programming

Github Issues

Today, most of the time went into Github… Sadly
When Ladbon committed a 20 days old version of the main code, the synchronization would then for some reason remove the newer files and making a hell of a mess in the process. Luckily it was restore-able but going to take some redoing of the code Ladbon made, As the recovery of the main files removed his changes instead.
Note to self, Always make sure you have the latest version before committing anything […]

/ Comments Off on Github Issues
Program: Programming