-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.fs
33 lines (27 loc) · 987 Bytes
/
Program.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
namespace Coral
module Program =
open SFML.System
[<EntryPoint>]
let main argv =
let config: Config = {
Width = 1600u
Height = 900u
Title = "My Awesome Game"
}
// Define starting entities
// Define starting game state
let gamestate = {
BallPosition = Vector2f(100.0f, 100.0f)
CurrentScene = MainMenuScn
DeltaTime = 0
TickCount = 0
ShowDebugHUD = true
CurrentTickLoadsNewEntities = false
CurrentTickUpdatesDrawables = false
CurrentTickSetsupScene = true
UserCommandsList = Set.empty
KeysPressed = Set.empty
Entities = Map.empty
}
Engine.start (config, gamestate)
0 // return an integer exit code