Category Archives: 5SD022

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

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

Posted in 5SD022 | 1 Comment

Programming Project, day 17

Implemented SDL_TTF and added two text objects to the GameEnd-state. Better positioning of objects and getting the actual numbers from the ScoreManager to the text strings is next. (Picture: the “Wins: ” texts are text objects, the rest are menu objects using … Continue reading

Posted in 5SD022 | Leave a comment