Good languages for game development?
Does anyone have any recommendations on programming languages for game development? I'm interested in making some sort of chess/checkers type game but I'm not sure which language would be best.
Stapled wrote:Does anyone have any recommendations on programming languages for game development? I'm interested in making some sort of chess/checkers type game but I'm not sure which language would be best.
Stapled wrote:I guess I'll be using C# as it's what I'm using for school and it's what I've been coding with the most as of late.
One more thing. I've never made a game with graphics but I'm assuming Microsoft has some built in functions for handling them. Would you happen know anything about them?
Flareboy323 wrote:I would definitely say C++. It's the language of choice for professional game development (Whether it be PC or Xbox) except for dumb games like Minecraft that are written in Java, and take huge portions of system resources.
The Unintelligible wrote:C#/XNA is typically the language and framework used for Xbox game development, not C++.
Also Minecraft is a pretty successful/lucrative game. Another successful game written in Java is Runescape. I'm sure there are plenty others.
Stapled wrote:I'll look into GDI+ but I am tempted to try XNA as I'll be using it later on in college.
rk with you. I tried entering a couple of years ago, but I couldn't find any artists to participate with, only had 2 programmers in the team (including myself).Stapled wrote:I'll look into GDI+ but I am tempted to try XNA as I'll be using it later on in college.
private void DrawBoard(Graphics g, Rectangle bounds)
{
Brush[] tileColors = { Brushes.Gray, Brushes.Black };
int size = Math.Min(bounds.Width, bounds.Height) / 8;
for (int row = 0; row < 8; row++)
{
for (int col = 0; col < 8; col++)
{
g.FillRectangle(tileColors[(col + row) % 2], bounds.X + col * size, bounds.Y + row * size, size, size);
}
}
}private void Form1_Paint(object sender, PaintEventArgs e)
{
using(Graphics g = e.Graphics)
{
game.Draw(g, new Rectangle(50,50,400,400));
}
}
Zachafer wrote:If you're making a basic checkers game, it should be more about the AI and functionality of the game rather than the graphics. System.Drawing in the .NET Framework works well for this.
This is how simple drawing is in .NET:private void DrawBoard(Graphics g, Rectangle bounds)
{
Brush[] tileColors = { Brushes.Gray, Brushes.Black };
int size = Math.Min(bounds.Width, bounds.Height) / 8;
for (int row = 0; row < 8; row++)
{
for (int col = 0; col < 8; col++)
{
g.FillRectangle(tileColors[(col + row) % 2], bounds.X + col * size, bounds.Y + row * size, size, size);
}
}
}private void Form1_Paint(object sender, PaintEventArgs e)
{
using(Graphics g = e.Graphics)
{
game.Draw(g, new Rectangle(50,50,400,400));
}
}