IT WORKS (kinda)
This commit is contained in:
@@ -175,12 +175,12 @@ partial def run : IO Unit := do
|
|||||||
SDL.quit
|
SDL.quit
|
||||||
return
|
return
|
||||||
|
|
||||||
/-
|
|
||||||
unless (← SDL.createRenderer) != 0 do
|
unless (← SDL.createRenderer ()) != 0 do
|
||||||
IO.println "Failed to create renderer"
|
IO.println "Failed to create renderer"
|
||||||
SDL.quit
|
SDL.quit
|
||||||
return
|
return
|
||||||
-/
|
|
||||||
|
|
||||||
let initialState : EngineState := {
|
let initialState : EngineState := {
|
||||||
deltaTime := 0.0, lastTime := 0, running := true,
|
deltaTime := 0.0, lastTime := 0, running := true,
|
||||||
|
|||||||
Reference in New Issue
Block a user