Starting 2D Game Project in Win32 API? [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've recently started taking a look at C++ Win32 API for making a 2D game as my final project for my graduation this year. I've taken one full-year course in C++ console programming so I have good knowledge about the language.
I've spent the last 3 days around 6-8 hours every day on Google and libraries trying to find anything to get me started with this with no result whatsoever. I've taken a look at some code for basic windows which to me looks like an alien language.
Do anyone here know where a good starting point would be?
Help is really appreciated since my entire education, all 2300 hours in school, will be wasted if I don't succeed with this. Right now it just feels hopeless. We won't start with WinAPI until mid-November in our 2nd programming course and I can't waste 2 months sitting around doing nothing. The project's deadline is in mid-January...
Please don't refer me to DirectX, SDL, SDML, OpenGL, Allergo or any other graphic library.
My teacher told me about using images and that you can make some kind of areas of the window for collision etc. Is this achieveable?

If you want to use a plain Microsoft API, you have a few options that you will find on the msdn page.
If your version of windows is recent enough, the best is to use Direct2D. It's modern and the documentation is excellent.
Direct3D has also been used for 2D graphics before Direct2D was available.
The old way is to use GDI+.

Related

2D Game development in C++ tutorial [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 8 years ago.
Improve this question
Terry Cavanaugh reccomended I learn C++ the other day, so can somebody link me to a complete and recent(late 2012 at the oldest), game development tutorial? I would prefer just C++, but, if you don't know one, an external library would be okay.
I can make games in C#/Python/Java, so I know the very basics(like what an int is), but I have tried to use C++ and noticed a vast difference in the syntax of the language, and so far I have been unable to find a decent tutorial on YouTube. Can someone please point me towards a good windows friendly 2d game development tutorial in C++ tutorial.
1.) Start out by just learning some C++ and getting comfortable with the language. I recommend thenewboston:
https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLAE85DE8440AA6B83
2.) Then you can move on to learning game libraries such as Allegro, SDL, OpenGL, etc.
This site has some good Allegro tutorials:
http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasics
And some good OpenGL and SDL tutorials:
http://lazyfoo.net/SDL_tutorials/
First you need to learn C++ with general tutorials. For making games, I recommend
http://www.packtpub.com/sfml-game-development/book

c++ DirectX 11 source code samples/examples? [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 8 years ago.
Improve this question
My question for you guys are really about more resources. Ive gotten stuck in my homework and my school wants me to do stuff with shaders but has frank d luna as a resource which is all written in effect files. Which source code I might add, does not seem to work for most people, including myself. Im trying to learn more about 3d programming and trying to create a simple grid/terrain area but it is super hard to find simple and educative source code.
I got the book of Frank D luna which to be honest havent entirely helpful. Everything is in effect files which is to my understanding obsolete and is still slightly different compared to vertex/pixel shaders. Also, any source code from that book is not able to run properly. But the structure of the code is fantastic.
Rastertek is a very unhelpful resource as in that he goes through everything at once in everything. Like asking for a page and getting handed a 500 page book. It is very hard to follow and jump back to use as a resource when it consistantly writes codes as a preparation for another tutorial or to complete a past tutorial.
Is there any resources that anyone recommend that would be worth spending money on or even better, free? It is so much information at times that it is hard to summerize everything so I would love to see short source code examples. Much like Frank d luna, except you know.. effect files and actually working.
I have used the following links in the past. None are ideal or "the complete resource", but by mixing and matching you should gain a good insight on DirectX in general. Also be sure to check out the DX11 SDK and MSDN samples
http://channel9.msdn.com/posts/gclassy/DirectCompute-Expert-Roundtable-Discussion/
http://microsoftpdc.com/Sessions/P09-16
http://www.rorydriscoll.com/
http://www.yakiimo3d.com/
http://gpuexperiments.blogspot.com/
http://users.skynet.be/fquake/
http://blogs.msdn.com/b/directx/archive/2010/06/15/introducing-the-directcompute-lecture-series.aspx
http://www.braynzarsoft.net
http://www.amazon.com/dp/1936420228/?tag=stackoverfl08-20
http://www.amazon.com/dp/1435458958/?tag=stackoverfl08-20

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.

Where can I learn DirectX programming? [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 want to learn DirectX in C++ programming. I decided to learn DirectX, so I found some tutorials online, but they all were very complicated and hard to understand. I have spent 3 days on a tutorial, and I have read everything, but I still can't even make an program that initializes DirectX. I think its very hard to learn that way.
Can anyone recommend a good tutorial/book?
The best resource I know of for learning DirectX is Frank Luna's book. It does assume you know C++. If you can get up to the chapter on the rendering pipeline and understand it, you're probably ready for DirectX. As for being hard to remember and complicated, this book does a great job of making sense out of the madness, and besides I don't memorize most of the structs used for initialization.
Try XNA Game Studio, which is somewhat based on DirectX but a lot easier. (You need C# though.)
just so you know you should understand what your reading when it comes to programming tutorials don't memorize. DirectX is basically a middle man between you and the hardware it lets you communicate with the hardware devices you're using like the graphics and video cards without having to know too much about them, but you should still have a good understanding of how they work before you try to create complex 3D Animations and such so if you're just starting off learn how to use the programming language and then start off with a simpler API or library like SDL, or Allegro for example DirectX is long and complicated and you should learn to walk before you run, :D good luck and happy programming

Tutorial for tile based side scroller game-play? [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
Does anyone know a good resource or some pointers which could help me make a side scrolling tile based (descreet movement for character) with box pushing and moving platforms etc. I'm focused right now C/C++ console development (tho after this project I may stop and do stuff a little more graphical, still C/C++). Something bit like Super Serib Bros. I've taken a look at the code of SSB and I have some idea of how it works, tho the variable names aren't particularly helpful.
It occurs to me someone somewhere must have thought about his problem before. So before I go re-inventing the wheel, any clues?
You'd probably be best signing in one of the better known game development groups, for example GameDev or DevMaster as well as checking out the stuff Microsoft pushes.
I'm not sure how many resources you will find for making games, as most open source games develop their own tools and commercial games keep their tools private.
I think that the best strategy is to start from scratch, using existing low-level libraries.
For C++, I recommend using Box2d for physics and HGE for graphics. I have also heard that python's pygame library is good, but have not tried it myself.
I use a an editor/engine called RPG Maker for fun in my spare time. You can download the demo for free. It is a tile based rpg engine and is pretty basic, but the engine is written in ruby and can be browsed very easily.