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

if(gamestate==2){
                                               $("#rightcup").click();
                                            }

                                            break;
                                       }
                                 default:
                                       break;


                            }
                       });
                 });
            })(ShellGame  ||  (ShellGame  =  {}));
            });





            Shellgame  -  Game.js (게임구동  소스)


            var  ShellGame;
            $(document).ready(function(){
            (function(ShellGame)  {
                 var Game  =  (function()  {

                    var UID,  Nick,  Money;
                    /*$.ajax({
                       url  :  "/Userdata",
                       success  :  function(data){
                         data  =  JSON.parse(data);
                         UID = data.UID;
                         Nick  =  data.Nick;
                         Money =  data.Money;
                         dataType  :  'json'
                       }
                    });*/
                       this.constants = new ShellGame.Constants();
                       var  setlevel = 18;
                       function Game()  {}

                       Object.defineProperty(Game.prototype,  "CashInBank",  {
                            get:  function()  {
                                 return  this.cashInBank;
                            },




                                                         -  442  -
   444   445   446   447   448   449   450   451   452   453   454