Jump to content
  • Advertisement

melloorr

Member
  • Content Count

    45
  • Joined

  • Last visited

Community Reputation

100 Neutral

About melloorr

  • Rank
    Member
  1. melloorr

    Simple projects? (C#)

    I get it now, and if I wanted to get something from a class, I could also use something like this: using System; class SimpleClass { public static void Main() { Console.WriteLine(ThatClass.yes); Console.ReadLine(); } } class ThatClass { public static int yes = 10; }
  2. melloorr

    Simple projects? (C#)

    This is the code that I currently have (not much): using System; class MazeGenerator { static void Main() { Console.Title = "Welcome to the Random Maze Generator for C#"; Console.WriteLine("Welcome to the Random Maze Generator for C#"); Console.WriteLine("Please press Enter to continue to the Generator"); MazeQuery(); Console.ReadLine(); } static void MazeQuery() { int mazeWidth, mazeHeight, wall, numberOfRooms; do { Console.Write("Please enter the number of columns: "); mazeWidth = int.Parse(Console.ReadLine()); } while (mazeWidth < 2 || mazeWidth > 50); do { Console.Write("Please enter the number of rows: "); mazeHeight = int.Parse(Console.ReadLine()); } while (mazeHeight < 2 || mazeHeight > 50); numberOfRooms = mazeWidth * mazeHeight; wall = numberOfRooms * 2 - (mazeWidth + mazeHeight); Console.ReadLine(); } } I don't know how to get numberOfRooms or wall to a new method or class to calculate what walls I have to knock down.
  3. melloorr

    Simple projects? (C#)

    Hmm, still not quite getting it. I think I will do some more reading up on it, then maybe try a text based game first, then attempt that again. Thanks for the help
  4. melloorr

    Simple projects? (C#)

    Well, looking at some of their answers to the project, they have classes withint width in them, but I do not know how to get int width, into a different class to use it with that class also.
  5. melloorr

    Simple projects? (C#)

    Okay I'm not getting this. I cannot do it. I just can't work out how to get one variable to another, method, class. I have the book Pro C# 2010, but it hardly has any information on it (despite the size of the it). Are there any tutorials that can get me used to working with multiple classes, and methods?
  6. melloorr

    Simple projects? (C#)

    @SiCrane, I don't suppose you or any other mods can edit the post please? If I take my eyes away for a second, I have to spend 5 mins trying to find where I was up to. Thanks
  7. melloorr

    Simple projects? (C#)

    Yeah it is pretty hard to read to be honest, but I will at least attempt it, and if I cannot do it, I will go through some of the lessons then attempt it again.
  8. melloorr

    Simple projects? (C#)

    Wow, looks pretty complicated to be honest, should take me a few months to do Would basic C# be enough for me to do it?
  9. melloorr

    Simple projects? (C#)

    Hello everyone, been a while since I was here but I want to get back into C# so I need some tasks/small projects that will allow me learn the basics again, and let me learn new things too. Does anyone have any ideas please? Thanks, melloorr.
  10. melloorr

    Just starting...

    I have been reading his book to learn c#. But i have used this one: http://www.robmiles....Book%202010.pdf It is good and explains everything fairly well (and its free).
  11. melloorr

    Just starting...

    I have been learning C# which is has been great for me so far, and relatively simple. And I would not suggest learning two languages at the same time. But it is easy to learn a new language after you already know one (or so I have heard).
  12. melloorr

    Am I Ready?

    Thank you, it did not say 0 was a prime number, but i did say 1 was
  13. melloorr

    Am I Ready?

    I cant do it I think i am going to have to give up on it. Although this will give me completely random numbers: static void RandomIntArray() { Random r = new Random(); int[] intArray = new int[10]; for (int i = 0; i < intArray.Length; i++) intArray = r.Next(0, 1001); foreach (int num in intArray) Console.WriteLine(num.ToString()); Console.ReadLine(); }
  14. melloorr

    I finished my first game...now what?

    http://www.000webhost.com/ offers great free hosting, with php and everything
  15. melloorr

    Am I Ready?

    Still hvaing a tiny bit of trouble. If I put the new for-loop in the one with the array, I cannot get through the array properly, and if I put it out of the loop, it doesnt recognise 'i'. After all this, im guessing the actual code is pretty simple. Bit down that I am not getting it though.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!