Click here to Skip to main content
15,886,788 members
Articles / Programming Languages / C# 2.0

Sample Pamper Series - Part 4: 2/3D Space Game, Simple Sounds, and Threads

Rate me:
Please Sign up or sign in to vote.
4.67/5 (11 votes)
4 Apr 2012CPOL5 min read 39.6K   714   42  
This article is the final one in the series, and it will give you a 2/3D space game out of what we have learnt from previous articles. We will also apply simple sounds to it played in threads.
using System;
using System.Collections;

namespace Engine3DVP
{
	/// <summary>
	/// Summary description for IObject3D.
	/// </summary>
	public interface IObject3D
	{
		int Len {get;}
		int Nr {get;}
		Poinx3D ObjPos {get;set;}
		double PaseX {get;set;}
		double PaseY {get;set;}
		int Energy {get;set;}
		double GetDegree(int i);
		void SetDegree(int i, double degree);
		void RotateIt();
		double GetRotX();
		double GetRotY();
		void SetRotX(double val);
		void SetRotY(double val);
		Poly3D GetMeshPoly(int i);
		Poly3D GetMeshPolyN(int i);
		void SetMeshPoints(ref ArrayList mesh);
		void SetPos(int mesh, Poly3D newp);
		Poly3D GetPoly(int mesh);
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Sweden Sweden
Professional programmer, degree in Informatics and Applied Systems Science.

Comments and Discussions