I created a github rep where I am going to upload examples. The monkey 1 one got close to 200 examples. This one might en up getting lots of examples in the next few years.
Might become a good source to learn mx2.
has around 20 examples at time of writing.
Edit: I also started a 3d repository.
Edit: I also started coding video’s
Those are great, thanks! It would be nice if the Monkey 2 page had some sort of “learn” section with links to examples like these.
I, for instance, had no idea you could create timers like that. 🙂
I went through all examples in this weekend, very helpful for those who know BlitzMax, very helpful for beginners also. Thanks!
thanks for the exaples pakz but not compiling, i get mc2cc errors
Does example code that comes with monkey 2 work?
yessir… cant copy error message but its says no directory found and internal fatal mx2cc error
Well, I have no idea what the problem can be. I always just select new file in ted2go and paste the code in and it runs.
ok will poke around
btw, you can copy the error code out by selecting the text and pressing ctrl+c. Ted has no popup menu’s
Directory not found often means that the path is too long.
Try to put you dir not too far from the root dir of you disk..
Thanks, I used it to get familiar with monkey2 before trying, now that I have involved coding with it and seeing doc is not ready yet, I see how important those examples are.
I think the GUI examples needs to be updated.
Not only does the List example scroller not work, I think it should instead teach you how to extend the “View” system already in place for exactly these things.
Another thing to note is that these examples don’t seem to follow the standards set by Monkey 2.
Methods, Functions, Classes etc. names always start with a capital letter.
You must be logged in to reply to this topic.
Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.