First HTML5 Pyro for Monkey2 demo EVER!

Monkey Archive Forums/Digital Discussion/First HTML5 Pyro for Monkey2 demo EVER!

Playniax(Posted 2016) [#1]
I finally got Pyro for Monkey2 to compile for the web! Exciting times! ( use mouse to drag the ball )

Pyro and Monkey2 still very young so I expect problems so please let me know if/how it runs ( or not ).

And a big thank you to Mark for his awesome work!

Difference(Posted 2016) [#2]

However I get this (flickering) on Mac Mini El Capitain, in Chrome and Safari :

GC-Martijn(Posted 2016) [#3]
At this Imac , chrome its running oke

Playniax(Posted 2016) [#4]
Thanks guys, much appreciated!

Here is another for testing:

I guess I should post some Monkey2 ONLY demos to see if it is a Pyro thing or Monkey2 thing!

hub(Posted 2016) [#5]
No problem here with chrome (Version 52.0.2743.116) and win7

Difference(Posted 2016) [#6]
Jungle demo start and credit screen works perfectly.
The game works, but has the yellow flicker/random noise on top.

Playniax(Posted 2016) [#7]
Thanks for the feeback!

For everbody who is interested in the Pyro source codes...

spiral demo:
jungle demo:

Playniax(Posted 2016) [#8]
One of the things I wanted for 'Pyro for Monkey X' and 'Pyro for Monkey2' GUI objects is the ability set the handles to whatever you want and also to be able to rotate/scale them.

The result I think is pretty cool:

Just click on the menu tab / menu and see what happens.

I did not upgrade my latest Monkey2 to compile so some of the previous problems could occur. Since Monkey2 is not supporting touch yet it is best to test it on desktop.

Difference(Posted 2016) [#9]
Cool :-)
rpd demo works without hiccups on Mac Mini, El Capitain, in Chrome and Safari.

Playniax(Posted 2016) [#10]
So now I got the Pyro splitscreen feature working in a demo I ported from Ignition X!

This is how you set up a splitscreen in Pyro for Monkey2:
scene=New Scene()
camera[0]=New Camera( scene,window )
camera[0].ClearColor=New Color( .25,0,0,1 )

camera[1]=New Camera( scene,window )
camera[1].ClearColor=New Color( .25,0,0,1 )

SetHorizontalSplitScreen( camera[0],camera[1],New Vec2i( 1024,768 ) )

I think these demos sum up a pretty good stress test for HTML5. Before I was testing them only for desktop and they all seem to compile flawlessly. There are still some hiccups as seen before but so far I am happy how the demos work!

To control the 2 spaceships use cursor keys to control the red ship and M to fire, use the keys Z X C to control the blue ship and V to fire.

mjcamerer(Posted 2016) [#11]
If I press the Space key, I get "Exception thrown, see JavaScript console"

Playniax(Posted 2016) [#12]
Ah, my bad. I left a test key ( space ) in! Will change this!

Playniax(Posted 2016) [#13]
Tiled loaded isometrics test:

You can scroll using the cursor keys!

You can let me know how and if it works:)

AdamStrange(Posted 2016) [#14]
Mac mini (2011) no issues in safari (el capitan) runs smooth as silk!

Playniax(Posted 2016) [#15]
Adam thanks for testing! I need to upload a new preview soon because mark added lights!

Playniax(Posted 2016) [#16]
Ok, I recompiled Spiral: with the latest Monkey2!

Maybe this solves previous problems... Please, let me know!

Use mouse to drag the ball!

Difference(Posted 2016) [#17]
Yes, working perfectly now without visual glitches. :-)

Playniax(Posted 2016) [#18]

Playniax(Posted 2016) [#19]
I recompiled the other demos with the latest version of Monkey2 as well so please be my guest and test them. Hopefully like the Spiral demo they run without problems now...

Difference(Posted 2016) [#20]
Confirmed working ( system specs above)

They seem to run on my Android tablet and phone too, but there is seems there is no input/touch support yet?

Playniax(Posted 2016) [#21]
Thanks for the feedback mate! That is due to Monkey2 not supporting touch yet.