• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
noobnerd

lines

7 posts in this topic

Hi there

I have been reading a book on C# for a while now and i think im beginning to have a somewhat rudimentary understanding of how it works, but so far the only things i have learned are console applications and different ways of making fancy methods and stuff. Before C# i learned Dark Basic mainly by trial and error by doing small graphics programs that looked cool.
So to the point. How do i do small graphics programs in C#? In Basic there are commands like line(x1,y1,x2,y2,color) and i assume that such stuff doesnt exist in C# so how do i do this? I checked the book and it only tells me how to use C#, not how to actually do things with it that anybody would like to use.

Thank you
0

Share this post


Link to post
Share on other sites
[quote name='noobnerd' timestamp='1352131111' post='4997609']
not how to actually do things with it that anybody would like to use.
[/quote]

Even in games, graphical output is a very small percentage of the entire program. Knowing how to solve problems and make the code do what you want is what people want to use.

That said, the [url="http://msdn.microsoft.com/en-us/library/system.drawing.aspx"]System.Drawing[/url] namespace has some things to do that. Not great things, and not things that can be used too much for games; but enough to get your feet wet. After that, you'll need to pick and use some API dedicated to graphical rendering. But learn the language first. It'll give you a good foundation once you start trying to use the APIs.
0

Share this post


Link to post
Share on other sites
1. Make a "Windows Forms Application"
2. In the file "Form1.cs", add the following method:

[code]
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);

e.Graphics.DrawLine(Pens.Black, 0, 0, 100, 100);
}
[/code]

(This assumes you're using some version of Visual Studio)

If you've never written a WinForms app in Visual Studio before, you will have to right click on the Form1.cs item in the solution explorer and select "View Code" in order to view the C# (by default it will display the visual form designer).

ProTip: You can use the code viewer by default by right clicking Form1.cs, clicking "open with...", selecting "CSharp Editor", and clicking "Set as Default". Edited by Nypyren
1

Share this post


Link to post
Share on other sites
Dark basic is a language dedicated to game programming, so it has some graphics command built in.
But c# is more like a general purpose language so it doesn't have a nice graphics tool designed for game.

You should start looking at XNA after getting comfortable with C# Edited by lride
0

Share this post


Link to post
Share on other sites
Thanks for the quick replies.

@ Telastyn : I know, but i just think that doing programs that you are interseted in is a good way to learn the language, instead of just doing endless examples of different method attributes etc. that just show you what it does. Of course this would only help me get comfy with C# basics as it is not like i would ever come up with something like abstracts or such except by reading it in the book. System.Drawing, okay thanks, but how do i use them, i cant just draw a line in the console. Are they used on windows forms?

@Nypyren : Thanks! will try it out

@Iride : Yeah, thats why i moved to C# from Basic.
0

Share this post


Link to post
Share on other sites
Hi,

It sounds as though you are a few months from getting good simple results from the graphics engine of your choice, probably by an existing game development system like XNA.

After you are good at basic programs, worked with XNA for a while, then look at SharpDX or MonoDevelop/Mono. Knowing that the communities which support these development environments have the knowledge and experience is your key, so once you get there put the key in the proverbial hole and open it.[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]

Clinton
0

Share this post


Link to post
Share on other sites
[quote name='noobnerd' timestamp='1352149666' post='4997729']
i just think that doing programs that you are interseted in is a good way to learn the language
[/quote]

And[b] I think [/b]that having seen beginners bite off more than they can chew for more than a decade now, you should err towards getting a good foundation.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0