SlideShare a Scribd company logo
1 of 36
Download to read offline
JavaScript                                            	
  Vol.2	
 (2011/8/23)	




                •                                                                      	
  
                •                                                                                     	
  
                •                                         SG SP                                	
  
                •                                               	



         Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                 1/35
TwiQer:	
  @shibukawa	
                                                                       •                   	
  
                                                                                  –                                             →DeNA	
  
                                                                                  –                                                                                                                 	
  
                                                                       •                                         	
  
                                                                                  –  SphinxUsers.jp                                   	
  
                                                                                           •                                                                                                     	
  
                                                                                  –      XP                                                                                	
  
                                                                                  –  Python                  (          )	
  
                                                                       •                                  	
  
                                                                                  –  IT                                                                                           	
  
                                                                                                                      (                                                                  )	
  
                                                                                  –                              Python                                                                          	
  
                                                                                       (                                                                           )	
  
                                                                                  –                                                                         	
  
                                                                                       (                                                                           )	
  
                                                                                  –                                                                  	
  
                                                                                       (                                                     )	
  
                                                                                                  :	
     web                    	
Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                                                                                        2/35
•  Android                                          iOS               ngCore               	
     Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
   3/35
•  JavaScript                                                                                                                     	
  
•                                               	
  
  –                                                                                    	
  
       •                                               Android iOS                                   	
  
       •                                                 Flash                                              HTML	
  5          	
  
  –                                                                                           	
  
       •                                                                                             /app,apk           	
  
  –                                  API                           	
  
       •  XNA                                                                 API	
  
  –                                                    API                      	
  
       •                                               iOS/Android                                                                       	
  
       Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                      4/35
•  JavaScript                                                                                                                     	
  
•                                               	
  
  –                                                                                    	
  
       •                                               Android iOS                                   	
  
       •                                                 Flash                                              HTML	
  5          	
  
  –                                                                                           	
  
       •                                                                                             /app,apk           	
  
  –                                  API                           	
  
       •  XNA                                                                 API	
  
  –                                                    API                      	
  
       •                                               iOS/Android                                                                       	
  
       Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                      5/35
•  JavaScript                                                                                                                              	
  
•                                                	
  
   –                                                                                    	
  
        •                                               Android iOS                                           	
  
        •                                                 Flash                                                      HTML	
  5          	
  
   –                                                                                           	
  
        •                                                                                                 /app,apk               	
  
   –                                  API                           	
  
        •  XNA                                                                 API	
  
 •  JavaScript                                                                                    	
  
 •  –                                                   API                      	
                                                               	
  
 •      •                                               iOS/Android                                      	
                                          	
  
        Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                                 6/35
Build	
  
                                                                    Server	
  
                                                                   (node.js)	



                                                                     Baked	
  
                                                                     game	



                                                                                      By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                      By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                      By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                      By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                      By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                            7/35
•                          	
  
                                                                           	
  	
  	
                    	
  
                                                                    •       Or	
          	




                                                                     Build	
  
                                                                    Server	
  
                                                                   (node.js)	



                                                                     Baked	
  
                                                                     game	



                                                                                                      By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                                      By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                                      By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                                      By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                                      By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                            8/35
•                                               1   js                                 	
  
                                  •                             /2                                        	
  
                                  •                               (manifest)               	
  
                                  •                           minify    (                         )	
  
                                  •      150kb                       zip     (                                   )	
  
                                                                                                             etc	


                                                                     Build	
  
                                                                    Server	
  
                                                                   (node.js)	



                                                                     Baked	
  
                                                                     game	



                                                                                                                                By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                                                                By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                                                                By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                                                                By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                                                                By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                                                      9/35
•                 	
  
                                                                    •                 	




                                                                     Build	
  
                                                                    Server	
  
                                                                   (node.js)	



                                                                     Baked	
  
                                                                     game	



                                                                                             By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                             By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                             By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                             By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                             By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                 10/35
mobage	
  
                                                                    Dev	
  site	
  



                                                                     Baked	
  
                                                                     game	



                                                                                      By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                      By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                      By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                      By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                      By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                          11/35
•      Bake                                 	
  
                                               •                                      	




                                                                    mobage	
  
                                                                    Dev	
  site	
  



                                                                     Baked	
  
                                                                     game	



                                                                                                  By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                                  By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                                  By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                                  By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                                  By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                      12/35
•    mobage                                 	
  
                                                                                      •                                    	
  
                                                                                      •             	
                                                                    mobage	
  
                                                                    Dev	
  site	
  



                                                                     Baked	
  
                                                                     game	



                                                                                                         By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                                         By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                                         By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                                         By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                                         By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                             13/35
mobage	
  
                                                                    Dev	
  site	
  



                                                                     Baked	
  
                                                                     game	



                                                                                      By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                      By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                      By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                      By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                      By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                          14/35
•      Bake                                   	
  
                                               •      iAP                                           	
  
                                               •      APP                        	
  
                                                      →                     appstore    	



                                                                    mobage	
  
                                                                    Dev	
  site	
  



                                                                     Baked	
  
                                                                     game	



                                                                                                           By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                                           By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                                           By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                                           By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                                           By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                               15/35
•      Appstore                    	
  
                                                                               •                 	




                                                                    mobage	
  
                                                                    Dev	
  site	
  



                                                                     Baked	
  
                                                                     game	



                                                                                                      By	
  nyuhuhuu	
  under	
  CC-­‐BY	
                                                                                                      By	
  the_toe_stubber	
  under	
  CC-­‐BY	
                                                                                                      By	
  m	
  geers	
  under	
  CC-­‐BY-­‐SA	
                                                                                                      By	
  superstrikertwo	
  under	
  CC-­‐BY-­‐SA	
                                                                                                      By	
  osde8info	
  under	
  CC-­‐BY-­‐SA	

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                          16/35
•                                                        	
  
     –                                                                                  API	
  
     –  2D                                                                                                      →       3D 	
  
     –                                                                                            	
  
•                                          	
  
     –  BGM/SE	
  
•  UI	
  
     –                                                                                                              WebView	
  etc	
  
•                                                 	
  
     –  XHR                                                                                              	
  
            Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                          17/35
•                                       	
  
     –  Box2D                                         	
  
•                                                                    	
  
     –                                                       Key/Value                                 	
  
•                                                     	
  
     –                                                                                          	
  
     –  Observer                                                       	
  
     –  MD5/SHA                                                               	
  
•                                	
  
     –                                                                                                  	
  
          Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                  18/35
•          	
  
•                                          /                                       	
  
•                              	
  
•                                              	
  
•                                              	




     Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
   19/35
var GL2 = require(“./NGCore/Client/GL2”).GL2;
var Core = require(“./NGCore/Client/Core”).Core;

var MainLoop = Core.MessageListener.subclass({
    initialize: function() {
        this.image = mychar = new GL2.Sprite();
        this.image.setImage(“Content/myimage.png”);
        this.setPosition(100, 100);
        this.x = 100;
    },
    onUpdate: function() {
        this.x += 3;
        this.setPosition(this.x, 100);
    }
});

function main() {
     var loop = new MainLoop();
     Core.UpdateEmitter(loop, loop.onUpdate);
}



        Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
   20/35
var GL2 = require(“./NGCore/Client/GL2”).GL2;                                                 •    CommonJS       	
  
var Core = require(“./NGCore/Client/Core”).Core;                                                         	
  
                                                                                              •                          	
  
                                                                                                       	
  
var MainLoop = Core.MessageListener.subclass({
    initialize: function() {
        this.image = mychar = new GL2.Sprite();
        this.image.setImage(“Content/myimage.png”);
        this.setPosition(100, 100);
        this.x = 100;
    },
    onUpdate: function() {
        this.x += 3;
        this.setPosition(this.x, 100);
    }
});

function main() {
     var loop = new MainLoop();
     Core.UpdateEmitter(loop, loop.onUpdate);
}



        Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                     21/35
var GL2 = require(“./NGCore/Client/GL2”).GL2;
var Core = require(“./NGCore/Client/Core”).Core;

var MainLoop = Core.MessageListener.subclass({                                                •                     	
  
    initialize: function() {                                                                               	
  
                                                                                                   	
  
        this.image = mychar = new GL2.Sprite();
                                                                                              •              	
  
        this.image.setImage(“Content/myimage.png”);
        this.setPosition(100, 100);
        this.x = 100;
    },
    onUpdate: function() {
        this.x += 3;
        this.setPosition(this.x, 100);
    }
});

function main() {
     var loop = new MainLoop();
     Core.UpdateEmitter(loop, loop.onUpdate);
}



        Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
               22/35
var GL2 = require(“./NGCore/Client/GL2”).GL2;
var Core = require(“./NGCore/Client/Core”).Core;

