Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
0
Members

Debug logging

A topic by Deps created Jan 26, 2016 Views: 584 Replies: 4
Viewing posts 1 to 4

Hi,

Started to play around with Superpowers today but can't get the simple example in the documentation to work. I just get a black screen. (http://docs.superpowers-html5.com/en/getting-start...)

I can however start up an game like Snow World to start, so things at least work. (But it crashes on the overworld map with an exception about ShaderUniforms.)

My question is, however, about debug logging. I can't see if it even runs my code. I can set a breakpoint and reload the game but it wont fire. And I can't see a way to use sometning like console.log to get a basic message to the console.

Did I miss something? Is there a way to log messages?

Yes, Sup.log() ^^ You can see it by pressing F12 ^^

(+1)

Works like a charm! Thanks!

Now I know that the script starts at least! ;)

Aha, good thing ^^ Good luck ^^

(+1)

And I found out that nothing was visible because the sprite gridsize was not equal to the texture size. Yay!