mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 05:37:34 +00:00
Games: Add GameOfLife
This patch introduces a new game based on Conway's Game of Life.
This commit is contained in:
parent
e4f61c6f28
commit
d99991e39c
18 changed files with 667 additions and 288 deletions
57
Userland/Games/GameOfLife/GameOfLife.gml
Normal file
57
Userland/Games/GameOfLife/GameOfLife.gml
Normal file
|
@ -0,0 +1,57 @@
|
|||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
}
|
||||
|
||||
@GUI::ToolbarContainer {
|
||||
|
||||
@GUI::Toolbar {
|
||||
name: "toolbar"
|
||||
|
||||
@GUI::Label {
|
||||
text: "Columns:"
|
||||
fixed_width: 60
|
||||
}
|
||||
|
||||
@GUI::SpinBox {
|
||||
name: "columns_spinbox"
|
||||
min: 10
|
||||
max: 999
|
||||
fixed_width: 40
|
||||
}
|
||||
@GUI::VerticalSeparator {
|
||||
}
|
||||
@GUI::Label {
|
||||
text: "Rows:"
|
||||
fixed_width: 40
|
||||
}
|
||||
|
||||
@GUI::SpinBox {
|
||||
name: "rows_spinbox"
|
||||
min: 10
|
||||
max: 999
|
||||
fixed_width: 40
|
||||
}
|
||||
@GUI::VerticalSeparator {
|
||||
}
|
||||
@GUI::Label {
|
||||
text: "Update Speed:"
|
||||
fixed_width: 90
|
||||
}
|
||||
@GUI::SpinBox {
|
||||
name: "interval_spinbox"
|
||||
min: 10
|
||||
max: 5000
|
||||
fixed_width: 60
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
name: "board_widget_container"
|
||||
fill_with_background_color: true
|
||||
}
|
||||
|
||||
@GUI::Statusbar {
|
||||
name: "statusbar"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue