How do i create an interface for C Game [closed] - c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I just created the "Hangman game" using C language, i used GCC to compile it and worked in the terminal.
Let's say that i started with C a week ago, and this is the only programming language i know (Html & CSS arn't programming languages even if i know them). I'm a complete beginner so.
My question is, from the code source i have, how can i create an interface, an app that i'd start on windows (instead of linux terminal), with "buttons" or something like that ?
If i can't do this from the code source, what wold u recommend ?
What would be the software i should use instead of visual studio code to write code (because i guess i'll need a specific software if i want an interface or if i want to compile it in order to ceate a windows app ?)
I'm not english native so i may did some languages mistakes, sorry in advance.
Let me know if i can be more precise and explain something using other words.

There are numerous libraries and frameworks which can provide a GUI for your games.
Qt
Dear IMGUI
libsdl with widgets
and many more, depending on your requirements
Related posts:
https://gamedev.stackexchange.com/questions/1086/what-c-gui-library-can-you-suggest
Game GUI framework
http://samirsinha.com/choosing-a-gui-framework/
It's probably best to study existing games and how they are designed, what libraries people use, and so on, before embarking on building your own from scratch.
Also try reading some of the resources in the GameDev Stack Exchange.

Related

Plotting a graph in C (ubuntu) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
i would like to ask a question,because i have been searching for 2 hours.
I have a project in a game development course and i have arrays of some map elements,positions,and lines that connect them.And i need to draw a graph from them.But I don't have the slightest idea.Do i include some header file?
Do i download that? If i had the commands i could work with that,but i don't see graphics command anywhere in code blocks.
Please inform me on what i can use to draw a simple graph,and possibly the installation process in general if it's not too much trouble
There is no such a thing as a "graphics command" somewhere in Code::Blocks. In order to create graphical interfaces and to be able to draw things, you have to use a GUI library (like GTK, Qt, SFML, wx... etc).
Since your requirement is to use C I'd recommand you then to go with GTK. Since it's one of the best and most documented library with C language at it's base.
Note: Please be careful that what I mentioned above are only GUI libraries, i.e. mainly used to create graphical user interfaces. Since you are following a game development course, you may rather want to take a look at game engines such as SDL or Unity, which are quite different things, and enable to perform a lot more (serious) gaming stuff.
Here's a Wikipedia list with a thorough listing of GUI libraries.

C - What should scripts do in programs [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
If I want to create a game in C with SDL for example, is there a reason of why I should use a scripting language like Lua with it (since alot of commercial games uses a scripting language)? I have heard that scripting languages often are faster to write and easier to read, but what should they do? (graphics? ai? input? etc).
They should interact with the various "programming primitives" that the native code implements. That is, the native code should only do enough to allow the scripts to function within the game (although "function" can sometimes mean speed-wise).
If that sounds cyclical... it is. There's no complete way to define at the beginning of development what responsibilities the native code will have as the project progresses.

Which programming langage should I use to process images online? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'd like to learn to create a website with processing on the client side.
Here are my goals:
- The program would look like something like Picasa or Lightroom. It means processing lot of pictures in a row
- I'd like the client to download the "image processor" to avoid uploading plenty of pictures on the server (which is slow and frustrating IMHO).
- I also have in mind to create a mobile version of the website
I don't know a lot about internet programming languages but here are my thoughts at the moment:
Flash: I think it would do, but I don't like it (not portable enough from what I read)
Java: This is the one I am thinking of at the moment. But I don't like the idea of asking users to download a third party if they don't have it.
HTML5 + Javascript: I don't what it means regarding Javascript capabilities. Would it be a pain?
Python, Ruby on Rail, C#: I don't know what it means to use them for web programming. I already used Python put as scripting language.
There are for sure other technologies that I am not aware of. Feel free to propose anything else that is mainstream enough to get good support on the internet :)!
Thank you for your help!
I hope you won't think it is a duplicate. I made some search and found this for ex:
Client-side image processing
=> But they already have their core processing since I have nothing!
Modern web browsers support html5 & javascript out of the box - older ones at least have support for javascript unless support for something truely ancient is desired - so considering the compatibility it should be the best one of these alternatives.
Flash needs a flash-plugin and a Java applet needs a jre-plugin.
Have never seen the 4th choice in client-based web-applications really, so not sure about how that would be done.

Build a GUI Application for Windows in C [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm fairly new to C programming.
My program is running at the console as expected, but now I want to build a really simple Windows GUI application for it, sticking to C (just a window showing some text and a file menu).
So far, I have built everything in a single .c source code and used MinGW gcc in my Windows PC as the compiler.
I just downloaded Visual Studio 2013, but trying to use it was a bit overwhelming. I tried to look for alternatives but I'm confused with all the terminology (IDE, SDK, API etc.) and what I really need to do what I want to.
I'll be really satisfied if you just point something for me to read in order to clear my mind.
Thanks a lot in advance and sorry if this was a bad question.
A very simple GUI application is possible sticking with C and Windows API only.
In short, you have to register your own Window class (RegisterClassEx), then create the window (CreateWindowEx). Note that your window class main element is its (WindowProc) that receive the messages and that you have to implement to act as you want. After that, your C program should run the message pump (PeekMessage and DispatchMessage) for Windows to do its stuff and allow interacting with your window.
See the MSDN documentation for these functions to get help and examples.
YOu can start learning GTK for developing GUI using C language . you can get the same at
http://www.gtk.org/development.php

Where can we learn whole C programming with all the libraries? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I was reading "Operating Systems Design and Implementation" by Andrew S. Tanenbaum. It has Source code of MINIX when approaching the back of the book. I know C programming and have also studied the subject of Operating Systems, but still I was not able to understand the source code. Very few lines were such which could be understood.
I found many new libraries included over there. These libraries are not taught the syllabus of my university. Also, when asked teachers of this, even they don't understand the code. So, where can whole C programming be learnt, with all of its libraries? Because university doesn't go in depths.
In a nut shell, how can we learn C programming or any other programming language to such a depth, that by just looking at any code, one can tell what is the code gonna do.
I used to refer to a book a long time ago by Plauger...you may find it useful if you implement your own versions and then compare OR just study them. Ref: http://www.amazon.com/The-Standard-Library-P-J-Plauger/dp/0131315099
You need not learn all libraries. You have to learn how to use libraries. All libraries are presented as object files in the our c source. So you will not find any code for libraries. Learn how to use the libraries and make your task done.Here is a reference manual for standard c library. You can go through it.

Resources