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:
parent
ae90f490bd
commit
cb66c02bc4
5 changed files with 79 additions and 44 deletions
9
Userland/Games/Snake/Snake.gml
Normal file
9
Userland/Games/Snake/Snake.gml
Normal file
|
@ -0,0 +1,9 @@
|
|||
@GUI::Widget {
|
||||
layout: @GUI::VerticalBoxLayout {}
|
||||
fill_with_background_color: true
|
||||
|
||||
@Snake::Game {
|
||||
name: "game"
|
||||
fill_with_background_color: true
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue