This is a DirectX car game made in VB. I used Objects in this one so it should help some people. It’s not very interesting but demonstrates a good way to make an OO Game. Hope you like this.
闲来无事,自己研究了泛型类的简单的使用,where表示泛型约束,表示泛型类型中的参数只能是car类型,IEnumerable是一个接口,一个集合要支持FOREAch遍历,必须实现IEnumerable接口 代码如下:public class Car { public string PetName; public int Speed; public Car(string name, int currentSpeed) {