aboutsummaryrefslogtreecommitdiff
path: root/src/main.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.odin')
-rw-r--r--src/main.odin10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.odin b/src/main.odin
index bed9861..88e4173 100644
--- a/src/main.odin
+++ b/src/main.odin
@@ -6,8 +6,8 @@ package demonchime
import "base:runtime"
-import "core:log"
import "core:fmt"
+import "core:log"
import "core:mem"
import os "core:os/os2"
@@ -86,7 +86,7 @@ frame :: proc() {
update_player(rl.GetFrameTime())
draw.new_frame()
-
+
rl.BeginMode2D(state.camera)
draw_player()
@@ -96,7 +96,8 @@ frame :: proc() {
rl.EndMode2D()
fps_text := fmt.caprintf(
- "FPS: %v", rl.GetFPS(),
+ "FPS: %v",
+ rl.GetFPS(),
allocator = context.temp_allocator,
)
rl.DrawText(fps_text, 5, 5, 8, rl.GREEN)
@@ -138,7 +139,7 @@ main :: proc() {
}
mem.tracking_allocator_destroy(&track)
}
- }
+ }
logger = log.create_console_logger()
context.logger = logger
@@ -163,4 +164,3 @@ main :: proc() {
cleanup()
}
-