Updated pixi.
Maybe fixed a case from interpolation that a sprite could not be cleaned up. Need to make a better system for controlling sprites. Added binds for arrow keys to scroll multiline text. Added support for colorto tween changing tint not just alpha.
This commit is contained in:
parent
2287163a34
commit
d356f17adb
6 changed files with 110 additions and 44 deletions
|
@ -333,7 +333,11 @@ function dialogScrollDown(event) {
|
|||
}
|
||||
|
||||
function onBodyKey(event) {
|
||||
if(event.code.toLowerCase() === "space") {
|
||||
if(event.code.toLowerCase() === "arrowdown") {
|
||||
dialogScrollDown(event)
|
||||
} else if(event.code.toLowerCase() === "arrowup") {
|
||||
dialogScrollUp(event);
|
||||
} else if(event.code.toLowerCase() === "space") {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
player.onMainClick(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue