The online racing simulator
C# Game programming?
2
(34 posts, started )
You have too many }'s after Initialize Component();, so it closes the namespace. Try this:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1

{

publicpartialclassForm1 : Form
{

public Form1()
{
InitializeComponent();
}

privatevoid TinyTennis_Paint(object sender, PaintEventArgs e)
{
//Work out how long since we were last here
in seconds
double gameTime = _timer.ElapsedMilliseconds / 1000.0;
double elapsedTime = gameTime - _lastTime;
_lastTime = gameTime;
_frameCounter++;
//Perform any animation
//Draw the game objects
//Force the next Paint()
this[size=2].Invalidate();
}
}

You should also spread out the code a bit, although that may just have been the forum...
#27 - sun
ok thanks i'll try it later
Please stop hijacking my thread :|
C# gaming information.
Hi there,
My brother wants to take up C# programming, but to start off with he wants to make some games, he asked me to ask;

What are the best Books/Guides you can buy from a book shop for beginners
If there aren't any good ones (or even if there is), are there any good online tutorials that are worth looking at
Or if there are both can you please link me up with the names of the books and the website names..
Or if there is only one can you link me up again

Cheers,
Sam
So am i, lol i actually used the search.. maybe i missed it, but i dunno. Thanks for the link.
:bump:

XNA 3.0 Community Technical Preview (CTP) has recently been released. It works with Visual studio 2008 and C# Express 2008.

XNA Website
XNA Team Blog - Explains XNA 3.0 a little bit.
2

C# Game programming?
(34 posts, started )
FGED GREDG RDFGDR GSFDG