Advertisement
Guest User

Untitled

a guest
Nov 16th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.72 KB | None | 0 0
  1. module desnovro
  2.  
  3. open Microsoft.Xna.Framework
  4. open Microsoft.Xna.Framework.Graphics
  5.  
  6. type Game1 () as x =
  7.     inherit Game()
  8.  
  9.     do x.Content.RootDirectory <- "Content"
  10.     let graphics = new GraphicsDeviceManager(x)
  11.     let mutable spriteBatch = Unchecked.defaultof<SpriteBatch>
  12.  
  13.     override x.Initialize() =
  14.         do spriteBatch <- new SpriteBatch(x.GraphicsDevice)
  15.         do base.Initialize()
  16.         ()
  17.  
  18.     override x.LoadContent() =
  19.         ()
  20.  
  21.     override x.Update (gameTime) =
  22.         ()
  23.  
  24.     override x.Draw (gameTime) =
  25.         do x.GraphicsDevice.Clear Color.CornflowerBlue
  26.         ()
  27.  
  28. [<EntryPoint>]
  29. let main argv =
  30.     use g = new Game1()
  31.     g.Run()
  32.     printfn "Desnovro!!!"
  33.     0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement