Jump to content

Placement problem for game


Recommended Posts

When setting up my index.html file for my game I come across a problem where there's a huge gap of space between the top of the page and where my html5 game is loaded onto the screen. I have no idea of why this is. Another problem is, the viewing size is right but, it's like the whole game is zoomed in. Instead of showing the whole game room it's supposed to it's just zoomed in to one area of it.

<!doctype html> <html lang="en"> <head> 	<meta charset="UTF-8" />	<title>Simian Scamper</title>		<script type="text/javascript" src="js/phaser.min.js"></script>	<script type="text/javascript" src="js/Boot.js"></script>	<script type="text/javascript" src="js/Preload.js"></script>	<script type="text/javascript" src="js/MainMenu.js"></script>	<script type="text/javascript" src="js/Game.js"></script>	</head>	<body>		<body bgcolor="#000">		<!-- INCLUDE THE MAIN GAME FILE -->		<script src="js/main.js"></script>					<div id="ssMain"></div>	</body></html>

What's the issue with my code? I want it to just start at the very top and be regular sized. Just on another note so I can have one topic. How do I create functions to call during certain events? I don't know where to place the code for it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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