Initial commit
This commit is contained in:
commit
0245a5cb43
22 changed files with 610 additions and 0 deletions
55
assets/def.go
Normal file
55
assets/def.go
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
package assets
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
|
||||
"tetris/engine/graphics/font"
|
||||
)
|
||||
|
||||
//go:embed sprites.png
|
||||
var Sprite []byte
|
||||
|
||||
var Font = font.TileFont{
|
||||
Charmap: map[rune]byte{
|
||||
'a': 0x20,
|
||||
'b': 0x21,
|
||||
'c': 0x22,
|
||||
'd': 0x23,
|
||||
'e': 0x24,
|
||||
'f': 0x25,
|
||||
'g': 0x26,
|
||||
'h': 0x27,
|
||||
'i': 0x28,
|
||||
'j': 0x29,
|
||||
'k': 0x2a,
|
||||
'l': 0x2b,
|
||||
'm': 0x2c,
|
||||
'n': 0x30,
|
||||
'o': 0x31,
|
||||
'p': 0x32,
|
||||
'q': 0x33,
|
||||
'r': 0x34,
|
||||
's': 0x35,
|
||||
't': 0x36,
|
||||
'u': 0x37,
|
||||
'v': 0x38,
|
||||
'w': 0x39,
|
||||
'x': 0x3a,
|
||||
'y': 0x3b,
|
||||
'z': 0x3c,
|
||||
'0': 0x40,
|
||||
'1': 0x41,
|
||||
'2': 0x42,
|
||||
'3': 0x43,
|
||||
'4': 0x44,
|
||||
'5': 0x45,
|
||||
'6': 0x46,
|
||||
'7': 0x47,
|
||||
'8': 0x48,
|
||||
'9': 0x49,
|
||||
'.': 0x4a,
|
||||
'-': 0x4b,
|
||||
'"': 0x4c,
|
||||
},
|
||||
CaseInsensitive: true,
|
||||
}
|
||||
BIN
assets/sprite.xcf
Normal file
BIN
assets/sprite.xcf
Normal file
Binary file not shown.
BIN
assets/sprites.png
Normal file
BIN
assets/sprites.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue