The applications background music overlaps the users selected music

To solve this issue this was the approach that I took. I added code in the constructor for the game to call the guide and ask a what music he wants. There is a boolean to control which sound is played.

if (askForMusic && !MediaPlayer.GameHasControl)
           {
               if (!Guide.IsVisible)
               {
                   Guide.BeginShowMessageBox(“Select Music Of Choice”, “Do you want to play the game music”,

                   new List<string> { “Yes”, “No” }, 0, MessageBoxIcon.Alert,

                   asyncResult =>
                   {

                       int? returned = Guide.EndShowMessageBox(asyncResult);
                       if (returned == 0)
                       {
                           MediaPlayer.Stop();
                           playMusic = true;
                       }
                   }, null);
               }
               askForMusic = false;
           }

12 Hours of my life building a video game

Alright here goes my Story last saturday I took the challenge of building a video game in 12 hours started at 1:30 worked till 12:30 which was 11th hours but it was a ton of fun. Below are my email reports to my friends while this was going on. Btw this started with a conversation in  a bar like most things worth doing.

Note: Info on white is my reports to my friends
Info on blue is my thoughts narrated.
Red is the time for the next status

 

At 1:00 I was like I need to find out what I’m capable of doing in 12 hours lately i‘ve not been forcing myself at all. At 1:32 I’m going to use Expression Design and Xna let me start drawing and see what I want to make the game about. Hmm Gnomes sounds like a good idea.

Time 2:10

Like I said yesterday I’m going to try an attempt to make a game today so that I can feel a bit less useless in life. So far this is what I got:

Title:

Get Off My Lawn!

Premise:

They are Gnomes in Your lawn you need to toss them out for points. Some of them give more points depending on their hat colors.

Building on C# for the windows 7 phone.

Time started:

1:37 PM

ETA:

1:37 AM

What I got currently:

I drew the Gnome:

gnome

Next Task:

Make the loading screen And make the board

Next Report at 3:00

After sending the report is well I’m committed at this point if I don’t do it everyone is going to laugh at me what is the game going to be about hmm maybe whack a mole clone. I’m going to keep drawing so I can get a better idea.

Time 3:02

What Got Accomplished in the last Hour:

-Created the gnome as an asset

-Decided on the title used Cute blonde friend suggestion

-Created the starting screen

-All the art assets for the board.

P.S. this is the last msg with a ton of images.

The images are attached.

Next Task:

-Create Project In Visual Studio and follow a scene pattern to make the 3 scenes and load all the Assets

Next Report at 4:30

Seems like drawing took a ton of time I’m also going to need to get something to eat this kinda sucks I already sinked in 2:00 hours. I’m going to keep going and see where does it goes.

Time 4:33

What Got Accomplished in the last Hour:

-Created the scene pattern for the project

-Made Starting screen

-Got interrupted by the SLk test team

-Realized I need to make some library to handle the touch controls for my app

The images are attached.

Next Task:

-Working on the touch input library for the application and the actual game screen.

startingcreen

Next Report at 6:00

The progress in the last block off time was pretty incredible at this point im fully into this note I have still not gotten any food so I was starving but wanted to keep going and see if I was really finishing this.

Time 6:07

What Got Accomplished in the last Hour:

-Got the Game screen done(Looks kinda Icky I think im deleting the border

-Selected the music for the game

-Created library for swipes

Next Task:

-Working on classes to handle the apparition of gnomes in the scene.

gamescreen

Next Report at 8:00

I decided that it was worth paying 25 dollars and buy the music. Took a break from the coding which at this point I was sure that I could finish the game functional even if it would need a ton of polish and that became the goal something. Got a visit from a friend and I was explaining to him what I was doing an in my mind I was like he must think I’m crazy. But to myself I was thinking this is awesome I haven’t this into something in a long time.

Time 8:13

From: Sexy Redhead

Can I be the end boss?

Maybe  But you would need to draw Yourself

What Got Accomplished in the last two Hours:

-The gnomes dance now and got a score board

Next Task:

-Making so u can actually kick the gnomes off the lawn

-Adding dying animations.

-Figure out if I want to pay $25 for music or make my own.

Next Report at 10:00

I had a score system and you could loose but could not actually play I started feeling tired and wanted to go home got up for a bit and decided on some cookies and some milk after all I haven’t had any food so far.

Time 10:11

What Got Accomplished in the last two Hours:

-Got the end screen working

-Finished the Swipe controls

Next Task:

-Making so u can actually kick the gnomes off the lawn ( Got bugs in here)

-Adding dying animations. (This is sorta working)

-Figure out if I want to pay $25 for music or make my own. (I’m probably going to buy them)

Only missing the ability to play the game properly it felt like a monumental task at this point but it was the only thing missing also in my mind I was so undecided about the music this game was just me testing myself why would I spent some money on it ?

Next Report at 12:00

Time 12:13

What Got Accomplished in the last two Hours:

– Finished the Gameplay WOOT Everything works

– Bought the music

Next Task:

-Missing adding the music and the gnome screaming sound when they die.

-Eta to finish 30 mins 😀

Next Report When I’m Done with screenshots 😀

Bought the music from soundrangers.com It feels like done I tweaked the little things like the music and decided to make a video to show it out also a reddit post. So late and I just want to go home.

Time 12:44

It’s done The game works

Attached is the video in case anyone is interested in seeing it

http://www.alfredoalvarez.com/gamevideo.wmv

Woot Heading home.

Completed the mission. Decide to do a video so the gameplay could be seen that took me 30 more mins but I was done and immense sense of satisafction while I headed to the car Open-mouthed smile