2023-01-02 07:58:11 +03:00
|
|
|
package main
|
|
|
|
|
2023-01-08 12:50:21 +03:00
|
|
|
import "cart/w4"
|
2023-01-02 07:58:11 +03:00
|
|
|
|
|
|
|
var frame uint64 = 0
|
2023-01-08 12:50:21 +03:00
|
|
|
var stateUpdate func()
|
2023-01-02 07:58:11 +03:00
|
|
|
|
|
|
|
//go:export start
|
|
|
|
func start() {
|
2023-01-08 12:50:21 +03:00
|
|
|
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
|
2023-01-06 01:20:47 +03:00
|
|
|
|
2023-01-08 12:50:21 +03:00
|
|
|
menuStart()
|
2023-01-02 07:58:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
//go:export update
|
|
|
|
func update() {
|
2023-01-08 12:50:21 +03:00
|
|
|
frame++
|
|
|
|
stateUpdate()
|
2023-01-02 07:58:11 +03:00
|
|
|
}
|