Little dialogue system to test Wren programming language and Dome graphic library.
Todo :
- Autowrap
- Multiple text in dialog (to form a dialog)
- Spacebar to display all text
- Auto resize in height
- Display image in DialogBox
- Display next button at bottom of DialogBox
- User choice using button
How to use :
DialogBox work inside of Dome Engine.
class Main {
construct new() {}
init() {
_dialog = DialogBox.new(
Vector.new(50, 50),
Vector.new(200, 25),
[
DialogText.new("Player", "This is a really long text dialogue that is here to test line break in DialogBox."),
DialogText.new("Pnj", "This is the next part ..."),
DialogText.new("Player", "and this is the final part."),
],
0.05 // Speed less is faster
)
}
update() {
_dialog.update()
}
draw(dt) {
Canvas.cls()
_dialog.draw(dt)
}
}