codifies

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 202 total)
  • Author
    Posts
  • in reply to: Mark – thoughts on help (with example) #6619

    codifies
    Participant

    I’d say examples like this, are very important to create new patreons, but equally Mark doesn’t have the time or rather he would be better doing more complex things!

    in reply to: Multi-thread building #6598

    codifies
    Participant

    +1 multi threading is *very* handy, that said I wouldn’t fancy the task of writing and debugging a multi threaded GC, unless you have a “separate” GC for each thread, any communicating between threads whether the main “application” thread or other threads will take care, a definite challenge but yeah worth it especially as even mobile processors quite commonly have 2-4 cores (not counting the low power cores!)

    in reply to: Chipmunk queries #6597

    codifies
    Participant

    DOH! it was right there in front of me – how on earth did I miss the fact it was a local! very odd how printing it after creating it even had any effect….

    in reply to: Chipmunk queries #6589

    codifies
    Participant

    The crash is happening when the string is being retained, and indeed works fine if you use an int instead – so looks like you might have stumbled on something fundamental…

    in reply to: Playing with shaders #6587

    codifies
    Participant

    You can if you want render everything in a shader, (it has been done) but good look getting it working on laptops and phones, as well as performance you should keep an eye towards compatibility… (not everyone has the latest hardware)

    in reply to: Chipmunk queries #6586

    codifies
    Participant

    did you try the print immediately after

    [/crayon]

    I’d be curious to know if that makes it work like it does here…

    in reply to: Chipmunk queries #6579

    codifies
    Participant

    if you do this

    [/crayon]

    then the whole thing works

    I had to do this tho!

    [/crayon]

    which seems wrong!

    I think it might possibly be to do with string assignment and class creating but even if I assign Test in a MyClass’s new Method (and print it) the issue still exists the only thing that seems to work is if I print the field from outside the class

    I’d say this is defiantly one to report on github

    btw assume you know you can set body userdata ?

    Probably teaching grannie to suck eggs here but I’d recommend wrapping all the body specific stuff into its own class and keeping it in its own seperate file, that way you can just create/draw and object and keep all the chipmonk stuff out of your main code. you could probably set a class global (static) field with things like world etc that you need for object creation…

    in reply to: Chipmunk queries #6578

    codifies
    Participant
    [/crayon]

    for

    [/crayon]

    (Linux difference??)

    so you might beat me to it, but you’re trying to print data.Test when it should probably be a ptr ? (initial guess!) edit: missed the [0] doh so not that…

    in reply to: Chipmunk queries #6574

    codifies
    Participant

    afaik you’d still need to cast the value to a void pointer tho… better yet a void pointer to a struct

    – sorry the lambda was only a guess, do let us all know how you get on, examples of stuff like this would be rather useful…

    in reply to: Chipmunk queries #6572

    codifies
    Participant

    initial guess would be to try using a function instead of a lambda ?

    in reply to: Multi-thread building #6569

    codifies
    Participant

    This would certainly be do-able for the “default” modules that come with monkey, just in a manual script

    I better way would probably be just to peek in each modules main file for #includes with <> – I’m not sure of the accuracy of depends in module.json…. (ya could put owt in there!)

    To be honest I think they should just get built as they are needed when different projects are compiled…

    in reply to: Multi-thread building #6565

    codifies
    Participant

    you hit probably the main reason its not multi threaded, any attempt at this will need to understand module dependency and probably work from the bottom of the hierarchy level at a time

    in reply to: Monkey 2 App Template #6543

    codifies
    Participant

    canvas.Scissor=New Recti( Xoffset*scaleX,Yoffset*scaleY, (960+Xoffset)*scaleX, (540+Yoffset)*scaleY )

    in reply to: Monkey 2 App Template #6540

    codifies
    Participant

    I’m sure you can work it out for yourself…

    in reply to: Monkey 2 App Template #6538

    codifies
    Participant

    here is an example of keeping your drawing to 16:9

    [/crayon]
Viewing 15 posts - 31 through 45 (of 202 total)