mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
67ad898294
Added new Retro Font examples.
14 lines
427 B
JavaScript
14 lines
427 B
JavaScript
|
|
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create });
|
|
|
|
function preload() {
|
|
|
|
game.load.bitmapFont('shortStack', 'assets/fonts/bitmapFonts/shortStack.png', 'assets/fonts/bitmapFonts/shortStack.fnt');
|
|
|
|
}
|
|
|
|
function create() {
|
|
|
|
game.add.bitmapText(32, 32, 'shortStack', 'This font was generated using the\nfree Littera web site\n\nhttp://kvazars.com/littera/', 32);
|
|
|
|
}
|