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
// Project: TestHTML5
// Created: 2016-05-30
// set window properties
SetWindowTitle( "TestHTML5" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
SetClearColor(255,0,255)
testColourSprite = CreateSprite(LoadImage("2by2White.png"))
SetSpriteSize(testColourSprite,512,368)
SetSpritePosition(testColourSprite, 512,384)
SetSpriteColor(testColourSprite,0,255,0,255)
do
Print( ScreenFPS() )
Sync()
loop
[href]https://www.facebook.com/WonkyPix
http://www.wonkypix.com
http://www.appstore.com/jsecconsultancyltd[/href]