Click here to Skip to main content
15,892,768 members
Articles / Multimedia / GDI+

Ray casting in a 2D tile-based environment

Rate me:
Please Sign up or sign in to vote.
4.39/5 (9 votes)
15 Sep 2006MIT4 min read 123.4K   1.9K   42  
An article on ray casting in a 2D tile-based environment.
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace RayCasting2D {
	static class Program {
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() {
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new Form1());
		}
	}
}

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 MIT License


Written By
Software Developer Pogopixels Ltd
United Kingdom United Kingdom
Pogopixels is a London based software company specialising in the development of widgets, Flash and internet-based software.

It delivers innovative software solutions to companies using the latest technologies including Adobe AIR, Yahoo Widgets, or Google Desktop.

Have a look at pogopixels.com for more information.

On my spare time, I work on the Appetizer open source project: http://app.etizer.org It's a portable dock for Windows.

Comments and Discussions