MY ROGUELIKE III PROGRESS REPORT 7

This week I did my soundtrack playing system. I am thus forced to listen ”Maid with Flaxen Hair” and ”Kalimba” as I drift through the endless space…

This week turned out to be a total disaster to my coding work as my company moved to a new business location and thus I was working all day and night to set up new office. On the bright side I might get a gig teaching video game design and programming as well as a gamification course in autumn…

I had no time to this work so all I did was using my Friday night making a simple audio playing software using Windows SoundPlayer class. It worked like a charm.

String soundtrackdirectory = AppDomain.CurrentDomain.BaseDirectory + ”\Music\SoundTrack\”;

string[] filePaths = Directory.GetFiles(soundtrackdirectory, ”*.wav”, SearchOption.AllDirectories);

Random rnd = new Random(Guid.NewGuid().GetHashCode());

int choices = rnd.Next(filePaths.Length);

SoundPlayer player = new SoundPlayer(filePaths[choices]);

player.Play();

//player.Stop();

Other Things I Did:

Activities with Future Potential:

Next Week

Strategic Numbers:

Maintainability Index: 88

Cyclomatic Complexity: 1116

Depth of Inheritance Hierarchy: 3

Class Coupling: 116

Lines of Code: 2391