FIRST HTML5 PYRO FOR MONKEY2 DEMO EVER!

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.

Viewing 15 posts - 1 through 15 (of 41 total)
  • Author
    Posts
  • #3565

    Playniax
    Participant

    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!

    #3571

    AdamStrange
    Participant

    ran great on mac. no problems that I could see. 😉

    #3572

    wiebow
    Participant

    I see this on Windows 7, using Chrome… Doesn’t look good to me.

    Attachments:
    #3574

    papgar
    Participant

    Windows 7 Chrome and it looked good to me.  Running Chrome Version 52.0.2743.116 m

    #3575

    gasmonso
    Participant

    Looks perfect on Windows 10 in Chrome 52.0.2743.116 m (64-bit)

    #3577

    Playniax
    Participant

    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!

    #3578

    AdamStrange
    Participant

    yep all worked here.

    Question. is there sound. cause I’m not getting any?

    #3579

    Playniax
    Participant

    Nope, no sounds used at all. Will add sound later. I just needed some feedback on how it is all working.

    #3581

    CopperCircle
    Participant

    Both work fine for me on Windows 10 and Edge, but the titles on the Jungle demo show feint lines around them.

    #3587

    Playniax
    Participant

    the titles on the Jungle demo show feint lines around them

    Oops, forgot to turn on padding!

    #3605

    Playniax
    Participant

    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.monkey2

    #3681

    Playniax
    Participant

    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.

    #3692

    nerobot
    Participant

    Wow, it’s cool 🙂

    What do you use to control overlapping items with mouse?

    #3709

    Playniax
    Participant

    Basically, 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.

    #3724

    nerobot
    Participant

    Thanks! 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)

Viewing 15 posts - 1 through 15 (of 41 total)

You must be logged in to reply to this topic.