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

enumerable:  true,
                            configurable: true
                       });

                       Object.defineProperty(Game.prototype,  "CanRaiseCups",  {
                            get:  function()  {
                                 return  this.canRaiseCups;
                            },
                            enumerable:  true,
                            configurable: true
                       });


                       Game.prototype.play  =  function()  {


                            var constants =  new  ShellGame.Constants();
                            $("button.confirm").on("click",  function(){
                               setlevel = 20;
                               console.log(setlevel);

                            });
                            $("button.cancel").on("click", function(){
                               setlevel = 18;
                               console.log("success");
                            });
                            console.log('start');
                            this.canRaiseCups =  false;
                            this.bet  =  0;
                            this.level  =  setlevel;


                            this.cashInBank =  10;


                            this.stage  =  new  Kinetic.Stage({
                                 container:  "gameCanvas",
                                 width:  constants.CANVAS_WIDTH,
                                 height: constants.CANVAS_HEIGHT
                            });



                            this.layer  =  new  Kinetic.Layer();


                            var cup1  =  new  ShellGame.Cup(0  /* Left  */  , false,  constants.CUP_IMAGE_URL,  this);
                            var cup2  =  new  ShellGame.Cup(1  /* Middle  */  , true,  constants.CUP_IMAGE_URL,
            this);



                                                         -  443  -
   445   446   447   448   449   450   451   452   453   454   455