diff --git a/README.md b/README.md index b20b9ecadc8691d6e773097ee2eea799c7587b26..e197ac7a331e8ce6dbd14a05a204e957c25b9787 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ -**Bidi** is a tiny framework/fantasy console for developing small video games for -learning and recreation. It takes heavy inspiration from -[LÖVE](https://www.love2d.org/), [Pico8](https://www.lexaloffle.com/pico-8.php) -and [Atari 2600](https://en.wikipedia.org/wiki/Atari_2600). +**Bidi** is a lightweight framework and fantasy console designed for creating +tiny video games, perfect for learning and having fun. It takes heavy +inspiration from [LÖVE](https://www.love2d.org/), +[Pico8](https://www.lexaloffle.com/pico-8.php) and [Atari +2600](https://en.wikipedia.org/wiki/Atari_2600). You develop your games in Lua and you are only allowed to have one Lua file where all your code lives. You can then load external assets like images and @@ -91,6 +92,8 @@ | `button.A` | `L` | N/A | N/A | N/A | | `button.B` | `P` | N/A | N/A | N/A | | `button.X` | `K` | N/A | N/A | N/A | | `button.Y` | `O` | N/A | N/A | N/A | +| `button.SELECT` | `Q` | N/A | N/A | N/A | +| `button.START` | `E` | N/A | N/A | N/A | ### Default colors diff --git a/stdlib/button.lua b/stdlib/button.lua index 7a656e02dbffb0de8067a449ef6d8d0c1628d90e..e8b63181a4beb122cd6f31ae94c8b2fd83513807 100644 --- a/stdlib/button.lua +++ b/stdlib/button.lua @@ -10,4 +10,7 @@ button.B = 80 -- Key: P button.X = 75 -- Key: K button.Y = 79 -- Key: O +button.SELECT = 81 -- Key: Q +button.START = 69 -- Key: E + return button diff --git a/tests/test.lua b/tests/test.lua index 644b54b00df0694b272657ac14e69d92e740169a..f85b644ee095b1909f03d70dd1d6ca4a6b8bea66 100644 --- a/tests/test.lua +++ b/tests/test.lua @@ -63,6 +63,14 @@ if button_down(button.PAD_RIGHT) then draw_text("Pad Right", 10, 100, 20, color.VIOLET) end + if button_down(button.SELECT) then + draw_text("Select", 10, 130, 20, color.VIOLET) + end + + if button_down(button.START) then + draw_text("Start", 10, 160, 20, color.VIOLET) + end + if button_down(button.A) then draw_text("A", 150, 10, 20, color.VIOLET) end