How do you put Data in the code?

About Monkey 2 Forums Monkey 2 Programming Help How do you put Data in the code?

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  cocon 2 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5149

    Pakz
    Participant

    In Blitz I would use Data 0,0,0 ect

    In Monkey I would use the arrays to set up fields of data.

    In Monkey2 I have not found a way yet on how to include/edit data for for instance a tilemap or brushes.

    I also noticed that you can not use + to split strings so I was not able to create data in strings with that.

    Is there already something I am missing? Or is something coming or does something need to be requested?

    A small example of a 3 by 3 field of data would be cool:)

    #5150

    codifies
    Participant

    I’ve just had a big array like

    just tidy it away in another file and import it

    failing that you could just load the data png etc via the appropriate module see: http://monkey2.monkey-x.com/mx2-docs/std-std-graphics-pixmap-load/#comment-158

    #5152

    Pakz
    Participant

    I just did this. Seems to work to.

    I want to keep certain code projects in a single text file so I can put it online on blogs and github and such.

    #5172

    cocon
    Participant

    Very cool, is there any command to parse numbers from binary? How about creating a binary array?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.