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.
-
AuthorPosts
-
May 9, 2017 at 1:09 am #8140
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.
May 9, 2017 at 1:33 am #8141Just fixing mx2cc right now, pretty sure it’ll ‘really’ fix it though.
May 9, 2017 at 1:56 am #8143Awesome Mark. Thanks.
May 11, 2017 at 8:58 am #8162May 11, 2017 at 12:43 pm #8165It 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.May 12, 2017 at 12:10 am #8167Wasm only works on desktop chrome/firefox right now.
September 23, 2017 at 5:23 am #10739Feel free to add Insectoids, basically a port of the BlitzPlus version:
http://www.therevillsgames.com/code/insectoids.zip
September 23, 2017 at 6:56 pm #10751@therevills – I think you are going to have to convert the ogg files to mp3. It doesn’t play on my MacBook.
September 24, 2017 at 12:16 am #10761Strange, 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" )
September 24, 2017 at 3:14 am #10783It 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.
September 24, 2017 at 4:13 am #10784Hope 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.
September 24, 2017 at 12:52 pm #10790Hope 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.
-
AuthorPosts
You must be logged in to reply to this topic.