1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

Snake: Flesh out a basic snake game :^)

This commit is contained in:
Andreas Kling 2019-04-20 03:24:50 +02:00
parent eca9494adf
commit e24e486714
6 changed files with 196 additions and 9 deletions

View file

@ -13,13 +13,10 @@ int main(int argc, char** argv)
auto* window = new GWindow;
window->set_title("Snake");
window->set_rect(100, 100, 139, 175);
window->set_rect(100, 100, 300, 300);
auto* widget = new GWidget;
window->set_main_widget(widget);
widget->set_layout(make<GBoxLayout>(Orientation::Vertical));
auto* game = new SnakeGame(widget);
auto* game = new SnakeGame;
window->set_main_widget(game);
auto menubar = make<GMenuBar>();