About Monkey 2 › Forums › Monkey 2 Projects › FIRST HTML5 PYRO FOR MONKEY2 DEMO EVER!
This topic contains 40 replies, has 10 voices, and was last updated by
Playniax
2 years, 6 months ago.
-
AuthorPosts
-
September 7, 2016 at 1:45 pm #3744
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<=bottomYEndSeptember 7, 2016 at 1:48 pm #3745So 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/
September 9, 2016 at 8:51 am #3818Tiled 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:)
September 9, 2016 at 2:53 pm #3827Works and looks fine on Windows.
September 9, 2016 at 5:00 pm #3828Works good on Linux Mint, with Chrome as well.
September 12, 2016 at 7:51 am #3900Thanks 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!September 23, 2016 at 8:54 am #4060I 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!September 23, 2016 at 10:40 am #4061Do you seriously want people to buy a license so they can look at a demo of an unreleased product?
September 23, 2016 at 11:16 am #4062You 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?
September 23, 2016 at 12:18 pm #4063I did not read it wrong: “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!”
And no , I don’t use M1
Bought it, but decided to stick with Max for desktop applications.
September 23, 2016 at 2:03 pm #4068I am curious, do you think M2 can replace Max for you?
September 23, 2016 at 2:24 pm #4069I am curious, do you think M2 can replace Max for you?
Definitely yes. Main reason for this would be the updated core codebase being moved to 64bit.
Similar to Wiebow, I too bought M1 and immediately went back to Max for desktop.
One thing though. I really wouldn’t call the current version of Monkey2 V1 it still has a long way to go and feels much more like a 0. release.
I say this because too much is still in flux. it is not a mature product.
What I’ve seen of pyro ‘looks’ very nice, but… I wouldn’t use anything like that without a great editor to do all the front end stuff. The best solution would be to have it completely seamlessly integrated into the monkey2 editor. but you are going to need a lot of help with that.
September 23, 2016 at 3:14 pm #4070What I’ve seen of pyro ‘looks’ very nice, but… I wouldn’t use anything like that without a great editor to do all the front end stuff
Editor is beeing worked on! Pyro does support Tiled btw what was already a big help to me making stuff.
The best solution would be to have it completely seamlessly integrated into the monkey2 editor
Eventually this is the plan or maybe even my own IDE with tools. As long as people keep buying Pyro I have an excuse to work on this stuff.
September 23, 2016 at 3:33 pm #4071Yes, I think M2 can be a replacement for Max. Personally, I don’t use that many additional modules with Max, so the change was easy… M2 language features are soo nice to work with.
Buying M1? I like to think of it now as sponsoring Mark. I hardly used it, it wasn’t what I thought it was or would be.
September 24, 2016 at 9:54 am #4083 -
AuthorPosts
You must be logged in to reply to this topic.