finch-application

module
v0.0.0-...-6b0c7b4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2025 License: Apache-2.0

README

finch-application

package main

import (
	"image/color"

	finch "github.com/adm87/finch-application/application"
	"github.com/adm87/finch-application/config"
)

func main() {
	game := finch.NewApplicationWithConfig(
		&finch.ApplicationConfig{
			Metadata: &config.Metadata{
				Name:      "Finch Game",
				Root:      ".",
				TargetFps: 60,
			},
			Window: &config.Window{
				Title:           "Finch",
				Width:           800,
				Height:          600,
				ClearColor:      color.RGBA{R: 100, G: 149, B: 237, A: 255},
				ClearBackground: true,
			},
		},
	)

	cmd := finch.NewApplicationCommand("finch-game", game)

	if err := cmd.Execute(); err != nil {
		panic(err)
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL