Click here to Skip to main content
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 3:43am.
Posted 20-Apr-13 11:21am

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

  Print Answers RSS
0 OriginalGriff 505
1 Maciej Los 309
2 BillWoodruff 174
3 /\jmot 160
4 Suraj Sahoo | Coding Passion 160
0 OriginalGriff 8,654
1 Sergey Alexandrovich Kryukov 7,407
2 DamithSL 5,639
3 Maciej Los 5,229
4 Manas Bhardwaj 4,986


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 6 May 2013
Copyright © CodeProject, 1999-2014
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