Jump to content

how to put canvas inside of my div and how to destroy my game instance


beuleal
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...