mirror of
https://github.com/Fluffy-Bean/ColouringApp.git
synced 2025-05-29 22:53:10 +00:00
I actually just forgotten
This commit is contained in:
parent
1b05e0364b
commit
9225fd428a
6 changed files with 64 additions and 6 deletions
29
scenes/playerData.go
Normal file
29
scenes/playerData.go
Normal file
|
@ -0,0 +1,29 @@
|
|||
package scenes
|
||||
|
||||
import (
|
||||
"ColouringApp/application"
|
||||
"time"
|
||||
|
||||
raylib "github.com/gen2brain/raylib-go/raylib"
|
||||
)
|
||||
|
||||
func PlayerData() {
|
||||
// Load player data here
|
||||
for !application.ShouldQuit {
|
||||
application.ShouldQuit = raylib.WindowShouldClose()
|
||||
if application.CurrentScene != application.ScenePlayerData {
|
||||
break
|
||||
}
|
||||
|
||||
raylib.BeginDrawing()
|
||||
raylib.ClearBackground(raylib.Black)
|
||||
|
||||
raylib.DrawText("Loading...", 10, application.WindowHeight-30, 20, raylib.White)
|
||||
|
||||
raylib.EndDrawing()
|
||||
|
||||
// Just a placeholder
|
||||
time.Sleep(1 * time.Second)
|
||||
application.CurrentScene = application.SceneTitle
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue