Game design in c++ [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am new to C++. I am using CodeBlock for development.
As a learning exercise I want to write chess game with UI.
Can someone help me in identifying what tool and library I would need to for showing a chess board GUI
what algorithm I need to read to implement chess rules ?
any else I need to know ...

There are plenty of GUI-toolkits, GTK and Qt come to mind as two. See How do I build a GUI in C++? for more suggestions.
Or if you want to do the board "by-hand" then you might want to try SDL.
As for chess algorithms, it depends what you're looking for. A chess AI? A way to compute if someone is in check/checkmate? I think it might be more interesting to try and come up with your own first, then look around at others. Although if you just want some suggestions or reading material, then this and this looks promising.

Related

C++ application with neat codebase to learn from [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm searching for an application written in C++ with a neat codebase, to learn from and maybe even contribute to it. A lot of applications written in C++ are either very large or doing some really advanced stuff, which is just the domain of C++.
A good candidate of size and shape would be something like pacman and libalpm from Archlinux, but it is written in plain C, not C++. WebKit is just far to big and Protobuf is looking awkward. Gnote looks to be a good starting point and I'm also using GNOME, but I wasn't sure about it because it offers a GUI. Which brings me back to pacman; I'm already using it myself and it doesn't distract with stuff like a GUI.
So I decided to look for something small and sane, which offers a CLI and which I can use myself. I opened the search of github with the terms note + c++ + stars and the result is taskwarrior. A brief look on the source of task(warrior) looks promising.
Do you know a neat project which written in C++?
Thanks

Very easy to use 2d (optionally 3d) drawing library / wrapper for directx or opengl? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm studying physics and I know C++ at a basic level. at my study it's sometimes really useful to create a program which can graphicly represent some data or do calculations and then graphicly represent them. I read that, for example, to be able to master the basics of openGL I would need to do a 10 week long course of openGL. But that is too much time.
I'm wondering if there are any libraries available (for windows) which allow me to do some easy stuff like:
-DrawPixel(x,y,color)
-DrawCircle/Line/Shape/Polygon([list of points])/Triangle/Square (+rotation)
-DrawImage(filename,width,height,etc...)
-DrawText()
Is there any library which has this easyness? It would be really cool because if I do something (create a program) and I need to explain my team (who have never programmed) how I have done it (the program / results), this would make it much easier to explain!
I looked at SDL, HGE, OpenFrameworks (somewhat the "closest" yet still far away) and a few other popular libraries but they are all so far away.. why is there no such easy library?
Are there any available which are just not being found with the keywords i search in google?
I would suggest that you take a look at cinder. Try out the Hello Cinder tutorial. I think you will find it supports your needs by providing an abstraction layer above DirectX or OpenGL.

Plotting framework [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm in no way an expert on programming, not even close, and I'm event worse at GUI programming. But for a project I need to do some simple point datasets and line plots. And I need to be able to do dynamic updates.
Does anyone know any good frameworks for doing this, I would like either a Cocoa or perhaps a Qt C/C++ framework.
The other option would be to make a Qt widget myself, there are properbly lots of good tutorials out there on that, does anyone know any?
My data is going to be (x,y) with a sliding window over the x-axis.
Lots of suggestions here Is there any 'out-of-the-box' 2D/3D plotting library for C++?
qwt is what you need if you want to use Qt.
It's really poorly documented but there's a tutorial here
MathGL is GPL plotting library which have both: QMathGL for Qt widget with plot, and mglGraphQT (or mglGraphFLTK, or mglGraphGLUT) for external window with plot. See these samples for more details.

What are the best engines for a 2D indie game? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
What are the best engines for a (small) indie game? I am interested in info about how much does it takes to familiarize self with the engine, special functions et cetera.
In addition, I would like to know what physics engine I should use for this type of game.
Even though I don't know if its the "best" for what your doing but, SDL is pretty good. You can write in C++ with it. It's 2D and good for indies. Plus, its cross platform so its not just limited to PC. Also there's Box2d which is a 2D physics engine in C++.
Just taking a stab. But, you should really clarify exactly what you want to do.
This depends a lot on what you want to do (i.e. genre of game and features). I suggest you check out the canonical http://www.gamedev.net/ which has covered this topic several times (both in articles and forums).
Try this one: http://oxygine.org/
It is modern hardware accelerated framework for 2D C++ games, could be build on top of SDL or Marmalade.

Good Tutorial To Learn C++ Development For Game Boy [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm learning C++ with this book of Deitel: C++ How to Program, 5/e and some tutorials and resources of the internet, but I want to learn how I can develop Nintendo GameBoy Advance games using C++, but only in resources over the internet, because I don't want to spent money now with a thing that I only want to try.
Get DevkitPro and a good library like TONC. Also, you can get more help at GBADev.
Although you can use C++ in GBA development, plain C is recommended. The choice is yours to make, though.
You can also try wxwidgets its very helpful. Here is a big picture of a simple game:
gameEngine class (responsible for creating sprite(s), setting up the environment, checking for key i/o, monitor various statistics of the game eg score, how many tries etc)
Sprite Class (it will monitor things like life, health, direction etc)
Hero -> Inherits from sprite class with some of its own functionality.
Enemy -> Also inherits from sprite class.
Fire -> Inherits from sprite as well.