diff --git a/assets/type.fnt b/assets/type.fnt new file mode 100644 index 0000000..e936cd8 --- /dev/null +++ b/assets/type.fnt @@ -0,0 +1,228 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/type_0.png b/assets/type_0.png new file mode 100644 index 0000000..4c4e32a Binary files /dev/null and b/assets/type_0.png differ diff --git a/main/Renderer.js b/main/Renderer.js index 9fc7796..5c4d7ef 100644 --- a/main/Renderer.js +++ b/main/Renderer.js @@ -42,6 +42,12 @@ Renderer = (function() { return anim; } + Renderer.text = function(txt, x, y) { + var txt = new PIXI.extras.BitmapText(txt, {font: 'TYPE_FONT'}); + txt.position.set(x, y); + return txt; + } + Renderer.show = function(stage) { renderer.render(stage); }