Fix: TypingExamination classify
This commit is contained in:
+633
-608
File diff suppressed because it is too large
Load Diff
@@ -9,8 +9,31 @@ var game = new Phaser.Game(
|
|||||||
this, false, false
|
this, false, false
|
||||||
);
|
);
|
||||||
|
|
||||||
|
WebFontConfig = {
|
||||||
|
// 'active' means all requested fonts have finished loading
|
||||||
|
// We set a 1 second delay before calling 'createText'.
|
||||||
|
// For some reason if we don't the browser cannot render the text the first time it's created.
|
||||||
|
active: function() { game.time.events.add(Phaser.Timer.SECOND * 0.1, fontLoaded, this); },
|
||||||
|
|
||||||
|
// The Google Fonts we want to load (specify as many as you like in the array)
|
||||||
|
google: {
|
||||||
|
families: [
|
||||||
|
'Nanum Gothic:400, 700, 800',
|
||||||
|
'Nanum Gothic Coding:400,700',
|
||||||
|
'Nanum Brush Script',
|
||||||
|
'Nanum Pen Script'
|
||||||
|
]
|
||||||
|
// families: ['Nanum Brush Script']
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var typingExamination = new TypingExamination();
|
||||||
game.state.add('Loading', Loading);
|
game.state.add('Loading', Loading);
|
||||||
game.state.start('Loading');
|
game.state.start('Loading');
|
||||||
|
|
||||||
game.state.add('TypingExamination', TypingExamination);
|
game.state.add('TypingExamination', typingExamination);
|
||||||
// game.state.add('Menu', Menu);
|
|
||||||
|
function fontLoaded() {
|
||||||
|
typingExamination.fontLoaded();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user