merak Posted May 19, 2019 Share Posted May 19, 2019 Hey I was working on this tutorial on the net, https://gamemechanicexplorer.com/#raycasting-1 When I try to open my index.html game objects are not visible and when I F5 It turns like green-dark boxes . My asset file and phaser.js version is proper, what do you think it causes from? Thank you. Link to comment Share on other sites More sharing options...
Kishore Posted May 20, 2019 Share Posted May 20, 2019 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 More sharing options...
merak Posted May 20, 2019 Author Share Posted May 20, 2019 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 More sharing options...
merak Posted May 20, 2019 Author Share Posted May 20, 2019 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 More sharing options...
merak Posted May 26, 2019 Author Share Posted May 26, 2019 still help required Link to comment Share on other sites More sharing options...
Recommended Posts