cocon

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 342 total)
  • Author
    Posts
  • in reply to: Tuple experiment and usages #10939

    cocon
    Participant

    This would be very nice if they are added to the language. Thanks Mark.

    My estimation on this, is that in the first step, tuples would be used to model interesting structured arrays – which is the essential part. The next step would be how these tuples can managed in terms of usage and syntax such as initialization, assignments, operations – which are language constructs for ease of use.

    My approach on this would be to implement Tuples as library and not as language constructs, because this can introduce competing paradigms. This way you will be able to do tuple things but in a more controlled fashion, the bounds will be clear and they can be accessed through the library.

    Languages as Swift or Kotlyn have functional concepts embedded in them so they need tuples in more fundamental levels, The FP paradigm assumes to abstract datatypes from functions and rely on type signatures instead. Tuples are used to signify the type signatures. Where in Monkey2 I don’t think that there is such to go too functional, the program designs can be managed differently, as OO or modular.

    in reply to: file system quick look #10938

    cocon
    Participant

    This file browser looks very useful. If you plan to release anything drop a line here. 🙂

    in reply to: mojo3D – util.Fly() for mobile? #10937

    cocon
    Participant

    This brings me an idea of capturing this turning this touchtest into a nice component.

    This is a rough sketch I made of the design to get an idea of where is going, when I will actually start doing mobile I will return to this thread and post an update. For more information I will also examine other engines just to clear things out and avoid any confusion on the API.

    in reply to: Mojo3D Vertex animation/morphing – how? #10936

    cocon
    Participant

    I tried something but I did not get any results, whoever wants to continue the search I will mention the details.

     

    I went to mojo3d.graphics.mesh and I added this method (after the TransformVertices):

     

    Then I did a rebuild:

     

    And then at the “makequad” example I added this on the update loop.

     

     

    Unfortunately I did not get any results, but this is how it should be done. Once I get more familiar with the inner workings of the Mojo3D I will know better, but this is the first time I every looked at it. 🙂

    in reply to: Best Practice: Class vs Struct and Array vs List #10934

    cocon
    Participant

    From what I think, the “Enabled” field can be controlled by configuration, the trigger is actually where the input is updated.

    Interesting bit of code, I will use it as well.

    in reply to: (vote) varargs / params feature #10933

    cocon
    Participant

    From what I guess (based on similar threads) Mark wants to avoid syntactic sugar additions (unless they are mostly essential) in order to keep the parser thin and lightweight, perhaps I might be mistaken.

    If the feature won’t make to the parser API hacks can be used for sure. This concept is based on factory patterns – to encapsulate the logic of creating stuff.

    In the example below, the motivation is to pack variables into an array and return the array. The function overloading works like a dream here because it makes  things very simple – a similar approach was used in the Tuples example I made earlier.

    In this case if you dislike the API naming, perhaps other more meaningful names can be found, perhaps even extending the std Array class to form a smooth integration.

    in reply to: Minimum MacOSX Version? #10932

    cocon
    Participant

    Which g++ version do you have?

    For example:

    in reply to: Ted2Go IDE #10848

    cocon
    Participant

    nerobot said:
    Similar feature is right inside of Ted2Go IDE [to clean the buildv directories]
    It works if you have a .buildv right inside project folder. So you can’t clean modules inside of ‘monkey2’ project. I can add recursive search if needed.

    MojoX Build Cleaner Utility

    It seems that once a directory is imported as a Project the command can be triggered from right click context menu in the Project tab. It does the trick however perhaps there could be room for improvement.

    a) It seems by GUI design the functionality is related to the right click context menu. This will allow me to import first the directory and then trigger the clean command (I will assume recursive search exists). Perhaps there could be also another alternative way to use the tool in a more project-independent way.

    b) Having a recursive function might be useful. For example I might open a massive directory that contains many monkey2 projects.

    c) If you are interested to attach this utility in the IDE feel free to do so, if you find it good. Perhaps by throwing an entry in the main menu, it will show this GUI to be used accordingly, alternatively activating the project clean command from the Project tab might still present this GUI but initialized with the appropriate values.

    d) A note to myself I might consider later on to add the option to include .project directories or not as well in the deletion process.

    No need to respond to this message, do anything you like. 🙂

    in reply to: MojoX Build Cleaner Utility #10847

    cocon
    Participant

    Thanks for the feedback. 🙂

    If you have any suggestions let me know.

    nerobot: I will respond to the Ted2Go thread for more information.

    in reply to: Tuple experiment and usages #10845

    cocon
    Participant

    Did you do the the same implementation more or less?

    If you have any ideas for improvements let me know. 🙂

    in reply to: mojo3D – util.Fly() for mobile? #10819

    cocon
    Participant

    Can monkey support gestures? I have not tried mobile yet.

    in reply to: Structs and foreach loops #10814

    cocon
    Participant

    Oh, I see! So this assignment statement is really important from what it seems.

    in reply to: Structs and foreach loops #10803

    cocon
    Participant

    Another question is how can I send the struct to a function for updating?

    This currently does not work:

    in reply to: Powered by Monkey 2 logo. #10673

    cocon
    Participant

    I had created this character a few months ago to be used in a game but I decided to change the theme instead. 🙂 Now for me is unusable but if is needed somewhere else let me know.

    Attachments:
    in reply to: Using 'private facades' to accessing protected members #10436

    cocon
    Participant

    Is this an actual design pattern?

    I tried to make a simple example to understand it better.

    I had this question for quite some time, how to control the access of class contents by certain restrictions, this seems to do the trick nicely. However the only bummer -as I think of it- is that the Changer class needs to inherit from the actual object, I hope that there won’t be any problem with creating such inheritance.

Viewing 15 posts - 136 through 150 (of 342 total)