another one for monkey bananas?

About Monkey 2 Forums Monkey 2 Projects another one for monkey bananas?

This topic contains 26 replies, has 6 voices, and was last updated by  Jesse 1 year, 6 months ago.

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #8140

    Jesse
    Participant

    Ok, found the 2 line fix above and it seems to have helped!

    Did it helped or did it fixed it?

    That was the same issue with the previous game I posted. the difference is that those two line were already included in the source.

    #8141

    Mark Sibly
    Keymaster

    Just fixing mx2cc right now, pretty sure it’ll ‘really’ fix it though.

    #8143

    Jesse
    Participant

    Awesome Mark. Thanks.

    #8162

    therevills
    Participant

    Mark has compiled it against WASM and hosting it:

    http://www.monkey-x.com/mak/pool/Wasm/Pool.html

    #8165

    Jesse
    Participant

    It doesn’t run on Safari. I get an exception error right from the start. I compiled it in Emscripten but I get an exception error as well but only after I start playing. I believe it’s because, since it uses recursion, it overflows the stack. Desktop doesn’t have that small of a stack thats why it runs fine. On Chrome it works fine.

    [edit]
    forgot, Safari doesn’t play ogg files.

    #8167

    Mark Sibly
    Keymaster

    Wasm only works on desktop chrome/firefox right now.

    #10739

    therevills
    Participant

    Feel free to add Insectoids, basically a port of the BlitzPlus version:

    http://www.therevillsgames.com/code/insectoids.zip

    #10751

    Jesse
    Participant

    @therevills – I think you are going to have to convert the ogg files to mp3. It doesn’t play on my MacBook.

    #10761

    therevills
    Participant

    Strange, in BlitzMax MacOSX can load oggs… I’ll test in a bit, maybe its the slashes or something silly.

    Jesse could you please try again:

    http://www.therevillsgames.com/code/insectoids.zip

    I’ve increased the Hz from 11025Hz to 22050Hz to match your pool ogg files and swapped the slashes from “/” to “\”:

    boomSound  = GetSound( "sounds/boom.ogg" )

    To:

    boomSound  = GetSound( "sounds\boom.ogg" )

    #10783

    Jesse
    Participant

    It works now.
    I had that problem with my game but I could nat figure out why it didn’t work. it gave me the error with loading sound so I just guessed it was because it didn’t load ogg files. I converted all of my files to mp3 and it worked.

    I guess I just learned something new.

    Anyway good job on converting it to M2. I am in the process of converting it myself but I am going to leave the code as close to the original as possible. I mean, Use external functions for everything to show that it can be very close to procedural with minor changes.

    I am converting the one for BlitzBasic which uses a GUI. Off course, I am not going to try to convert the GUI and use the built in font. but everything else should be doable.

    #10784

    therevills
    Participant

    Hope you use some better variable names than the original!

    I’ve modernised the code quite a bit, but I havent gone overboard using properties, lambdas, private etc. Its the original at heart 🙂

    This was a good exercise for me as I havent really used MX2 too much and found a couple of gotchas etc.

    Oh could you see what actually fixed the ogg issue, was it the Hz or the slashes please.

    #10790

    Jesse
    Participant

    Hope you use some better variable names than the original!

    Nope! going to leave it as is. 🙂

    was it the Hz or the slashes please.

    apparently Is the slashes. I replaced the back slashes with the slashes and it fails with the same error as before(“unable to load xxxxxx” )

    Thinking about it, might also be the Hz. I haven’t really done any tests though. Will get back.

Viewing 12 posts - 16 through 27 (of 27 total)

You must be logged in to reply to this topic.