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

setTimeout(self.move,  speed,  speed,  progress +  1, xDistance,  yDistance, self,
            callBack);
                            }  else  {

                                 callBack();
                            }
                       };
                       Cup.prototype.raiseCup  = function  () {
                            this.raisedUp  = true;
                            this.raiseIt(0, this);
                       };
                       Cup.prototype.putDownCup = function  (callBack)  {
                            this.raisedUp  = false;
                            this.putIt(0, this, function  ()  {
                                 callBack();
                            });
                       };
                       return Cup;

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




            Shellgame  -  Main.js  (메인  제어소스)


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

                        this.constants  =  new  ShellGame.Constants();
                       var  game  = new ShellGame.Game();
                       game.play();
                       var  textBoxIsValid = false;
                       var  gamestate  =  0;
                       $("#infoMenuTable").hide();
                       $("#betMenuDiv").hide();
                       $("#gameCanvas").hide();
                       $("#selectCupMenuDiv").hide();
                       $("#successMenuDiv").hide();
                       $("#failedMenuDiv").hide();
                       $("#loseMenuDiv").hide();



                                                         -  436  -
   438   439   440   441   442   443   444   445   446   447   448