newyearkrendelki/main.go

24 lines
303 B
Go
Raw Normal View History

2023-01-02 07:58:11 +03:00
package main
import "cart/w4"
2023-01-02 07:58:11 +03:00
var frame uint64 = 0
var stateUpdate func()
2023-01-02 07:58:11 +03:00
//go:export start
func start() {
frame = 0
2023-01-02 07:58:11 +03:00
w4.PALETTE[0] = 0xfcdeea
w4.PALETTE[1] = 0x012824
w4.PALETTE[2] = 0x265935
w4.PALETTE[3] = 0xff4d6d
menuStart()
2023-01-02 07:58:11 +03:00
}
//go:export update
func update() {
frame++
stateUpdate()
2023-01-02 07:58:11 +03:00
}