-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame1.fs
37 lines (24 loc) · 785 Bytes
/
Game1.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
module Template
open Microsoft.Xna.Framework
open Microsoft.Xna.Framework.Graphics
type Game1 () as x =
inherit Game()
do x.Content.RootDirectory <- "Content"
let graphics = new GraphicsDeviceManager(x)
let mutable spriteBatch = Unchecked.defaultof<_>
override x.Initialize() =
x.IsMouseVisible <- true
do base.Initialize()
()
override x.LoadContent() =
spriteBatch <- new SpriteBatch(x.GraphicsDevice)
do base.LoadContent()
()
override x.Update (gameTime) =
do base.Update (gameTime)
()
override x.Draw (gameTime) =
do x.GraphicsDevice.Clear Color.CornflowerBlue
spriteBatch.Begin()
spriteBatch.End()
do base.Draw (gameTime)