Category Archives: F#

Simplifying State with Async (with XNA/WPF examples)

Now, let me start this post by saying I love XNA/Monogame. XNA was Microsoft’s first (and currently last) attempt to have a first class managed framework for writing games. Luckily the excellent Monogame project has picked up Microsoft’s slack and … Continue reading

Posted in Async, F#, Monogame, XNA | Tagged , , , , | 13 Comments

It just works(™)!

I was recently a guest on the .NET Rocks podcast and one of the things that came up was this notion in F# of “if it compiles – it works”. Given the constraints of time on the show (and technical … Continue reading

Posted in C#, F#, thought | 4 Comments

Book Review: F# for Quantitative Finance

I was recently given the opportunity to review the book F# for Quantitative Finance by Johan Astborg.  Disclaimer: I work in the finance industry, but I don’t do “Quant stuff” for a living. I’m not going to review the correctness of the … Continue reading

Posted in F#, Review | Tagged , | 1 Comment

Building a C# compiler in F#

A little over a year ago I wrote a post about Roslyn. Recently (after seeing Mads Torgersen‘s excellent NDC-london talk) I was inspired to attempt to write my own mini-C# compiler to address some of the missing features in C#. … Continue reading

Posted in C#, Compiler, F# | 5 Comments

Desktop class performance on a mobile phone?

I recently bought an iPhone 5S (this is partly why I’ve taken a short detour from the platform game – this will resume in my next post!). Once again Apple have managed to create hype around a new CPU which … Continue reading

Posted in Android, benchmarking, F#, iOS, Mono, performance | Tagged , , , , , | 2 Comments

A Platform game in F# and SpriteKit – Part 7 – DSLs baby!

So far our (1) level is fairly painful code to look at – admittedly SpriteKit and F# take something that could have been horrific and simply make it tedious. Today we change that. DSL According to Wikipedia a DSL is … Continue reading

Posted in F#, iOS | Tagged , , , | 1 Comment

A Platform game in F# and SpriteKit – Part 6 – Death

If there’s one thing we can all be certain of in life, it’s death. And so the same rule must apply to our dude. It’s been good knowing you little guy. F# shines again The last few posts have been … Continue reading

Posted in F#, iOS | Tagged , , , | 1 Comment

A Platform game in F# and SpriteKit – Part 5.5 – Sound Effects

Micro-post: Playing sound effects in SpriteKit: //Load the sound use jumpSound = SKAction.PlaySoundFileNamed(“Jump.wav”, true) //Play the sound scene.RunAction jumpSound Note that the File extension is important here – unlike the graphics formats loaded into SpriteKit. Winning! Next Time So far our level plays for … Continue reading

Posted in F#, iOS, Mono, Uncategorized | Tagged , , , | 1 Comment

A Platform game in F# and SpriteKit – Part 5 – Animation and Sound

Last time we added some scrolling to out game, but our main character looks rather static. Let’s let him move like Jagger (well maybe  Cliff Richard) Animation! SpriteKit is clever. It’s possible to give SpriteKit a bunch of textures and … Continue reading

Posted in F#, iOS | Tagged , , , | 1 Comment

A Platform game in F# and SpriteKit – Part 4 – Running and Scrolling

So far in this series I’ve covered how to build a largely static screen in SpriteKit. Today I’m going to cover 2 things I’m going to move our dude from left to right under force I’m going to scroll the … Continue reading

Posted in F#, iOS | Tagged , , , , | 1 Comment