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.
Have fun,
Phil
Comments
Anonymous
January 01, 2003
First, let me remind you that in my new ongoing quest to read source code to be a better developer ,Anonymous
January 01, 2003
PingBack from http://ghillie-suits.info/?p=35543Anonymous
January 01, 2003
First, let me remind you that in my new ongoing quest to read source code to be a better developer ,Anonymous
January 01, 2003
Announcing My F# Introduction Talk on Tuesday 19th May, 2009 @ Skills Matter in LondonAnonymous
August 04, 2009
The comment has been removedAnonymous
June 01, 2010
i am the biggest fan of video games....so i like your post very much...i feel its something different new and attractive... <a href="http://playasiacoupon.com">play asia coupons</a>Anonymous
November 04, 2010
I'd prefer to outsource my ideas to a bunch of hard working coders... www.playasiacouponcode.comAnonymous
December 24, 2011
The comment has been removed