Tetris, in go, why not.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
377 B

package lib
import "github.com/hajimehoshi/ebiten/v2"
// Implements ebiten.Game
type TetrisGame struct {
}
func NewGame() (*TetrisGame, error) {
return &TetrisGame{}, nil
}
func (g *TetrisGame) Layout(outsideWidth, outsideHeight int) (int, int) {
return 640, 480
}
func (g *TetrisGame) Update() error {
return nil
}
func (g *TetrisGame) Draw(screen *ebiten.Image) {
}