netgfx / Phaser-typewriter

A phaser helper for the typewriter effect
MIT License
39 stars 8 forks source link

forthebadge

Phaser-typewriter

A typewriter effect wrapper for Phaser.io Javascript library

Initialize the typewriter anywhere in your game

var typewriter = new Typewriter();
typewriter.init(gameInstance, options);

pass necesery options like: context (the object that launches the typewriter)

typewriter.init(gameInstance, {
    x: 290,
    y: 40,
    fontFamily: "chillerBlack",
    fontSize: 26,
    maxWidth: 300,
    sound: reg.track,
    text: "Some text to be typed!"
  });
  typewriter.start();

View example: Complete example (make sure to listen to the writing sound playing in the background ;) )


Game Instance The game instance that we want the tooltips to appear to, such as "game"

General Options:

API Functions


Buy me a coffee or tea!


The TODO list is diminising!

Please let me know if you come across some bug or have something to contribute