![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: gamedev, help, xna |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| |||
| Here's an example in F# version 1.1.13.8 or Higher: // An XNA game in F# #light #I @"C rogram FilesMicrosoft XNAXNA Game Studio Expressv1.0ReferencesWindowsx86"#r "Microsoft.Xna.Framework.dll" #r "Microsoft.Xna.Framework.Game.dll" // Not all of these opens are required for this sample, but you will need them to write a full game open Collections open Compatibility open Idioms open Microsoft.Xna.Framework open Microsoft.Xna.Framework.Audio open Microsoft.Xna.Framework.Content open Microsoft.Xna.Framework.Graphics open Microsoft.Xna.Framework.Input open Microsoft.Xna.Framework.Storage open System open System.IO type MyGame = class inherit Game as base val mutable graphics : GraphicsDeviceManager new() as this = { graphics = null } then this.graphics <- new GraphicsDeviceManager(this) override this.Draw(gameTime) = let gd = this.graphics.GraphicsDevice gd.Clear(Color.Green) end let main() = let game = new MyGame() game.Run() [<STAThread>] do main() __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| |||
| F yah it's new, lol __________________ Day Cares | Golf Courses | Disc Golf Courses | Campgrounds | Ice Rinks | Paintball Fields | Dentists | Plastic Surgeons | Aging Jokes Catholic Churches | Lutheran Churches | Methodist Churches | Episcopal Churches | Clean Jokes |
| ||||
| Its been around since about 2005 i think, its good because it has access to .NET framework and can use its API's... Also can use directx with it ![]() |
| ||||
| Have a read through some of the points: http://research.microsoft.com/fsharp/fsharp.aspx Hope that helps, Lee. |
![]() |
| Thread Tools | |
| Display Modes | |
| |