Monthly Archives: January 2014

Programming Project, day 25

The OptionsSoundState works now, no freezing. I made a vector loop and didn’t increment. Damn it, how many times will I miss that? =) I didn’t change the sliders, they are still mediocre. I’m planning on adding collisions (between objects … Continue reading

Posted in 5SD022 | Leave a comment

Programming Project, day 24

Finally added music playlists to the AudioManager, so the manager is complete now. With the playlist handling, it is possible to create almost any amount of playlists with almost any number of songs in each one. I also improved the AudioManager … Continue reading

Posted in 5SD022 | Leave a comment

Programming Project, day 23 – Particle Effects!

I didn’t use math vectors, but the same principle. These are my direction and “movement” formulas. The direction variables are set between -1.0 and 1.0 and are then used when calculating “movement” of each particle. m_fDirX = (rand()%200-100)/100.0f; m_fDirY = … Continue reading

Posted in 5SD022 | Leave a comment

Programming Project, day 22 – part 3

I created particle effects but it still needs some work. I need to make math vectors to do the math for this. I’m not that good with it right now so I guess that’ll take some time for me. On … Continue reading

Posted in 5SD022 | Leave a comment

Programming Project, day 22 – part 2

There where some problems with the AI that I fixed. The GameSetupState now has settings for each player, the settings are “Player controlled”, “AI controlled” and “Inactive”. You can’t click the “Start game” button unless there are 2 or more … Continue reading

Posted in 5SD022 | Leave a comment

Programming Project, day 22 – part 1

There are now three functioning AI states. It’s just a matter of fine-tuning their behavior. I guess I’ll leave it for now. It’s fun to program AI but now that I got the project points for it I’m gonna focus … Continue reading

Posted in 5SD022 | Leave a comment

Programming Project, day 21

I changed the AI states completely. The “Farming” state is now called the “Roaming” state. It checks tiles in certain directions for levelobjects that are destructable, places bombs and walks around the map. I need to make it a bit … Continue reading

Posted in 5SD022 | Leave a comment

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.

Posted in 5SD022 | Leave a comment

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 … Continue reading

Posted in 5SD022 | Leave a comment

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 … Continue reading

Posted in 5SD022 | Leave a comment