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

else {
                                 this.cashInBank  +=  this.bet  * 2;
                               }

                            }  else  {
                                 this.cashInBank  -=  this.bet;
                            }
                            $("#cashInBankLabel").text("$ " +  this.cashInBank);
                       };


                       Game.prototype.putBackCups  = function(finished)  {
                            for (var  i  =  0; i <  this.cupCollection.length;  i++) {
                                 this.cupCollection[i].putDownCup(finished);
                            }
                       };


                       Game.prototype.raiseAllCups  =  function()  {
                            for (var  i  =  0; i <  this.cupCollection.length;  i++) {

                                 this.cupCollection[i].raiseCup();
                            }
                       };
                       Game.prototype.increaseLevel  = function()  {
                         var data  =  '{"UID  : UID,  "Nick" : Nick, "Money" : Money}';
                         swal({
                            title:  "SUCCESS",
                            text:  "YOU  WIN!!!",
                                    timer:  2000,
                            showConfirmButton:  false
                         });
                         if(setlevel ==  18){
                            setTimeout(function()  {
                                 webiopi().digitalWrite(5,  1);
                                 console.log('1');
                                 setTimeout(function() {
                                       webiopi().digitalWrite(5, 0);

                                       console.log('2');
                                       setTimeout(function()  {
                                            webiopi().digitalWrite(5, 1);
                                            console.log('3');
                                                    },  200);
                                            },  200);



                                                         -  448  -
   450   451   452   453   454   455   456   457   458   459   460