Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / SetClearColour and SetColourSprite not functioning Correctly in HTML5 Export

Author
Message
Muckypaws
AGK Developer
13
Years of Service
User Offline
Joined: 21st Oct 2011
Location:
Posted: 31st May 2016 00:10
Hello,

I've managed to make Manic Miner run under HTML5 and this latest update to AppGameKit is very impressive Paul

However, I couldn't work out why the colours were not being displayed correctly on screen.

It seems that the SetSpriteColour and SetClearColour are not functioning as designed in AppGameKit on HTML5 (work fine on iOS, Windows, OSX and Android).

to test this theory, i created the a simple test program, and added to the media folder a 2 pixel by 2 pixel png file with the pixels coloured in white (255,255,255) (i've attached the project)

The program creates a Magenta Background and Renders a Green rectangle on the screen (garish colours I know).

When executed it runs, but results vary by browser

1) Safari - Neither the Clear colour or the Sprite Colour are rendered correctly and are both black.
2) Firefox - Renders Black Background but Green Sprite
3) Edge Browser - Black Background - Green Sprite
4) Internet Explorer 11 - Nothing Happens

I don't do Chrome...

If anyone want to try it though, a link is here http://www.wonkypix.com/HTML5Test/TestHTML5.html

If you want to see how this behaves on Manic Miner in a browser you can access it here http://wonkypix.com/ManicMiner/ManicMiner.html

Kind Regards
Jason

[href]https://www.facebook.com/WonkyPix
http://www.wonkypix.com
http://www.appstore.com/jsecconsultancyltd[/href]

Login to post a reply

Server time is: 2024-11-25 05:47:29
Your offset time is: 2024-11-25 05:47:29