and a start screen.
not a game but an important utility. naalaa examples don't contain a standalone example for a splash screen and start menu
or screens/scenes handling.
in this file/example, I try to fix this.
about screens/scenes handling there is no game scene but I did show how to control screens with an if and boolean(the start screen).
I will create a more complex example using this code.
but it is usable as is for creating text and menu screens with a simple function and arrays.
I wanted to create a tool to do this easily. create an object array with btns and drop it into a function.
"a menu screen in one line of code" more or less.
hers the git repo with the code:
https://github.com/yoel123/naalaa-menu-screen-sample
![[Image: sam.gif]](https://raw.githubusercontent.com/yoel123/naalaa-menu-screen-sample/master/sam.gif)
the btn images are generic but can be anything for the idle and hover states. I used the blank btns as placeholders.
also, I should make tutorials for these, maybe for total noobs.
I need to test naalaa as a teaching tool for programming/ game programming. an interesting concept.
not a game but an important utility. naalaa examples don't contain a standalone example for a splash screen and start menu
or screens/scenes handling.
in this file/example, I try to fix this.
about screens/scenes handling there is no game scene but I did show how to control screens with an if and boolean(the start screen).
I will create a more complex example using this code.
but it is usable as is for creating text and menu screens with a simple function and arrays.
I wanted to create a tool to do this easily. create an object array with btns and drop it into a function.
"a menu screen in one line of code" more or less.
hers the git repo with the code:
https://github.com/yoel123/naalaa-menu-screen-sample
![[Image: sam.gif]](https://raw.githubusercontent.com/yoel123/naalaa-menu-screen-sample/master/sam.gif)
the btn images are generic but can be anything for the idle and hover states. I used the blank btns as placeholders.
also, I should make tutorials for these, maybe for total noobs.
I need to test naalaa as a teaching tool for programming/ game programming. an interesting concept.