34 lines
1.1 KiB
Markdown
34 lines
1.1 KiB
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)
|
|
}
|
|
|
|
|
|
- Add some final message when the player reaches the last level, start
|
|
from scratch or a message to buy me some beer, whatever
|
|
|
|
- Calculate obstacle collision the same as solid collision with future
|
|
velocity and included snap in so that the player ends up right on
|
|
the edge of the obstacle and not inside as it is now
|