Forum Replies Created
-
AuthorPosts
-
You are reading it wrong
It is a license for Pyro for Monkey 1 and eventually for Pyro for Monkey 2!
Pyro for Monkey 1 is a ‘finished’ and poweful framework so as a bonus you get to try and play with a preview of Pyro for Monkey 2.
No one here using Monkey 1 anymore?
I have made a 10% discount coupon code for Pyro! The coupon code is:
PYRO-6VT7-DISC
This code is valid until the end of this month and there are only 25 available!
A Pyro license will also give you access to a Pyro for Monkey2 preview!
The license will stay valid for Pyro for Monkey2!Thanks again guys!
Just uploaded another preview demo of Pyro for Monkey2 to our support area: http://support.playniax.com
You need to own a Pyro license to login. If you don’t have one, you can purchase Pyro and you will have access to the preview!
I think both Monkey2 and Pyro for Monkey2 are coming together nicely!Tiled loaded isometrics test: http://www.playniax.com/SAF/isotest/
You can scroll using the cursor keys!
You can let me know how and if it works:)
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:
Monkey12345678910scene=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.
http://www.playniax.com/SAF/gz/
okay, here it is. Would you share yours?
Monkey1234567891011121314151617181920Function PointInsideRect:Bool( x:Float,y:Float,width:Float,height:Float,pointX:Float,pointY:Float,rotation:Float,handleX:Float=.5,handleY:Float=.5 )Local c:=Cos( rotation )Local s:=Sin( rotation )Local rotatedX:=xLocal rotatedY:=yrotatedX+=c*( pointX-x )-s*( pointY-y )+handleX*widthrotatedY+=s*( pointX-x )+c*( pointY-y )+handleY*heightLocal leftX:=xLocal rightX:=x+widthLocal topY:=yLocal bottomY:=y+heightReturn leftX<=rotatedX And rotatedX<=rightX And topY<=rotatedY And rotatedY<=bottomYEndBasically, I am looping (backwards) through the list of gui objects and the first objects ‘marked’ for detection end up in a pointer en stops there so Pyro knows the one on top. Simple but seems to work so far for all situation I encountered. I might need to enhance it a bit once there are exceptions that I haven’t thought of yet
For detecting if the mouse is inside an object I use a PointInsideRect function that also takes rotation into account.
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: http://www.playniax.com/SAF/rpd/
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.
Btw, for everbody who is interested in the Pyro source codes…
spiral demo: http://www.playniax.com/SAF/spiral/spiral.monkey2
jungle demo: http://www.playniax.com/SAF/jungle/jungle.monkey2the titles on the Jungle demo show feint lines around them
Oops, forgot to turn on padding!
Nope, no sounds used at all. Will add sound later. I just needed some feedback on how it is all working.
Thanks guys, much appreciated!
Here is another for testing: http://www.playniax.com/SAF/jungle/
I guess I should post some Monkey2 ONLY demos to see if it is a Pyro thing or Monkey2 thing!
I think Danilo was doing this…
Will do, thanks!
ok, thanks. I suspected as much. Will investigate!
-
AuthorPosts