1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:37:47 +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

@ -4,10 +4,16 @@ serenity_component(
TARGETS Snake
)
compile_gml(Snake.gml SnakeGML.h snake_gml)
set(SOURCES
Game.cpp
main.cpp
)
set(GENERATED_SOURCES
SnakeGML.h
)
serenity_app(Snake ICON app-snake)
target_link_libraries(Snake PRIVATE LibCore LibGfx LibGUI LibConfig LibMain LibDesktop)