beuleal Posted July 2, 2014 Share Posted July 2, 2014 hi guys, im here again... i would like to know how to put my game inside of my div and how to destroy my game. To destroy, im using jquery but im no satisfied :/ index.html<!doctype html><html> <head> <meta charset="UTF-8" /> <title>Game!</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <link rel="stylesheet" href="css/style.css"> <link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'> </head> <body> <div id="mainMenu"> <h1 class="gameTitle">Game!</h1> <div id="gameMenu"> <ul> <li><a href="#" id="menu1" onclick="loadGame('normal');">Normal</a></li> <li><a href="#" id="menu2" onclick="loadGame('time_attack')">Time Attack!!!</a></li> <li><a href="#" id="menu3" onclick="showInstMenu();">Instruções</a></li> </ul> </div> <div id="game"></div> </div> <div id="instMenu" style="display: none;"> <h1 class="gameTitle">Instructions</h1> </div> <div id="sound" onclick="soundControl();"><img src="images/soundOn.png"></div> <script src="phaser.js"></script> <script src="game.js"></script> </body></html> Link to comment Share on other sites More sharing options...
beuleal Posted July 2, 2014 Author Share Posted July 2, 2014 I found my answer for my 1st question :S http://stackoverflow.com/questions/20526933/html-moving-phaser-into-container-div Link to comment Share on other sites More sharing options...
Recommended Posts