2023-08-15 08:22:45 -04:00
|
|
|
package main
|
|
|
|
|
|
2023-10-27 09:59:01 -04:00
|
|
|
import (
|
|
|
|
|
"image"
|
|
|
|
|
|
|
|
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
|
|
|
"golang.org/x/image/font"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
screenWidth = 800
|
|
|
|
|
screenHeight = 600
|
|
|
|
|
bsofttext = `bsoft games`
|
|
|
|
|
versionInfo = `loading screen MKI`
|
|
|
|
|
sceneInfo = `scene a`
|
|
|
|
|
bobblesInfo = `bobbles`
|
|
|
|
|
enemyCount = 12
|
|
|
|
|
totalBobbles = 9
|
|
|
|
|
bubbleGridRows = 3
|
|
|
|
|
bubbleGridCols = 3
|
|
|
|
|
bubbleGridSpacing = 40
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
mplusNormalFont font.Face
|
|
|
|
|
mplusBigFont font.Face
|
|
|
|
|
mplusTinyFont font.Face
|
|
|
|
|
tileWidth float32 = 20
|
|
|
|
|
tileHeight float32 = 20
|
|
|
|
|
numTiles int = 5
|
|
|
|
|
maxPercent float64 = 100
|
|
|
|
|
whiteImage = ebiten.NewImage(3, 3)
|
|
|
|
|
whiteSubImage = whiteImage.SubImage(image.Rect(1, 1, 2, 2)).(*ebiten.Image)
|
|
|
|
|
)
|
|
|
|
|
|
2023-08-15 08:22:45 -04:00
|
|
|
func main() {
|
|
|
|
|
loading()
|
|
|
|
|
}
|