9 Replies - 907 Views - Last Post: 21 July 2012 - 05:52 AM

#1 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 19 July 2012 - 05:42 AM

This is not a roguelike, nor is it a virtual pet... it is something I have always wanted to work on, and now I have the perfect chance!

With Ryuzaki (My C++ Virtual Pet Project) being converted from C++ to C#, it's going to take a little while, so in the meantime, to relive me from the stress and boredom of doing that, a new Turn-Based Simulation will rise... it's name... is Neighborhood Watch...

It is currently being developed all on my own, and since it's a really complex game, help is almost absolutely necessary! To help me, all you have to do is request it. I'm not expecting many requests, as PHP seems to be the most popular language of this month (I know absolutely nothing about PHP, btw), so if someone does end up requesting to partner up with me, that's when I'll think further into the plan. Oh, and you will NOT be paid to help me, adn it is all voluntary support!!!!! This is very important to remember if you request! The only time I will ever give money to you is if we end up having a little "Donation" project when the main game is over! If we do end up doing that, you will be given all of the donation, even if it's over $2,000 (just to be fair)!

Now that my little "ad" is over with, Neighborhood Watch is a game in which you manage a... well, a neighborhood watch. Here are the things you can do that are planned to be implemented into the main game:

-Turn Based Gameplay
-A Time and Date System
-A Very Complex Member System (Each member has their own name, aggressiveness, gender, race, etc.)
-The Ability to Assign Members to Different Positions (Giving out fliers, doing research about the history of the neighborhood, patrolling the neighborhood, etc.)
-Budget Management/Each Little Thing Affects your Budget (Buying gun licenses, having meetings or celebrations to increase moral, etc.)

and so on...

I just started this project, so the only code I have so far is the code for the main menu. Here, I'll show you:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neighborhood_Watch
{
    class Menus : Variables
    {
        public static void MainMenu() 
        {
            do{
            ConsoleKeyInfo input;
            Console.CursorVisible = false;
            Console.ForegroundColor = ConsoleColor.Red;
            Console.SetCursorPosition(29, 3);
            Console.WriteLine("Neighborhood Watch");
            if (menuOpt == 1)
            {
                Console.SetCursorPosition(29, 6);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("New Game");
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
            }
            else if (menuOpt == 2)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("Load Game");
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
            else if (menuOpt == 3)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
            else if (menuOpt == 4)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
            else if (menuOpt == 5)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("Quit");
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
        }while(mainMenuActive == true);
        }
    }
}


All of that is JUST for the MAIN MENU, so as you can see, this project is going to be huge.

Like said, you can help me, but you will not be paid to help me (unless on special conditions, like the Donation system listed above)!

And that, I guess, concludes the birth of this project!

But one more note before I end this post, Ryuzaki is being made WHILE this project is also being written, so don't say stuff like "Why in the world are you starting over!?!" because I'm not!

-Tyler Kirk

EDIT: Misspelled "Patrolling" in the features of the game, my bad!

This post has been edited by Samkid882: 19 July 2012 - 05:45 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Neighborhood Watch (C# Turn-Based Simulation Project)

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9574
  • View blog
  • Posts: 36,273
  • Joined: 12-June 08

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 19 July 2012 - 07:01 AM

Can't tell if this should go in 'post a job' or keep it here..
Was This Post Helpful? 0
  • +
  • -

#3 JoopBananenbuiger  Icon User is offline

  • D.I.C Head

Reputation: 16
  • View blog
  • Posts: 83
  • Joined: 11-January 11

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 19 July 2012 - 07:25 AM

Now that's a project idea that's something very different, in a positive way :)
You created the menu for your game in C#, and so far it looks pretty good (although could use some OO and stuff, like i said in your last thread), but i don't really get is how PHP comes into play in all of this...
Do you want to convert/build this game to/in PHP or am i misunderstanding you?
Was This Post Helpful? 0
  • +
  • -

#4 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 19 July 2012 - 08:12 AM

View Postmodi123_1, on 19 July 2012 - 07:01 AM, said:

Can't tell if this should go in 'post a job' or keep it here..


I suggest you keep it here, the fact that you can help me is only an option.

View PostJoopBananenbuiger, on 19 July 2012 - 07:25 AM, said:

Now that's a project idea that's something very different, in a positive way :)
You created the menu for your game in C#, and so far it looks pretty good (although could use some OO and stuff, like i said in your last thread), but i don't really get is how PHP comes into play in all of this...
Do you want to convert/build this game to/in PHP or am i misunderstanding you?


Yes, you must be misunderstanding me. All I really meant to say was PHP is the most popular language I'm seeing in the "Post a Job" thread. I have no clue on how to program in PHP :)

BTW, Object Orientation is actually a big part of this project, here, in my next post I'll show you all of the classes so far.... which are Program (Main Class), Menus, Player, and Variables, and they inherit each other in that order.
Was This Post Helpful? 0
  • +
  • -

#5 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 19 July 2012 - 08:33 AM

Program Class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neighborhood_Watch
{
    class Program : Menus
    {
        static void Main(string[] args)
        {
            MainMenu();
        }
    }
}


Menus Class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neighborhood_Watch
{
    class Menus : Player
    {
        public static void MainMenu() 
        {
            do{
            ConsoleKeyInfo input;
            Console.CursorVisible = false;
            Console.ForegroundColor = ConsoleColor.Red;
            Console.SetCursorPosition(29, 3);
            Console.WriteLine("Neighborhood Watch");
            if (menuOpt == 1)
            {
                Console.SetCursorPosition(29, 6);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("New Game");
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.Enter)
                {
                    menuOpt = 1;
                    mainMenuActive = false;
                    CharacterGen();
                }
            }
            else if (menuOpt == 2)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("Load Game");
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
            else if (menuOpt == 3)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
            else if (menuOpt == 4)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                Console.WriteLine("Quit");
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.DownArrow)
                {
                    menuOpt++;
                }
                else if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
            else if (menuOpt == 5)
            {
                Console.SetCursorPosition(29, 6);
                Console.WriteLine("New Game");
                Console.SetCursorPosition(29, 7);
                Console.WriteLine("Load Game");
                Console.SetCursorPosition(29, 8);
                Console.WriteLine("Game Options");
                Console.SetCursorPosition(29, 9);
                Console.WriteLine("Credits");
                Console.SetCursorPosition(29, 10);
                Console.ForegroundColor = ConsoleColor.DarkMagenta;
                Console.BackgroundColor = ConsoleColor.White;
                Console.WriteLine("Quit");
                Console.ForegroundColor = ConsoleColor.Red;
                Console.BackgroundColor = ConsoleColor.Black;
                input = Console.ReadKey();
                if (input.Key == ConsoleKey.UpArrow)
                {
                    menuOpt--;
                }
            }
        }while(mainMenuActive == true);
        }
        public static void CharacterGen()
        {
            ConsoleKeyInfo input;
            Console.Clear();
            Console.SetCursorPosition(1, 1);
            Console.WriteLine("What is your name?");
            Console.SetCursorPosition(1, 2);
            myName = Console.ReadLine();
            Console.Clear();
            Console.SetCursorPosition(1, 1);
            Console.WriteLine("What is your gender?");
            Console.SetCursorPosition(1, 2);
            Console.WriteLine("Is it Male or Female?");
            Console.SetCursorPosition(1, 3);
            LabelGenderGen:
            myGender = Console.ReadLine();
            if (myGender == "male" || myGender == "Male")
            {
                myGender = "Male";
            }
            else if (myGender == "female" || myGender == "Female")
            {
                myGender = "Female";
            }
            else
            {
                Console.Clear();
                Console.WriteLine("That is an invalid response!");
                goto LabelGenderGen;
            }
            Console.Clear();
            Console.SetCursorPosition(1, 1);
            Console.WriteLine("What is your age?");
            Console.SetCursorPosition(1, 2);
            Console.WriteLine("(Note: Age must be between 21 and 70)");
            Console.SetCursorPosition(1, 3);
            LabelAge:
            myAge = Convert.ToInt32(Console.ReadLine());
            if (myAge < 21 || myAge > 70)
            {
                Console.Clear();
                Console.SetCursorPosition(1, 1);
                Console.WriteLine("Invalid Age!");
                Console.SetCursorPosition(1, 2);
                Console.WriteLine("Age must be more than 21 and less than 70!");
                goto LabelAge;
            }
            else
            {
                setRace = true;
            }
            do
            {
                Console.Clear();
                Console.SetCursorPosition(1, 1);
                Console.WriteLine("What is your race?");
                if (menuOpt == 1)
                {
                    Console.SetCursorPosition(1, 3);
                    Console.ForegroundColor = ConsoleColor.DarkMagenta;
                    Console.BackgroundColor = ConsoleColor.White;
                    Console.WriteLine("Caucasian");
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.BackgroundColor = ConsoleColor.Black;
                    Console.SetCursorPosition(1, 4);
                    Console.WriteLine("African American");
                    Console.SetCursorPosition(1, 5);
                    Console.WriteLine("Asian");
                    input = Console.ReadKey();
                    if (input.Key == ConsoleKey.DownArrow)
                    {
                        menuOpt++;
                    }
                }
                else if (menuOpt == 2)
                {
                    Console.SetCursorPosition(1, 3);
                    Console.WriteLine("Caucasian");
                    Console.SetCursorPosition(1, 4);
                    Console.ForegroundColor = ConsoleColor.DarkMagenta;
                    Console.BackgroundColor = ConsoleColor.White;
                    Console.WriteLine("African American");
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.BackgroundColor = ConsoleColor.Black;
                    Console.SetCursorPosition(1, 5);
                    Console.WriteLine("Asian");
                    input = Console.ReadKey();
                    if (input.Key == ConsoleKey.DownArrow)
                    {
                        menuOpt++;
                    }
                    else if (input.Key == ConsoleKey.UpArrow)
                    {
                        menuOpt--;
                    }
                }
                else if (menuOpt == 3)
                {
                    Console.SetCursorPosition(1, 3);
                    Console.WriteLine("Caucasian");
                    Console.SetCursorPosition(1, 4);
                    Console.WriteLine("African American");
                    Console.ForegroundColor = ConsoleColor.DarkMagenta;
                    Console.BackgroundColor = ConsoleColor.White;
                    Console.SetCursorPosition(1, 5);
                    Console.WriteLine("Asian");
                    Console.ForegroundColor = ConsoleColor.Red;
                    Console.BackgroundColor = ConsoleColor.Black;
                    input = Console.ReadKey();
                    if (input.Key == ConsoleKey.UpArrow)
                    {
                        menuOpt--;
                    }
                }
            } while (setRace == true);
        }
    }
}



