26 lines
812 B
Markdown
26 lines
812 B
Markdown
## Levels:
|
|
|
|
- use first line as background image name
|
|
- ignore comments in lvl files
|
|
- check when sphere bounces from one end to the other endlessly w/o
|
|
any solids in between. this is a game lock and equals game over
|
|
- Start the game end timer and add a score FIXME: put the actual max
|
|
reachable score into the level definition along with the minimum
|
|
steps required to reach it, also add a step counter
|
|
|
|
- Grid Observer:
|
|
https://github.com/mlange-42/arche/issues/374
|
|
|
|
|
|
Screenshot:
|
|
|
|
Yes, since *ebiten.Image implements the standard image.Image interface
|
|
I just made a screenshot example (in Draw() function):
|
|
if inpututil.IsKeyJustPressed(ebiten.KeyS) {
|
|
f, err := os.Create("screenshot.png")
|
|
if err != nil {
|
|
log.Fatal("can't create file: ", err)
|
|
}
|
|
png.Encode(f, screen)
|
|
}
|