This commit is contained in:
Gnawmon 2024-05-14 17:50:36 +03:00
parent 2b7d0414b8
commit 6f11d954f9
2 changed files with 5 additions and 2 deletions

BIN
assets/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 KiB

7
bf.go
View File

@ -67,6 +67,9 @@ func main() {
loadedTextures = cropTexturePack("./assets/img/textures/" + userData["texture"].(string))
icon := rl.LoadImage("icon.png")
rl.SetWindowIcon(*icon)
for !rl.WindowShouldClose() {
rl.BeginDrawing()
@ -74,7 +77,7 @@ func main() {
drawMap(loadedMap)
drawPaint()
drawBall(ballPos, ballColor, rl.White, cosmetic)
drawBall(ballPos, ballColor, rl.White, cosmetic)
moveBall()
usernamePosisiton := rl.Vector2Subtract(ballPos, rl.Vector2{ballRadius + 24, ballRadius + 40})
@ -87,7 +90,7 @@ func main() {
rl.DrawCircleV(rl.Vector2{135, 14}, 8, rl.NewColor(0, 255, 0, 255))
drawTextShadow(fpsText, rl.Vector2{155, 5}, carlito, rl.NewColor(0, 255, 0, 255))
rl.DrawLine(10, 33, 120, 33, rl.NewColor(221, 221, 221, 255))
drawTextShadow("Version: 0.0.0", rl.Vector2{10, float32(2*spacing + 1)}, carlito, rl.NewColor(168, 168, 252, 255))
drawTextShadow("Version: 1.0.0", rl.Vector2{10, float32(2*spacing + 1)}, carlito, rl.NewColor(168, 168, 252, 255))
drawTextShadow("Platform: "+runtime.GOOS, rl.Vector2{10, float32(3*spacing + 1)}, carlito, rl.NewColor(168, 168, 252, 255))
drawTextShadow("Client ID: none", rl.Vector2{10, float32(5*spacing + 1)}, carlito, rl.NewColor(221, 221, 221, 255))