mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
Minesweeper: Start working on a simple minesweeper game. :^)
This commit is contained in:
parent
c06a3bdeb4
commit
a90e218c71
17 changed files with 288 additions and 1 deletions
18
Games/Minesweeper/main.cpp
Normal file
18
Games/Minesweeper/main.cpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include "Field.h"
|
||||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = new GWindow;
|
||||
window->set_title("Minesweeper");
|
||||
window->set_rect(100, 100, 200, 300);
|
||||
auto* field = new Field(nullptr);
|
||||
window->set_main_widget(field);
|
||||
|
||||
window->show();
|
||||
|
||||
return app.exec();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue