Compare commits
No commits in common. "57e57f3037ac026ec24c264617f648a234c59862" and "634fd7ce408cf4c8fd36db9bd974da95269e3080" have entirely different histories.
57e57f3037
...
634fd7ce40
4 changed files with 0 additions and 16 deletions
|
|
@ -6,9 +6,6 @@ import (
|
||||||
"tetris/engine/graphics/font"
|
"tetris/engine/graphics/font"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed icon.png
|
|
||||||
var Icon []byte
|
|
||||||
|
|
||||||
//go:embed sprites.png
|
//go:embed sprites.png
|
||||||
var Sprite []byte
|
var Sprite []byte
|
||||||
|
|
||||||
|
|
|
||||||
BIN
assets/icon.png
BIN
assets/icon.png
Binary file not shown.
|
Before Width: | Height: | Size: 153 B |
|
|
@ -1,7 +0,0 @@
|
||||||
package graphics
|
|
||||||
|
|
||||||
import rl "github.com/gen2brain/raylib-go/raylib"
|
|
||||||
|
|
||||||
func LoadImageFromMemory(typ string, data []byte) *rl.Image {
|
|
||||||
return rl.LoadImageFromMemory(typ, data, int32(len(data)))
|
|
||||||
}
|
|
||||||
|
|
@ -22,12 +22,6 @@ func main() {
|
||||||
})
|
})
|
||||||
defer render.Exit()
|
defer render.Exit()
|
||||||
|
|
||||||
// Set window icon
|
|
||||||
if icon := graphics.LoadImageFromMemory(".png", assets.Icon); icon != nil {
|
|
||||||
rl.SetWindowIcon(*icon)
|
|
||||||
rl.UnloadImage(icon)
|
|
||||||
}
|
|
||||||
|
|
||||||
audio.Init()
|
audio.Init()
|
||||||
defer audio.Exit()
|
defer audio.Exit()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue