Sign in to follow this  
Nicholas Kong

How different is making a game for C# than in Java?

Recommended Posts

Nicholas Kong    1535

I'm teaching myself C#. I come from a Java background(been improving my Java game project for 2 months). I have done basic C++ (up to recursion). I have not done objected-oriented C++.

 

C# seems to be a mixture of Java and C++. So far I have been introduced to namespaces, structs and classes. 

 

Conceptually, how much more do I need to learn to make a game in C#? Does C# have a built-in graphics library like Java or do I need to find a library to get the basic framework for a game? 

 

In Java: It would be "public class Game extends Canvas".

 

What is C# equivalent of the above code?

Edited by warnexus

Share this post


Link to post
Share on other sites
Flimflam    665

Your Java background will do extremely well for you when it comes to learning C#. With the exception of the different runtime classes, the language itself will feel almost identical.  With some cursory learning where the new bits and bobs are in the runtime, you should be making games in no time. 

 

As for graphics libraries... .NET makes extensive use of GDI+ for rendering graphics. It's not really built for rendering graphics quickly, so you're better off using a separate library for this task. XNA is pretty good at getting you going writing games in C#. There is tons of tutorials and sample stuff around the net for XNA if you're interested. 

Edited by Flimflam

Share this post


Link to post
Share on other sites
moneal2001    768

you should also check out monogames. Microsoft is not updating or using xna in its newer platforms.  monogames is a cross-platform framework based on xna with support.  

Share this post


Link to post
Share on other sites
Nicholas Kong    1535

Your Java background will do extremely well for you when it comes to learning C#. With the exception of the different runtime classes, the language itself will feel almost identical.  With some cursory learning where the new bits and bobs are in the runtime, you should be making games in no time. 

 

As for graphics libraries... .NET makes extensive use of GDI+ for rendering graphics. It's not really built for rendering graphics quickly, so you're better off using a separate library for this task. XNA is pretty good at getting you going writing games in C#. There is tons of tutorials and sample stuff around the net for XNA if you're interested. 

This is awesome news!

 

Thanks I will do research on XNA as well as on another separate graphics library.

Share this post


Link to post
Share on other sites
Nicholas Kong    1535

you should also check out monogames. Microsoft is not updating or using xna in its newer platforms.  monogames is a cross-platform framework based on xna with support.  

Nice. I will look into Monogames as well. Thanks!

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