1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 19:47:46 +00:00

Snake: Convert the game window to GML

Unfortunately, GML widget registration requires a non-fallible construct
method to create the widget. So this does a bit of manual error checking
when loading the food bitmaps.
This commit is contained in:
Timothy Flynn 2022-12-20 08:34:18 -05:00 committed by Andreas Kling
parent ae90f490bd
commit cb66c02bc4
5 changed files with 79 additions and 44 deletions

View file

@ -0,0 +1,9 @@
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {}
fill_with_background_color: true
@Snake::Game {
name: "game"
fill_with_background_color: true
}
}