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
-
August 31, 2016 at 10:02 am #3565
I finally got Pyro for Monkey2 to compile for the web! Exciting times!
http://www.playniax.com/SAF/spiral/ ( 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!
August 31, 2016 at 12:46 pm #3571ran great on mac. no problems that I could see.
August 31, 2016 at 1:12 pm #3572August 31, 2016 at 1:26 pm #3574Windows 7 Chrome and it looked good to me. Running Chrome Version 52.0.2743.116 m
August 31, 2016 at 1:26 pm #3575Looks perfect on Windows 10 in Chrome 52.0.2743.116 m (64-bit)
August 31, 2016 at 1:34 pm #3577Thanks 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!
August 31, 2016 at 1:39 pm #3578yep all worked here.
Question. is there sound. cause I’m not getting any?
August 31, 2016 at 1:56 pm #3579Nope, no sounds used at all. Will add sound later. I just needed some feedback on how it is all working.
August 31, 2016 at 2:59 pm #3581Both work fine for me on Windows 10 and Edge, but the titles on the Jungle demo show feint lines around them.
September 1, 2016 at 8:25 am #3587the titles on the Jungle demo show feint lines around them
Oops, forgot to turn on padding!
September 2, 2016 at 9:02 am #3605Btw, 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.monkey2September 5, 2016 at 4:40 pm #3681One 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.
September 6, 2016 at 7:24 am #3692Wow, it’s cool
What do you use to control overlapping items with mouse?
September 6, 2016 at 6:21 pm #3709Basically, 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.
September 7, 2016 at 2:31 am #3724Thanks! Can you share this func?
I wrote Polygon.PointIn() func based on lines checking.
As Rect is partial case of Polygon I can use it, but want to see another solution – maybe there is more optimal solution for rotated rects.
(my func works with convex poly)
-
AuthorPosts
You must be logged in to reply to this topic.
