package main

import "core:fmt"
import math "core:math"
import rl "vendor:raylib"

main :: proc() {
	rl.InitWindow(1280, 720, "Odin + Raylib - NFS Style Lighting")
	defer rl.CloseWindow()

	rl.SetTargetFPS(140)
	rl.InitAudioDevice()
	defer rl.CloseAudioDevice()

	state := init_game_state()
	defer cleanup_game_state(&state)


	for !rl.WindowShouldClose() {

		update_game_state(&state)

		rl.BeginDrawing()
		{
			draw_game_state(&state)
		}
		rl.EndDrawing()
	}
}
