Jump to content

Upload game


kvazmatik
 Share

Recommended Posts

I'm trying now upload my first game on kongregate but without succes. What I get is blank screen with error textures.

I guess it's server problem. So I googled but without anything usefull ? 

error.jpg

Link to comment
Share on other sites

I haven't uploaded to kongregate but probably path problems  (absolute or relative). developer tools should show what path they are looking for 

 this.game.load.image('example', 'assets/example.png');
 or 
 this.game.load.image('example', '/assets/example.png');

Link to comment
Share on other sites

11 hours ago, mattferndale said:

I haven't uploaded to kongregate but probably path problems  (absolute or relative)...

Thank you mattferndale, I removed slash symbol and now it's showing textures. Hurray!

Unfortunately game input become active only when I click on very tiny spot in TOP-LEFT corner but that's most likely kongregate's fault.

Link to comment
Share on other sites

Ok so with input problem. I uploaded game also on NewGrounds. Clicking on game does not turn it interactive. I found that maybe iframe is blocking game canvas.

Am I missing some metadata in header ? Anyone got running game on these sites?

error1.png

Link to comment
Share on other sites

Tried 3.7.1 and using 3.6. but that's not the issue.

I mean when you load webpage with game. Game is running but it's not interactive so you have to click on it. What I found, is I have to click on iFrame which is overlaped with game canvas. Only small area are not blocked by canvas (white lines, see picture).

error2.png

Link to comment
Share on other sites

I figured out this problem by adding css code into header section. Css z-index property did the job.

<style>
  body {
   margin: 0px;
  }

  canvas {
   position: relative;
   z-index: -5;
  }
</style>

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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