yui-examples/README.md

36 lines
986 B
Markdown
Raw Permalink Normal View History

2022-08-24 15:48:07 +02:00
Yui Examples
============
2022-08-24 12:21:46 +02:00
A collection of code examples for [yui](https://codeberg.org/1414codeforge/yui).
2022-08-24 15:48:07 +02:00
## Contents
* [Hello World](examples/helloworld.lua) - most basic of the basics.
* [Basic Menu](examples/basicmenu.lua) - a simple menu made of buttons, useful for main menus and pause menus.
* [Options Menu](examples/optionsmenu.lua) - comprehensive example, demonstrating several widgets and interactions.
2022-08-24 15:48:07 +02:00
...and the [initial selection](examples/init.lua) menu is a demo in itself :)
## Running the examples
1. Clone this repository.
2. Download **yui** and its dependencies using [crush](https://codeberg.org/1414codeforge/crush):
```sh
lua crush.lua
```
3. Start the demo menu with [LÖVE](https://love2d.org):
```sh
love .
```
2022-08-24 15:48:07 +02:00
## Acknowledgement
Some examples use [PixelDroid Menu fonts](https://github.com/pixeldroid/fonts),
see [ACKNOWLEDGEMENT](fonts/README.ACKNOWLEDGEMENT) for details.
## License
Zlib, see [LICENSE](LICENSE) for details.