Created
January 8, 2016 19:16
-
-
Save hakelimopu/ef304e7f4464267aa37e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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