0

I've recently started about thinking about making a 2D game engine in C# from scratch.

Now, I've wondered: In java, I'd use the java.awt.Graphics2d and java.awt.Container classes.

What would you suggest me to use in C#?

Apparently, google couldn't help me with that one.

Jan Berktold
  • 976
  • 1
  • 11
  • 33

2 Answers2

1

In .NET you could use Windows Presentation Foundation, it offers a great lot of graphic-manipulation. But if it fits to create a game-engine, I am not sure.
See MSDN for an overview.

Though, if you really want to have power, you should stick with DirectX and C++.

Note: there is FNA and MonoGame (both reimplementations of the now discontinued XNA), but they are both frameworks for creating games, not creating a game engine...

BlueStaggo
  • 171
  • 1
  • 12
bash.d
  • 13,029
  • 3
  • 29
  • 42
0

You can easily build games (2D/3D) with FNA or MonoGame (reimplementations of the now discontinued XNA). They aren't engines but they are both a layer architecture for simple DirectX-usage.

If you're looking for image manipulation within Windows Forms (PictureBox, Draw()-method overrides) you should have a look at System.Drawing.

Cfun
  • 8,442
  • 4
  • 30
  • 62
Michael
  • 621
  • 5
  • 17