hello world example

This commit is contained in:
Jill 2022-09-19 23:44:48 +03:00
parent 4d2fb10f5f
commit a5eedadb90
1 changed files with 11 additions and 0 deletions

View File

@ -99,6 +99,7 @@ Uranium Template originally formed during the creation of a currently unreleased
- [`noautplay`](#noautplay)
- [`uwuify`](#uwuify)
- [Examples](#examples)
- [The obligatory](#the-obligatory)
- [Default Uranium Template code](#default-uranium-template-code)
- [Simple platformer base](#simple-platformer-base)
- [AFTs](#afts)
@ -748,6 +749,16 @@ _A very important library I don't see enough game engines include in their stand
Here are a couple of examples. All of these are standalone `main.lua` files that you can plug in and view the results of!
### The obligatory
```lua
local text = BitmapText('common', 'Hello, world!')
text:xy(scx, scy)
function uranium.update()
text:Draw()
end
```
### Default Uranium Template code
```lua
require('stdlib.color')