1
0
Fork 0

Compare commits

..

No commits in common. "57e57f3037ac026ec24c264617f648a234c59862" and "634fd7ce408cf4c8fd36db9bd974da95269e3080" have entirely different histories.

4 changed files with 0 additions and 16 deletions

View file

@ -6,9 +6,6 @@ import (
"tetris/engine/graphics/font"
)
//go:embed icon.png
var Icon []byte
//go:embed sprites.png
var Sprite []byte

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

View file

@ -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)))
}

View file

@ -22,12 +22,6 @@ func main() {
})
defer render.Exit()
// Set window icon
if icon := graphics.LoadImageFromMemory(".png", assets.Icon); icon != nil {
rl.SetWindowIcon(*icon)
rl.UnloadImage(icon)
}
audio.Init()
defer audio.Exit()