mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
661c02b914
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.
14 lines
261 B
Text
14 lines
261 B
Text
@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
|
|
}
|
|
}
|