1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

Hearts: Port to GML compiler

This commit is contained in:
Sanil 2024-01-09 21:12:00 +05:30 committed by Tim Schumacher
parent 27339fe6e7
commit 343d6b001f
5 changed files with 30 additions and 13 deletions

View file

@ -19,8 +19,6 @@
#include <LibGfx/Font/Font.h>
#include <LibGfx/Palette.h>
REGISTER_WIDGET(Hearts, Game);
namespace Hearts {
Game::Game()
@ -598,7 +596,7 @@ void Game::play_card(Player& player, size_t card_index)
card->set_upside_down(false);
m_trick.append(*card);
const Gfx::IntPoint trick_card_positions[] = {
Gfx::IntPoint const trick_card_positions[] = {
{ width / 2 - Card::width / 2, height / 2 - 30 },
{ width / 2 - Card::width + 15, height / 2 - Card::height / 2 - 15 },
{ width / 2 - Card::width / 2 + 15, height / 2 - Card::height + 15 },