Pakz

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 166 total)
  • Author
    Posts
  • in reply to: Some Question About Monkey 2 #9144

    Pakz
    Participant

    There is a alpha module for monkey2 linked on the old blitzbasic.com (frontpage) There are a number of examples included. Seems to all work allright.

    Monkey2 can also compile to Wasm(Web assembler) This is really fast html5.

    in reply to: Close New v1.1.05 #9063

    Pakz
    Participant

    Ok, that should be easy 🙂 I expected this to be a lot harder. Thanks..

    in reply to: Close New v1.1.05 #9061

    Pakz
    Participant

    And where do I put the downloaded github for ted2go? Do I need to copy these files (all of it?) into the src/ted2go directory?

    in reply to: Close New v1.1.05 #9058

    Pakz
    Participant

    Is there a guide in how to compile/install ted2go?

    in reply to: Close New v1.1.05 #9049

    Pakz
    Participant

    I just had Ted2go kill itself the moment I typed in the self. thing! I forgot to disable it in the preferences. (time for the b release? 🙂 )

    in reply to: Star Rogue #9047

    Pakz
    Participant

    That is quite the list 🙂

    Are you doing this on a netbook? (You mentioned once you had one)

    in reply to: Start of Civ Clone in browser #9044

    Pakz
    Participant

    Yeah, emscripten is really neat. I tested the game yesterday on the ipad mini 1’s browser and it worked. (Only no touch yet) Earlier this year emscripten did not work on on the device.

    in reply to: Start of Civ Clone in browser #9029

    Pakz
    Participant

    I wil add the city radius. I hope I fixed that city build at 0.70 . Some code was placed wrong I think. Version 0.70 wil probably be uploaded in a few hours that should have this fixed.

    I also added a new screenshot on the top of this thread here.

    btw there is no selection for mapsizes yet. I usually put it at 20×20. The last screenshot was 32*32. Some tiles I noticed are wrong(the yellow ones)

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8975

    Pakz
    Participant

    Yes, this fixed it! Thanks.. Both Emscripten and Wasm now are fast as the previous version. I wil now start using 1.1.05 for development.

    And I wil start using the dynamic flags if I draw on them reguraly.

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8967

    Pakz
    Participant

    I created a little test program just in case it is my bad programming.

    The speed difference is. WIth the previous version ( +/-80ms per redraw) and with the new version (+/-600ms)

    This is emscripten in debug mode in latest chrome browser.

    in reply to: Slower graphics (Emscripten/Wasm) with v1.1.05 #8963

    Pakz
    Participant

    I was drawing to images(buffers) and I had used static images and tried to set them up as dynamic images but it made no difference. It takes about 2 seconds now to redraw everything while in the previous monkey version it was done in a fraction of a second.

    I am using a lot of drawrect and drawpoint and drawoval and drawcircle commands. Rnd and new color.

    edit: I did some side by side testing. In the method I tested now it seems that the graphics drawing speed has halved in the new version.

    edit: I will spend some time creating code that shows the speed difference between the two versions. Might take a while since I am having such a fun time working on my current project. (I am using the previous monkey2 version) I am not to sure if it is my coding that is the blame for the problem so I will wait to post a bug report (spamming it with my newb things)

    edit : here is the project with which I tested it. It is a lot of code though.

    https://github.com/Pakz001/Monkey2examples/blob/master/CivClone%200.6.monkey2

    When I used to press ‘b’ to build a city it was immediat, now it takes a second or two. Happens with the map redraw.

    in reply to: Multidimensional Arrays and Copyto? #8927

    Pakz
    Participant

    No, just checked it. You are right. Good to know.

    btw, anyone know how to do the typecast with the lambda’s?

    in reply to: Multidimensional Arrays and Copyto? #8925

    Pakz
    Participant

    I also tried to do this with the Lambda but I was not able fo figure out how to use the Typecasts <T>

    The regular way works.

     

    Lambda’s are kind of like functions but they can be put near the code that you are working with.

    in reply to: Multidimensional Arrays and Copyto? #8924

    Pakz
    Participant

    Returning arrays from functions do not require you to copy each element. This is done automatically. Only the Return is needed 🙂

    in reply to: Multidimensional Arrays and Copyto? #8910

    Pakz
    Participant

    Yeah, I was wondering how to do it with the [,] arrays. Maybe someone else knows.

    edit: I guess if you would create a function that returns a multidimensional array and inputs a multimimensional array you would be able to copy it that way.

Viewing 15 posts - 91 through 105 (of 166 total)