fantomX2 for Monkey2

About Monkey 2 Forums General Programming Discussion fantomX2 for Monkey2

Tagged: 

This topic contains 12 replies, has 5 voices, and was last updated by  MikeHart 2 years, 4 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #2734

    MikeHart
    Participant

    Just to let you know, I started porting fantomX to Monkey2. It is progressing well but some more work to do as Monkey2 is missing some features from Monkey X I guess and I need to replace them.

    For an example, it looks like you can resize (by using Slice) or initialise an aray only downwards. Or does anyone know how to extend an aray dynamically?

    #2735

    peterigz
    Participant

    You might want to look at stacks which by my understanding are basically arrays that you can resize easily.

    #2737

    MikeHart
    Participant

    Thanks Peter, that was my plan. But still need to have a look into them.

    #2741

    impixi
    Participant

    You could write a little “ResizeArray()” function that uses generics and the array CopyTo() method. Rough example:

    [/crayon]

    EDIT: I should add that the above basically replicates Monkey 1 behavior – slicing and array.Resize() create new arrays rather than truly contracting/extending existing arrays.

    #2752

    MikeHart
    Participant

    Thanks for the code sample. If I don’t get Stacks running like I want to then I will try your code.

    #2803

    neuro
    Participant

    Pretty much sums it up :
    So excited!!!

    #2820

    MikeHart
    Participant

    LOL, thanks Neuro!

    #2922

    neuro
    Participant

    Just glad to see you back!

    #2929

    MikeHart
    Participant

    I would have posted on the MX forum before but for some odd reason i can’t.

    #2946

    MikeHart
    Participant

    And now I can. Mark fixed my User account. 🙂

    #4114

    gunduzs
    Participant

    Hi Mike,

    Are you still continuing with this one? I noticed you took down the fantomX website so was curious if you’re still going to port your fantom framework over to MX2? (i sincerely hope you do!)

    #4543

    MikeHart
    Participant

    Yes, I will continue with it.

    #5395

    MikeHart
    Participant

    It is slowly coming together 🙂

    Attachments:
Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.