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:
parent
ae90f490bd
commit
cb66c02bc4
5 changed files with 79 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue