Skip to content

Instantly share code, notes, and snippets.

@hakelimopu
Created January 8, 2016 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakelimopu/ef304e7f4464267aa37e to your computer and use it in GitHub Desktop.
Save hakelimopu/ef304e7f4464267aa37e to your computer and use it in GitHub Desktop.
module MyGame
open Microsoft.Xna.Framework
open Microsoft.Xna.Framework.Graphics
type MyGame () as this =
inherit Game()
let graphics = new GraphicsDeviceManager(this)
let mutable spriteBatch: SpriteBatch = null
override this.Initialize() =
spriteBatch <- new SpriteBatch(this.GraphicsDevice)
base.Initialize()
override this.LoadContent() =
()
override this.Update delta =
()
override this.Draw delta =
Color.CornflowerBlue
|> this.GraphicsDevice.Clear
spriteBatch.Begin()
//render here
spriteBatch.End()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment