Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a GUI for my C# XNA game? [closed]

My game has basic functionality and is playable with a command line, but I would like to put a GUI on top of it.

It is a platformer type game written in C# with the XNA framework.

I have googled and found a few libraries, but they all seem very gum and duct tape. Is there a mature or standard way of making a GUI for my situation?

like image 589
samoz Avatar asked Apr 11 '11 22:04

samoz


People also ask

Can I create GUI in C?

The most famous library to create some GUI in C language is certainly GTK. With this library you can easily create some buttons (for your example). When a user clicks on the button, a signal is emitted and you can write a handler to do some actions.

Can I make my own GUI?

Building a simple GUI toolkit means providing a couple of basic primitive elements that render content, and then slightly more complex layout elements that can modify the way in which their primitives render the content. Is it possible to write a GUI in C without a Windows API, just a raw C code? Yes.

Does C have a GUI library?

C has no such library connected to it like the string library, IO library, etc, that we every now and again use. This weakness opened the skyline for engineers to pick from a wide assortment of GUI library toolbox accessible in C.


1 Answers

The standard answer is: look at the Gamestate management tutorial in Education Catalog.

This doesn't give you very nice widgets, but rather shows a way of managing the game flow and some menus (including pause menu).

like image 164
jv42 Avatar answered Sep 30 '22 00:09

jv42