textbox
This commit is contained in:
@@ -19,7 +19,7 @@ CubeEntity.prototype.update = function() {
|
||||
var move = Input.axis2D(INPUT_ACTION_LEFT, INPUT_ACTION_RIGHT, INPUT_ACTION_UP, INPUT_ACTION_DOWN);
|
||||
this.position.position.x += move.x * speed * TIME.delta;
|
||||
this.position.position.z += move.y * speed * TIME.delta;
|
||||
this.material.setColor(Color.rainbow());
|
||||
this.material.color = Color.rainbow();
|
||||
};
|
||||
|
||||
module = CubeEntity;
|
||||
|
||||
@@ -21,6 +21,14 @@ function CubeScene() {
|
||||
Cutscene.play(new MoveCubeCutscene({ cube: this.cube })).then(function() {
|
||||
scene.inputEnabled = true;
|
||||
});
|
||||
|
||||
|
||||
Textbox.setText(
|
||||
"Hello! This is a visual novel textbox. It automatically " +
|
||||
"wraps long lines and splits into pages when the content " +
|
||||
"is too tall to fit. Press advance to continue...\t" +
|
||||
"This is a second paragraph on a new page."
|
||||
);
|
||||
}
|
||||
|
||||
CubeScene.prototype = Object.create(Scene.prototype);
|
||||
|
||||
Reference in New Issue
Block a user