Player Class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neighborhood_Watch
{
    class Player : Variables
    {
        public static string myName = "Bob";
        public static string myGender = "Male";
        public static int myAge = 21;
        public static int intrace;
        
    }
}



Variables Class:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Neighborhood_Watch
{
    class Variables
    {
        //Input Declaration
        ConsoleKeyInfo input;
        //Variables//
        //Strings
        //Integers
        public static int menuOpt = 1;
        //Booleans
        public static bool mainMenuActive = true;
        public static bool setRace = false;
    }
}


Was This Post Helpful? 0
  • +
  • -

#6 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 20 July 2012 - 08:15 AM

This project isn't going so well, I think I might put this on hold for right now...
Was This Post Helpful? 0
  • +
  • -

#7 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 20 July 2012 - 11:39 AM

Due to many mess ups and failures, I'm starting over on this project right this minute.
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9574
  • View blog
  • Posts: 36,273
  • Joined: 12-June 08

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 20 July 2012 - 11:48 AM

If you are going to give everyone a blow by blow of your project and not say.. discuss it.. then it might be best to turn on your dic-blog and dump the hour by hour up and down status of your projects.

You can call it "Two-thousand flushes" because.. they like to go down! ;)

I would subscribe.
Was This Post Helpful? 2
  • +
  • -

#9 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 20 July 2012 - 12:39 PM

Okay, I will discuss future minor updates in my D.I.C blog, and major updates here.
Was This Post Helpful? 0
  • +
  • -

#10 Samkid882  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 03-June 12

Re: Neighborhood Watch (C# Turn-Based Simulation Project)

Posted 21 July 2012 - 05:52 AM

This project has officially been canceled, the current project I'm working on is I.D.S. (Infected Defense Squad). I may or may not remake this project when I'm finished with I.D.S., but for now, it has been canceled. The reason is because... well, it just wasn't going so well...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1