Welcome to TechNet Blogs Sign in | Join | Help

The Applied Games Group Blog

New stuff directly from Microsoft Research.
Composing a video game in F#

This week it was my opportunity to present a topic for 15 minutes at the MLP group's ritual Tuesday afternoon tea and cakes session (yes - we are based in the UK). I thought it might be fun to knock up a little game with the Microsoft functional programming language F#. With only a few hours to spare at the weekend I decided to go with a retro style game and an old favourite of mine - the light cycle game sequence featured in the 80s movie Tron. So after about 4 hours I had a 2 player game in Windows Forms with optional support for XBox 360 controllers with managed DirectX all in under 200 lines of F#; and come tea time I even had some players. If you fancy having a go yourself the code can be viewed on the F# Wiki.

Light cycles

Have fun,

Phil

Posted: Thursday, October 25, 2007 8:33 PM by apg
Filed under: , , ,

Attachment(s): lightcycles.fs

Comments

ASPInsiders said:

First, let me remind you that in my new ongoing quest to read source code to be a better developer ,

# September 25, 2008 5:14 AM

Readed By Wrocław NUG members said:

First, let me remind you that in my new ongoing quest to read source code to be a better developer ,

# September 25, 2008 5:46 AM

Phillip Trelford's blog... evidently said:

Announcing My F# Introduction Talk on Tuesday 19th May, 2009 @ Skills Matter in London

# May 14, 2009 2:56 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker