Jump to content

FrankyCutty

Members
  • Posts

    6
  • Joined

  • Last visited

FrankyCutty's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Oh, thanks guy, but I don´t understand the code...I only work with responsive with @media styles in css. Is it all the game?
  2. I can´t download the proyect responsive in github, and the sprites of proyect.
  3. I want a section in my website with a phaser game. You can see my portfolio here: http://www.aml2.hol.es/ If you press the gamepad icon, show a div with the game container. I try the website in movile devices, and the game started screen don´t show. How build I a responsive canvas game to all devices? My website is responsive too. In index.html I have this: <!-- game --> <div id="game" class="content_2"> <!-- .title --> <h1 class="h-bloc">Video Game Resume</h1> //here paint the game <div id="game_div"> </div> </div> <!-- End .game --> And this is my mainGame.js: window.onload = function() {var game = new Phaser.Game(700, 450, Phaser.CANVAS, 'game_div', { preload: preload, create: create });function preload() { // The second parameter is the URL of the image (relative) game.load.image('logo', 'images/game/logoCredits.png'); game.load.image('cloud', 'images/game/clouds.png');}function create() {// A more suitable underwater background color game.stage.backgroundColor = '#43B6B1'; // This creates a simple sprite that is using our loaded image and // displays it on-screen var logotipe = game.add.sprite(140, 40, 'logo'); game.add.tween(logotipe).to({ y: 140 }, 1500, Phaser.Easing.Quadratic.InOut, true, 0, 1000, true); var clouds = game.add.sprite(0, 0, 'cloud');}function update(){}}; I build the game responsive, I will ask very questions in this forum because a I´m benniger with phaser framework Sorry, my english is not very good, Thanks.
  4. I don´t use a div with my id 'phaser-game' for generate the canvas, because the error of scrollbar appears just when I write <script type="text/javascript" src="main.js"> in my index.html
  5. Hi rich, when I inspect the element appear this:
  6. Hi, I want add a game-banner to my website, I have a game width fixed height and full width responsive. I have this home banner: I want to make this(image photoshopped quickly): When I load phaser.min.js in my index.html, not any problem with this. But when I load my main.js the scrollbar disappear instantly: I load phaser.min.js and main.js just after jQuery files: The code of main.js is very simple, I want load a image sprite test: Not even I use the id 'phaser-game'. Thanks for all the help
×
×
  • Create New...