var MainLoop = Core.MessageListener.subclass({
    initialize: function() {
        this.image = mychar = new GL2.Sprite();
        this.image.setImage(“Content/myimage.png”);
        this.setPosition(100, 100);
        this.x = 100;
    },
    onUpdate: function() {
        this.x += 3;
        this.setPosition(this.x, 100);
    }
});

function main() {                                                                             •    main           	
  
     var loop = new MainLoop();                                                               •           UpdateEmiQer	
  
     Core.UpdateEmitter(loop, loop.onUpdate);                                                                                	
  
}



        Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                            23/35
var GL2 = require(“./NGCore/Client/GL2”).GL2;
var Core = require(“./NGCore/Client/Core”).Core;

var MainLoop = Core.MessageListener.subclass({                                                 •    inialize/destroy                        	
  
    initialize: function() {                                                                                                   	
  
        this.image = mychar = new GL2.Sprite();
        this.image.setImage(“Content/myimage.png”);
        this.setPosition(100, 100);
        this.x = 100;
    },
    onUpdate: function() {                                                                    •                                       	
  
                                                                                                    update              	
  
        this.x += 3;
        this.setPosition(this.x, 100);
    }
});

function main() {
     var loop = new MainLoop();
     Core.UpdateEmitter(loop, loop.onUpdate);
}



        Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                    24/35
 
                                                                                       	



                                               	
                                                  	
  
           (                                          )	
                             (V8/JavaScriptCore)	




Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                           25/35
new	
  GL2.Sprite();	
  
                                                                                                   i.setImage();	
  
                                                                                                   i.setPosion();	
                                                                                            	
  
                                                                                       	



                                               	
                                                  	
  
           (                                          )	
                             (V8/JavaScriptCore)	




Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                           26/35
new	
  GL2.Sprite();	
  
                                                                                                   i.setImage();	
  
                                                                                                   i.setPosion();	
                                                                                            	
  
                                                                                       	



                                               	
                                                  	
  
           (                                          )	
                             (V8/JavaScriptCore)	


                                                        “71818741285187013897431”	
Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                           27/35
new	
  GL2.Sprite();	
  
                                                                                                   i.setImage();	
  
                                                                                                   i.setPosion();	
 	
                                                                                         	
  
	
                                                                                     	



                                               	
                                                  	
  
           (                                          )	
                             (V8/JavaScriptCore)	


                                                        “71818741285187013897431”	
Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                           28/35
“71818741285187013897431”	

                                                                                      EmiQer                                        	
  
                                                                                                                        (Box2D)	




                                                                                                    onUpdate	
  {	
  
                                                                                                    	
  	
  	
  	
    	
  
                                                                                                    }	
                                                                                             	
  
                                                                                        	



                                               	
                                                   	
  
           (                                          )	
                              (V8/JavaScriptCore)	




Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                                        29/35
• 
          • 
          • 

Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
   30/35
•                                                      SDK                                      	
  
•                                                                                          	




     Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
               31/35
Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
   32/35
•                                                                                                            	
  
     –                                                                            	
  
     –  3D                            HTML5                                                           	
  
•                                                                	
  
     –  ngServer	
  
         •  JavaScript                                                                         	
  
     –  ngBuilder	
  
         •                                   	
  
     –  ngGo	
  
         •                                    	
  


         Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                        33/35
•                   (Flash/Android                                                                 emu/iOS	
  Sim)	
  
•  JavaScript                                                                               	
  
•                                  	
  
•         GUI	
  Layout                                                                                         	




      Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                         34/35
•  ngCore                                                                                                                   	
  
     –                  ngCore                                                                         1/3                                	
  
•                                             	
  
     –                                                                                          	
  
     –                                                                                                  2D           	
  
     –                                                                                                                             	
  
     –  Texture	
  Packer                                                                                9          	
  
     –  Flash                                                                                                	
  
     –                	
  
     –                     	

          Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                                        35/35
•  ngCore                                            	
  
     –                                                                                                 	
  
     –                                                                                          	
  
•                                                           	
  
     –                                     +JS                                       	
  
     – 
                                                                                                              	
  
•                                                                                                                        	



          Copyright	
  (c)	
  1999-­‐2011	
  DeNA	
  CO.,Ltd.	
  All	
  rights	
  reserved.	
                        36/35

More Related Content

More from Yoshiki Shibukawa

Chunked encoding を使った高速化の考察
Chunked encoding を使った高速化の考察Chunked encoding を使った高速化の考察
Chunked encoding を使った高速化の考察Yoshiki Shibukawa
 
Go & multi platform GUI Trials and Errors
Go & multi platform GUI Trials and ErrorsGo & multi platform GUI Trials and Errors
Go & multi platform GUI Trials and ErrorsYoshiki Shibukawa
 
FINAL FANTASY Record Keeperを支えたGolang
FINAL FANTASY Record Keeperを支えたGolangFINAL FANTASY Record Keeperを支えたGolang
FINAL FANTASY Record Keeperを支えたGolangYoshiki Shibukawa
 
東京Node学園 今できる通信高速化にトライしてみた
東京Node学園 今できる通信高速化にトライしてみた東京Node学園 今できる通信高速化にトライしてみた
東京Node学園 今できる通信高速化にトライしてみたYoshiki Shibukawa
 
Oktavia全文検索エンジン - SphinxCon JP 2014
Oktavia全文検索エンジン - SphinxCon JP 2014Oktavia全文検索エンジン - SphinxCon JP 2014
Oktavia全文検索エンジン - SphinxCon JP 2014Yoshiki Shibukawa
 
Oktavia Search Engine - pyconjp2014
Oktavia Search Engine - pyconjp2014Oktavia Search Engine - pyconjp2014
Oktavia Search Engine - pyconjp2014Yoshiki Shibukawa
 
Expert JavaScript Programming
Expert JavaScript ProgrammingExpert JavaScript Programming
Expert JavaScript ProgrammingYoshiki Shibukawa
 
ドキュメントを作りたくなってしまう魔法のツール「Sphinx」
ドキュメントを作りたくなってしまう魔法のツール「Sphinx」ドキュメントを作りたくなってしまう魔法のツール「Sphinx」
ドキュメントを作りたくなってしまう魔法のツール「Sphinx」Yoshiki Shibukawa
 
つまみぐい勉強法。その後。
つまみぐい勉強法。その後。つまみぐい勉強法。その後。
つまみぐい勉強法。その後。Yoshiki Shibukawa
 
Sphinx Tutorial at BPStudy#30
Sphinx Tutorial at BPStudy#30Sphinx Tutorial at BPStudy#30
Sphinx Tutorial at BPStudy#30Yoshiki Shibukawa
 
Who is the person whom the IT engineers should learn next to Alexander?
Who is the person whom the IT engineers should learn next to Alexander?Who is the person whom the IT engineers should learn next to Alexander?
Who is the person whom the IT engineers should learn next to Alexander?Yoshiki Shibukawa
 

More from Yoshiki Shibukawa (20)

Golang tokyo #7 qtpm
Golang tokyo #7 qtpmGolang tokyo #7 qtpm
Golang tokyo #7 qtpm
 
Chunked encoding を使った高速化の考察
Chunked encoding を使った高速化の考察Chunked encoding を使った高速化の考察
Chunked encoding を使った高速化の考察
 
Mithril
MithrilMithril
Mithril
 
Go & multi platform GUI Trials and Errors
Go & multi platform GUI Trials and ErrorsGo & multi platform GUI Trials and Errors
Go & multi platform GUI Trials and Errors
 
Excelの話
Excelの話Excelの話
Excelの話
 
FINAL FANTASY Record Keeperを支えたGolang
FINAL FANTASY Record Keeperを支えたGolangFINAL FANTASY Record Keeperを支えたGolang
FINAL FANTASY Record Keeperを支えたGolang
 
アンラーニング
アンラーニングアンラーニング
アンラーニング
 
東京Node学園 今できる通信高速化にトライしてみた
東京Node学園 今できる通信高速化にトライしてみた東京Node学園 今できる通信高速化にトライしてみた
東京Node学園 今できる通信高速化にトライしてみた
 
Oktavia全文検索エンジン - SphinxCon JP 2014
Oktavia全文検索エンジン - SphinxCon JP 2014Oktavia全文検索エンジン - SphinxCon JP 2014
Oktavia全文検索エンジン - SphinxCon JP 2014
 
Oktavia Search Engine - pyconjp2014
Oktavia Search Engine - pyconjp2014Oktavia Search Engine - pyconjp2014
Oktavia Search Engine - pyconjp2014
 
大規模JavaScript開発
大規模JavaScript開発大規模JavaScript開発
大規模JavaScript開発
 
Xpjug基調lt2011
Xpjug基調lt2011Xpjug基調lt2011
Xpjug基調lt2011
 
Expert JavaScript Programming
Expert JavaScript ProgrammingExpert JavaScript Programming
Expert JavaScript Programming
 
Pomodoro technique
Pomodoro techniquePomodoro technique
Pomodoro technique
 
ドキュメントを作りたくなってしまう魔法のツール「Sphinx」
ドキュメントを作りたくなってしまう魔法のツール「Sphinx」ドキュメントを作りたくなってしまう魔法のツール「Sphinx」
ドキュメントを作りたくなってしまう魔法のツール「Sphinx」
 
Bitbucket&mercurial
Bitbucket&mercurialBitbucket&mercurial
Bitbucket&mercurial
 
つまみぐい勉強法。その後。
つまみぐい勉強法。その後。つまみぐい勉強法。その後。
つまみぐい勉強法。その後。
 
Erlang and I and Sphinx.
Erlang and I and Sphinx.Erlang and I and Sphinx.
Erlang and I and Sphinx.
 
Sphinx Tutorial at BPStudy#30
Sphinx Tutorial at BPStudy#30Sphinx Tutorial at BPStudy#30
Sphinx Tutorial at BPStudy#30
 
Who is the person whom the IT engineers should learn next to Alexander?
Who is the person whom the IT engineers should learn next to Alexander?Who is the person whom the IT engineers should learn next to Alexander?
Who is the person whom the IT engineers should learn next to Alexander?
 

Recently uploaded

الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهMohamed Sweelam
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024Lorenzo Miniero
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxFIDO Alliance
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxFIDO Alliance
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMKumar Satyam
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTopCSSGallery
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxFIDO Alliance
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiRaviKumarDaparthi
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxMarkSteadman7
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfOverkill Security
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...FIDO Alliance
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...caitlingebhard1
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxjbellis
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxFIDO Alliance
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...SOFTTECHHUB
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfalexjohnson7307
 

Recently uploaded (20)

الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi Daparthi
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
Vector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptxVector Search @ sw2con for slideshare.pptx
Vector Search @ sw2con for slideshare.pptx
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 

JavaScriptゲーム制作勉強会

  • 1. JavaScript  Vol.2 (2011/8/23) •    •    •  SG SP   •  Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 1/35
  • 2. TwiQer:  @shibukawa •    –  →DeNA   –    •    –  SphinxUsers.jp   •    –  XP   –  Python ( )   •    –  IT   ( )   –  Python   ( )   –    ( )   –    ( )   :   web Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 2/35
  • 3. •  Android iOS ngCore Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 3/35
  • 4. •  JavaScript   •    –    •  Android iOS   •  Flash HTML  5   –    •  /app,apk   –  API   •  XNA API   –  API   •  iOS/Android   Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 4/35
  • 5. •  JavaScript   •    –    •  Android iOS   •  Flash HTML  5   –    •  /app,apk   –  API   •  XNA API   –  API   •  iOS/Android   Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 5/35
  • 6. •  JavaScript   •    –    •  Android iOS   •  Flash HTML  5   –    •  /app,apk   –  API   •  XNA API   •  JavaScript   •  –  API     •  •  iOS/Android   Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 6/35
  • 7. Build   Server   (node.js) Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 7/35
  • 8. •            •  Or   Build   Server   (node.js) Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 8/35
  • 9. •  1 js   •  /2   •  (manifest)   •  minify ( )   •  150kb zip ( )   etc Build   Server   (node.js) Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 9/35
  • 10. •    •  Build   Server   (node.js) Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 10/35
  • 11. mobage   Dev  site   Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 11/35
  • 12. •  Bake   •  mobage   Dev  site   Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 12/35
  • 13. •  mobage   •    •  mobage   Dev  site   Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 13/35
  • 14. mobage   Dev  site   Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 14/35
  • 15. •  Bake   •  iAP   •  APP   → appstore mobage   Dev  site   Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 15/35
  • 16. •  Appstore   •  mobage   Dev  site   Baked   game By  nyuhuhuu  under  CC-­‐BY By  the_toe_stubber  under  CC-­‐BY By  m  geers  under  CC-­‐BY-­‐SA By  superstrikertwo  under  CC-­‐BY-­‐SA By  osde8info  under  CC-­‐BY-­‐SA Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 16/35
  • 17. •    –  API   –  2D → 3D   –    •    –  BGM/SE   •  UI   –  WebView  etc   •    –  XHR   Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 17/35
  • 18. •    –  Box2D   •    –  Key/Value   •    –    –  Observer   –  MD5/SHA   •    –    Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 18/35
  • 19. •    •  /   •    •    •  Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 19/35
  • 20. var GL2 = require(“./NGCore/Client/GL2”).GL2; var Core = require(“./NGCore/Client/Core”).Core; var MainLoop = Core.MessageListener.subclass({ initialize: function() { this.image = mychar = new GL2.Sprite(); this.image.setImage(“Content/myimage.png”); this.setPosition(100, 100); this.x = 100; }, onUpdate: function() { this.x += 3; this.setPosition(this.x, 100); } }); function main() { var loop = new MainLoop(); Core.UpdateEmitter(loop, loop.onUpdate); } Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 20/35
  • 21. var GL2 = require(“./NGCore/Client/GL2”).GL2; •  CommonJS   var Core = require(“./NGCore/Client/Core”).Core;   •      var MainLoop = Core.MessageListener.subclass({ initialize: function() { this.image = mychar = new GL2.Sprite(); this.image.setImage(“Content/myimage.png”); this.setPosition(100, 100); this.x = 100; }, onUpdate: function() { this.x += 3; this.setPosition(this.x, 100); } }); function main() { var loop = new MainLoop(); Core.UpdateEmitter(loop, loop.onUpdate); } Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 21/35
  • 22. var GL2 = require(“./NGCore/Client/GL2”).GL2; var Core = require(“./NGCore/Client/Core”).Core; var MainLoop = Core.MessageListener.subclass({ •    initialize: function() {     this.image = mychar = new GL2.Sprite(); •    this.image.setImage(“Content/myimage.png”); this.setPosition(100, 100); this.x = 100; }, onUpdate: function() { this.x += 3; this.setPosition(this.x, 100); } }); function main() { var loop = new MainLoop(); Core.UpdateEmitter(loop, loop.onUpdate); } Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 22/35
  • 23. var GL2 = require(“./NGCore/Client/GL2”).GL2; var Core = require(“./NGCore/Client/Core”).Core; var MainLoop = Core.MessageListener.subclass({ initialize: function() { this.image = mychar = new GL2.Sprite(); this.image.setImage(“Content/myimage.png”); this.setPosition(100, 100); this.x = 100; }, onUpdate: function() { this.x += 3; this.setPosition(this.x, 100); } }); function main() { •  main   var loop = new MainLoop(); •  UpdateEmiQer   Core.UpdateEmitter(loop, loop.onUpdate);   } Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 23/35
  • 24. var GL2 = require(“./NGCore/Client/GL2”).GL2; var Core = require(“./NGCore/Client/Core”).Core; var MainLoop = Core.MessageListener.subclass({ •  inialize/destroy   initialize: function() {   this.image = mychar = new GL2.Sprite(); this.image.setImage(“Content/myimage.png”); this.setPosition(100, 100); this.x = 100; }, onUpdate: function() { •    update   this.x += 3; this.setPosition(this.x, 100); } }); function main() { var loop = new MainLoop(); Core.UpdateEmitter(loop, loop.onUpdate); } Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 24/35
  • 25.       ( ) (V8/JavaScriptCore) Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 25/35
  • 26. new  GL2.Sprite();   i.setImage();   i.setPosion();       ( ) (V8/JavaScriptCore) Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 26/35
  • 27. new  GL2.Sprite();   i.setImage();   i.setPosion();       ( ) (V8/JavaScriptCore) “71818741285187013897431” Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 27/35
  • 28. new  GL2.Sprite();   i.setImage();   i.setPosion();         ( ) (V8/JavaScriptCore) “71818741285187013897431” Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 28/35
  • 29. “71818741285187013897431” EmiQer   (Box2D) onUpdate  {             }       ( ) (V8/JavaScriptCore) Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 29/35
  • 30. •  •  •  Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 30/35
  • 31. •  SDK   •  Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 31/35
  • 32. Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 32/35
  • 33. •    –    –  3D HTML5   •    –  ngServer   •  JavaScript   –  ngBuilder   •    –  ngGo   •    Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 33/35
  • 34. •  (Flash/Android emu/iOS  Sim)   •  JavaScript   •    •  GUI  Layout Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 34/35
  • 35. •  ngCore   –  ngCore 1/3   •    –    –  2D   –    –  Texture  Packer 9   –  Flash   –    –  Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 35/35
  • 36. •  ngCore   –    –    •    –  +JS   –    •  Copyright  (c)  1999-­‐2011  DeNA  CO.,Ltd.  All  rights  reserved. 36/35