File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tests/js-tests/src/IntervalTest Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ var IntervalLayer = cc.LayerGradient.extend({
57
57
sun . setLife ( 0.6 ) ;
58
58
this . addChild ( sun ) ;
59
59
60
- // timers
61
- this . label0 = new cc . LabelTTF ( "0" , "Arial ", 24 ) ;
62
- this . label1 = new cc . LabelTTF ( "0" , "Arial ", 24 ) ;
63
- this . label2 = new cc . LabelTTF ( "0" , "Arial ", 24 ) ;
64
- this . label3 = new cc . LabelTTF ( "0" , "Arial ", 24 ) ;
65
- this . label4 = new cc . LabelTTF ( "0" , "Arial ", 24 ) ;
60
+ // timers, font "fonts/bitmapFontTest4.fnt"
61
+ this . label0 = cc . Label . createWithBMFont ( "fonts/bitmapFontTest4.fnt ", 24 ) ;
62
+ this . label1 = cc . Label . createWithBMFont ( "fonts/bitmapFontTest4.fnt ", 24 ) ;
63
+ this . label2 = cc . Label . createWithBMFont ( "fonts/bitmapFontTest4.fnt ", 24 ) ;
64
+ this . label3 = cc . Label . createWithBMFont ( "fonts/bitmapFontTest4.fnt ", 24 ) ;
65
+ this . label4 = cc . Label . createWithBMFont ( "fonts/bitmapFontTest4.fnt ", 24 ) ;
66
66
67
67
this . scheduleUpdate ( ) ;
68
68
this . schedule ( this . step1 ) ;
You can’t perform that action at this time.
0 commit comments