Creating your first Nibble App
The Shell
When you first run Nibble, this is what you will see:
This is the shell, it can be used to run apps.
For example, you can use the ls
app to list the contents of a folder:
Or the record
app to record your screen:
Creating an app
There is an app called new
which can be used to create apps, you just have to
tell it what is the name of the app you wish to create:
Coding your app
Each app needs a function called draw()
so it can paint anything to the
screen.
To create this function in our new game we use the app code
:
ESC
can be used to bring up the menu, and S/D keyboard keys are mapped to the
black and white shoulder buttons and can be used to either exit the menu or
quit the app while in the menu.
To run our app, we just need to type its name: