Graphic programming

Pages: 1234
GDI is part of the Windows SDK. It's included in Visual Studio.
Since you have Visual Studio it's the easiest to try out.

For a starter have a look at http://zetcode.com/gui/winapi/gdi/

XAML is part of .NET so you would rather use C# for it.
A simple snake game
https://www.wpf-tutorial.com/creating-game-snakewpf/introduction/

I’ve been searching and searching on how to add SFML lib, I tried all the turtorials but there isn’t a SFML lib in VS 2019, would someone be able to give me step by step instructions on how to add it. I tried exactly as how I was suppose to with the web’s I was given.
Oops I didn’t read the top part, would I need to download the file from the website, then add it?
GDI is part of the Windows SDK. It's included in Visual Studio.
Since you have Visual Studio it's the easiest to try out.

For a starter have a look at http://zetcode.com/gui/winapi/gdi/

XAML is part of .NET so you would rather use C# for it.
A simple snake game
https://www.wpf-tutorial.com/creating-game-snakewpf/introduction/


Hey Thomas, thanks for that it was really helpful!!
C++ is not your language. You are one of the new, impatient young enthusiasts. They have an idea - and they can't wait for this idea to become a reality more than a few months. If this does not happen, they become frustrated and move on to the next one.

You've heard somewhere that good games are written on C++ because of the speed of this language - and based on that you have already concluded that your simple game should be written at all costs on C++ - to be the best. :-)

To ask such a question means that you are extremely uninformed about the nature of C++ language on first place. It will take you about half a year just to learn the basics of C++. To make simple graphic games from scratch as you want, using C++, you will need at least another year.


Don't waste your time with nonsense. JAVA is your language. Look at these lessons and in 2 months(and maybe in less time) you will have a game you want to make.

https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw

P.s. Or if you want to use C++ or C# for making games you must use Game engine like Unity - but this contradicts your original goal the game to be from scratch. They also have tutorials and you will quickly assemble a working version of your planing game. But AGAIN - 2 months minimum :-)

https://unity.com/

P.p.s For this dinosaur you talk about? https://www.youtube.com/watch?v=l0HoJHc-63Q
And do not draw wrong conclusions about Daniel Shiffman's slightly frivolous behavior, which makes him look like an amateur programmer in first look. He is probably one of the best JAVA programmers in the world at the moment. As I said above If you are looking for such quick solutions to your ideas - as Daniel do it - you just got into the wrong forum and the wrong programming language C++. JAVA is your right choice ;-)


Last edited on
Emil Enchev wrote:

P.p.s For this dinosaur you talk about? https://www.youtube.com/watch?v=l0HoJHc-63Q
[...] He is probably one of the best JAVA programmers

One cannot give advice in good faith without the barest minimum of background knowledge. But here you are, condescending to OP.

If I need to spell this out for you, Java and Javascript are entirely unrelated tools.

And quit with the gate-keeping. You're not better than anyone because you decided to learn C++ a few months ago.
Last edited on
C++ is not your language.

So says the person who thinks C++ and MS Windows are competitors.
http://www.cplusplus.com/forum/general/273633/
mbozzi, Idiot - why don't you just shut up .I think I know enough from C++ to give him advice about to not use it for his intended purpose.

http://www.cplusplus.com/forum/general/256680/

I tell him the truth. With Java he can make his game in less that 30 minutes. Why you don't show as one working version on C++ ?!;-)

https://www.youtube.com/watch?v=l0HoJHc-63Q
The OP asked for C++, not Java. You are not the end-all expert. Stop being a troll.
Tezzy, you have two options.

1. To listen to me - to learn a little JAVA, and soon to see your games as a reality.

2. Listen to the wooden philosophers here who have so far only programmed console programs on C++ and they give you as a starting point things that you will not understand even if you break your ass from re-reading this shit...

http://zetcode.com/gui/winapi/gdi/

... and finally to give up your project.

You chose.

P.s. Gaming and C++ is the ultimate form of perfection. It will takes you years to be able to use this programming language for this purpose - unless you use game engine like Unity. Don't waste your time, as I said it to you, above.

Damn, this troll is quite dense. The OP wants C++, NOT Java.
Alr guys arguiming isn’t doing any good and Furry guy, Emil is just saying his opinion and it could be useful so just let him be. The whole point of the forum’s is to get people opinions and thoughts to what would be the best for me. But when Emil says
C++ isn’t your language

A language which everyone starts is new, saying it’s not your language doesn’t really make sense. And my purpose isn’t too make a really hard game, Just a simple one and in my opinion c++ and even Java can do the job

But what I’ve heard is c++ is a much more easier, to learn and to execute the project, it can take 5-6 months but it’s fine.

I did have a look at Java for a bit but was quite lost. I think C++ has better turtorials which I’ve found
I will look at the links you gave me Emil and I’ll give it a try but the C++ links Furry gave me on SFML was really helpful, I understood the whole code just wasn’t able to download the SFML file. I’ll try both Java and C++ out and see which one is easier, and when you said Java would only take 2 months which would save time. I have no issue with time I just need to know which one is better and which one could help me further on in life.
https://www.youtube.com/watch?v=l0HoJHc-63Q

That was actually so cool, is that using Java?
Thomas since you said try using SDL or SFML libraries I picked SFML, but when I got it the download page it’s only available for 2017 or 2015 VS, Should I download the 2017 VS for it because in my opinion I think I should because I liked how it works but I’d like your opinion as well.
That was actually so cool, is that using Java?

Javascript, not Java.
That’s what I meant
Why are you guys reporting each other just stop. Let everyone give there inputs and opinions, if you don’t like it then keep it to your self.
Last edited on
What is the actual error when you attempted to get the "Hello world" green circle code to build in Visual Studio 2019? "I wasn't able to download the SFML file" -- I don't know what this means, and it doesn't give me enough information to help you.

The SFML forum might know more, but like I said in a previous post, from a quick search it sounds like you should be able to use the 2017 binaries with 2019. And if not, you can build SFML yourself with CMake + VS.

Anyway, yeah I agree, Emil is entitled to his opinion. There's a variety of paths to choose from, some with more friction than others. Skills can carry from one library or language to another, you should just start somewhere.

(BTW, if you don't have a decent understanding of C++ itself, I would suggest just practicing the language itself before trying to make a game. I don't know how experienced you are in C++ so this is just a thought.)
Last edited on
@OP,
I haven't used SFML for years so I don't know the best way to set it up for VS 2019.
Pages: 1234