mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
The food bitmaps would sometimes be placed underneath the score text, which was a bit hard to see. Use a statusbar like we do in other games like Solitaire. Note the default height change of the Snake window is to make the inner game widget fit exactly 20x20 cells.
15 lines
261 B
Plaintext
15 lines
261 B
Plaintext
@GUI::Widget {
|
|
layout: @GUI::VerticalBoxLayout {}
|
|
fill_with_background_color: true
|
|
|
|
@Snake::Game {
|
|
name: "game"
|
|
fill_with_background_color: true
|
|
}
|
|
|
|
@GUI::Statusbar {
|
|
name: "statusbar"
|
|
segment_count: 2
|
|
}
|
|
}
|