![]() ![]() And finally, if this is for a school assignment (as I assume it is), then you're going to require your teacher / grader to install that external library too in order to run / compile your code for verification and testing, which they typically don't want to have to do at this level. Third (and this is also true for any language), most GUI tools are object-oriented and have the minimal requirement that you be at ease with that. So, you'd probably have to go through some tutorials to learn the ropes, and hope that one of the tutorials closely matches the kind of thing you want to do. Second (and this is true for any language), most GUI libraries are quite a bit more complex than what you'd really want for your simple purpose (with great power comes great complexity). #C++ simple minesweeper game how toFirst, it will require that you learn how to use an external library (specify include folders, include the headers, specify link folders, specify link libraries which you need to install, etc.). The problem with that is that it is quite a significant step from simple console graphics. The thing is, what you can do in the console is quite limited, so I guess you want to move to a windows-style GUI. It would seem to me like basic console graphics is probably enough for this game. Is There Any Way To Learn About C++ Graphics Within 3-4 Weeks That Are Enough For This Game.!! However, there are many external libraries that can be used in C++ for this purpose, most of which are just as easy to use as in other languages, in fact most of the GUI tools of other languages are written in C++ with a thin layer that give you access to them. ![]() Being primarily a general-purpose system infrastructure programming language, having a GUI library in its standard library would be a really bad idea. The difficulty mainly comes from the fact that graphic user interface libraries are not part of the standard library in C++ (as they are with some other languages). Graphics In C++ Are Much More Difficult As Compared With Python, Java, C#.!! Please show your code if you want more detailed explanation. How Can I Restricted The Movement Of The Cursor And Determined At Which Point/Pixel User Hit Any Key.!!Īs you record the key-strokes to move the cursor, first check that the movement is allowed (remain within the ranges of x and y values), and, of course, keep track of the coordinates of the cursor, you can use those coordinate values when you get the "hit any key". 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.!!ģ) I Want To Add Some Graphics Also In The Game But As Far As I Know, Graphics In C++ Are 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.!! It Simply Prints The 4x4 Board On The Screen.!! Although, I Am Not Satisfied With The Pattren.!!Ģ) Now, After That I Wanted To Get Input From The Keyboard And Move The Cursor And I Did So By Using gotoxy() Function.!!īut The Real Problem Is Get Started Now.!! ![]() 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.!!ġ) Make A Board On The Console (2x2, 4x4, 8x8, 16x16)įor That Purpose I Used The Following Code: #include ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |