Page 434 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 434

설명은  간략하게  진행할  것이다.



            var  ShellGame;
            (function  (ShellGame)  {
                 var Constants  = (function ()  {
                       function Constants()  {
                       }
                       Object.defineProperty(Constants.prototype,  "CANVAS_WIDTH",  {
                            get:  function  ()  {
                                 return  $(document).width();

                            },
                            enumerable:  true,
                            configurable: true
                       });
                       Object.defineProperty(Constants.prototype,  "CANVAS_HEIGHT",  {
                            get:  function  ()  {
                                 return  this.CANVAS_WIDTH  *  this.CANVAS_RATIO;
                            },
                            enumerable:  true,
                            configurable: true
                       });
                       Object.defineProperty(Constants.prototype,  "BALL_IMAGE_URL",  {
                            get:  function  ()  {
                                 return  "img/ball.png";
                            },
                            enumerable:  true,
                            configurable: true
                       });

                       Object.defineProperty(Constants.prototype,  "CUP_IMAGE_URL",  {
                            get:  function  ()  {
                                 return  "img/cup.png";
                            },
                            enumerable:  true,
                            configurable: true
                       });
                       Object.defineProperty(Constants.prototype,  "SCALE_FACTOR",  {
                            get:  function  ()  {
                                 return  (this.CANVAS_WIDTH  / this.CANVAS_WIDTH)  *  0.3144;
                            },
                            enumerable:  true,



                                                         -  427  -
   429   430   431   432   433   434   435   436   437   438   439