Click here to Skip to main content
11,641,211 members (64,791 online)
See more: C++ Game graphics
Hi Everyone...!!

Last Week, I Was Assigned A Project Of Building A Mine Sweeper Game In Console.!! I Start Working On It But I Don't Have Any Idea From Where Should I Get Started..!! I Want To Add Some Simple Graphics In My Game, But First I Want To Make Simple Game...!! For That Purpose, I Figure Out Some Task For The Project..!!

1. Make A Board On The Console (2x2, 4x4, 8x8, 16x16)
For That Purpose I Used The Following Code:

        #include <iostream>

        using namespace std;
        int main()
            for (int i = 0; i < 4; i++)
                for (int j = 0; j < 4; j++)
                    i % 2 == 0 ? cout << "  |" : cout << "---";
                cout << endl;
        return 0;

It Simply Prints The 4x4 Board On The Screen...!! Although I Am Not Satisfied With The Result..!!

2. For Mine And Numbers, What Should I Used..!! Arrays Or Vectors...!! Which Is The Best Option! One Of My Fellows Says That Vectors Are Only Used In Bid Games To Control The Directions And etc..!! I Am Confused On This Point..!!

3. Now, After That I Wanted To Get Input From The Keyboard And Move The Cursor And I Did So By Using gotoxy() Function..!!
But The Real Problem Is Get Started Now..!!
How Can I Restricted The Movement Of The Cursor And Determined At Which Point/Pixel User Hit Any Key..!! And That Area In Within The Range Also...!!

4. I Want To Add Some Graphics Also In The Game But As Long As I Know, Graphics In C++ Ae Much More Difficult As Compared With Python, Java, C#...!! Is There Any Way To Learn About C++ Graphics Within 3-4 Weeks That Are Enough For This Game..!!

5. I Know The Following Topics Of C++
1. Functions!
2. Arrays!
3. Vectors!
4. Pointers!
5. File Handling!
6. Struct Programming!
7. OOP (A Little Bit)

Thanks In Advance For Answering...!!
Closed because this post is not a question, or has not been phrased in a way that allows a reasonable answer to be provided. Reported by Sandeep Mewara, Sebastian T Xavier on Monday, May 6, 2013 2:43am.
Posted 20-Apr-13 10:21am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 400
1 OriginalGriff 205
2 DamithSL 203
3 CPallini 185
4 Afzaal Ahmad Zeeshan 129

Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 6 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100