Bloqueada Exporting the visual c# maze game to desktop

  • Tuesday, April 03, 2012 9:30 PM
     
     
    As a Very new person to programming, and just completed the maze build. Can i export the game to windows as an extra game in the windows game list.? When i say new, i mean i've just took 2 days to get it right and play o k in debug.

All Replies

  • Wednesday, April 04, 2012 5:00 PM
     
     

    Hi Barry 007,

    if you  want to run your Game in your Client PC or Other PC.

    you have to use deployment tool to create setup of yourgame.

    check below link to create setup package of your game

    http://www.fordevs.com/2009/07/steps-to-create-setup-and-deployment-project-in-dot-net-vs-2008.html 

    http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/

    Regards

    Sophia

  • Wednesday, April 04, 2012 7:13 PM
     
     
    Thanks, very much. I dont know if i will get my head around all this, But i'm giving it ago.Thanks again...
  • Thursday, April 05, 2012 1:10 AM
     
     Proposed Answer

    Hi,

    As far as adding your program to the Windows Game list goes, you will need to create a setup file and add the code to the setup which tells it to add a shortcut to the game list.

    Try using InnoSetup (I find it rather easy to make a setup with this program).

    NOTE: Windows does not see normal .exe files as Games, so it is not added to the game list automatically. You should use another tool to make a game such as XNA Game Studio or any other program for creating games.

    Hope this helps.


    Preveen

    • Proposed As Answer by Preveen Monday, April 09, 2012 1:31 AM
    •  
  • Friday, April 06, 2012 10:36 PM
     
     
    Thanks for all the advice, but at the moment, i'm trying to add levels to the Maze game. I dont know if any-one has ran the program, but i need to find out if i can change the end message box, to give an option to eather end or go to next level ( maze2 ). I have read most of the comments made, but feel that re-programming the end message:ie     finishSoundPlayer.Play();            
                                                            //MessageBox.Show("Congratulations!");
                                                               Close();------- This line somehow should give an option.   Something like  when you clic on the O.K button, instead of closing, it opens another message box giving the option to close or next level. Any idea's ?????????    
  • Friday, April 06, 2012 11:36 PM
     
     

    Hi,

    Here's how I would do it:

    • Make a custom message box (just a new form, with a couple of buttons)
    • Instead of displaying the standard messagebox display your own window. If the user clicks your specified button then go to the next level.

    Try it if you want, I would do it that way. You could also make use of the message box (when the user clicks OK then it goes to the next level, if the use clicks Cancel then exit the game.)

    Hope this helps.


    Preveen

  • Saturday, April 07, 2012 5:40 PM
     
     

    O K so i have made up a window that gives the player to options , 1, End Game 2 , Next Level, I have edited the End game button to /// <summary>
                                             /// Click box to end game.
                                             /// </summary>
            private void FinishLabel_Click(object sender, EventArgs e)
            {
                Close();                                                                                                                                                      So what do i tell the Next Level button to do ? It needs to have a clic command ? 
    same as close button, It somehow has to load the next piece of programming ( Maze 2 ).

    I have written both mazes using form 1 then form 2..... 

    • Edited by Barry 007 Saturday, April 07, 2012 7:49 PM
    •  
  • Saturday, April 07, 2012 10:16 PM
     
     

    Now it starts to get difficult:

    For the Next Level button's click command:

    • Make a randomizer which re-arranges the maze in the current window to a new window.
    • Close the current window (the one the user just won).
    • Show the new window.
    • If the user wins, re-use the randomizer to make a new window.

    So that's basically my concept. If you would like, check out the following Microsoft Open Source site: http://www.codeplex.com/

    You can try and search for your type of game and you can join the open source community.

    Also search the MSDN Library / Internet for unknown terms that I may have used.

    Hope this helps.


    Preveen

  • Sunday, April 08, 2012 8:58 PM
     
     Answered
    Many Thanks for all your help in this project i'm trying to do. You will most likely be hearing from me again ...Got some good ideas now, and have brought the absorlute beginners guild to c which is a great read and reference book...
    • Marked As Answer by Barry 007 Sunday, April 08, 2012 8:58 PM
    • Unmarked As Answer by Barry 007 Monday, April 23, 2012 7:29 PM
    • Marked As Answer by Barry 007 Monday, April 23, 2012 7:30 PM
    •