1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

Snake: Move GUI into Snake namespace and rename SnakeGame to Game

The former is required for GML, and the latter is to avoid the verbosity
and redundancy of Snake::SnakeGame (and matches most other games in the
system).
This commit is contained in:
Timothy Flynn 2022-12-20 07:24:15 -05:00 committed by Andreas Kling
parent 36042fc1d6
commit ae90f490bd
4 changed files with 35 additions and 27 deletions

View file

@ -4,7 +4,7 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "SnakeGame.h"
#include "Game.h"
#include <AK/URL.h>
#include <LibConfig/Client.h>
#include <LibCore/System.h>
@ -46,7 +46,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_title("Snake");
window->resize(324, 344);
auto game = TRY(SnakeGame::create());
auto game = TRY(Snake::Game::create());
window->set_main_widget(game);
auto game_menu = TRY(window->try_add_menu("&Game"));