Jump to content

Game object displaying problem


merak
 Share

Recommended Posts

hi merak,

please check the path of the assets.. If path/image is not correct then green boxes appear..
And can you share more info/code that how you are loading and rendering the elements...

Link to comment
Share on other sites

GameState.prototype.preload = function() {
    this.game.load.image("block", "block.png");
    this.game.load.image("person", "player.png");
    this.game.load.image("ball", "ball.png");
//part of js code


<!DOCTYPE html>
<html>
<head>
	<script type="text/javascript" src="phaser.js"></script>
	<script type="text/javascript" src="deneme.js"></script>
	
</head>
</html>

//index.html

this asset objects is on my desktop and this is my index  to call js file. (both deneme.js and phaser.js are on my desktop. In this, there are no green boxes but no images actually at all.

Lastly the original code that I mentioned ( you can check original code I didnt changed js codes) is written on phaser 2.2.2 mine is 2.6.2 but I tried both, nothing changed.
Thank you for your sincere interests.

Link to comment
Share on other sites

This asset objects is on my desktop and this is my index  to call js file. (both deneme.js and phaser.js are on my desktop. In this, there are no green boxes but no images actually at all.

Lastly the original code that I mentioned ( you can check original code I didnt changed js codes) is written on phaser 2.2.2 mine is 2.6.2 but I tried both, nothing changed.
Thank you for your sincere interests.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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