About Monkey 2 › Forums › Monkey 2 Programming Help › Advices for my workflow
Tagged: compiler workflow editor
This topic contains 9 replies, has 6 voices, and was last updated by
DruggedBunny
1 year ago.
-
AuthorPosts
-
March 22, 2018 at 8:10 am #14094
Hello people!
I’m a software developer focused on web technologies (mostly back-end things) and after playing with the Lua gamedev ecosystem, I’m now searching for a technology that can fit more with my needs. Basically, I love the way Lua do the job but I would prefer a language with a better type system and the possibility to export to HTML5. So, I’am here.
Now, here is my question:
I’m not an IDE guy. I largely prefer a zsh-terminal-editor combo (maybe a bias due to my day job). So, I see that the compiler should be available for direct use (without the IDE) but, whatever I’m on Windows or Mac, I just can’t find it after the installation of Monkey2. So, what I need to do/know in order to use this compiler directly from the terminal?
BONUS: Anyone work like that? What tools do you use?
Thanks
March 22, 2018 at 10:39 am #14096Compliler is located at /monkey2/bin/ and named mx2cc_windows / mx2cc_macos.
Just run it w/o params to see the help.
March 22, 2018 at 11:27 am #14097Yeah, as nerobot says, by going to this directory: monkey2\scripts you can see various bat-sh files that use such commands, useful as examples.
For example a typical console application would be “rebuildmx2cc.bat”. A gui application that uses the mojox module would be “rebuildted2.bat”.
March 23, 2018 at 10:54 am #14107Note that the previous version of monkey (monkey-x/cereberus-x) has an HTML target that is a bit different and that can be in some cases more convenient. It outputs pure html5+javascript when you use mojo1, so you have max compatibility. When using mojo2 it requires webgl. Its comiltaion time is impressive as it is intergated into monkey-x and doesn’t need third party compiler.
Monkey2 on the other hand ouputs some wasm or asmjs compiled by emscriptem. Monkey2 is a more advanced language in term of oop design.March 23, 2018 at 11:50 am #14108Thanks for all answers.
I’ve started to play with Monkey2 using only iterm & Atom and it works well.
Monkey2 is a more advanced language in term of oop design
Well, I’m not an OOP guy, I’m more into functional programming (even in my day job) so I will write simple modules with pure functions instead of traditional OOP.
Thanks for the information about the HTML output, I’m okay with the Emscriptem version.
March 23, 2018 at 1:21 pm #14109I would prefer a language with a better type system and the possibility to export to HTML5. So, I’am here
Out of interest, what brought you here, of all places? It’s not exactly a heavily-marketed language!
(Welcome!)
March 23, 2018 at 2:48 pm #14111Well, I discovered Monkey after a video made by David Mekersa (game developer focused on casual games and actually running a french online bootcamp dedicated to game dev). He learned game programming with BASIC (on Amstrad CPC) when he was young, then after years of professional software development, he fell in love with Blitzmax Basic (and published a game made with: Geisha: The Secret Garden). In a video, where he talks about his past games, he searched for the legacy of Blitzmax and naturally found Monkey which he present to some student as a good way to learn game development “without useless headaches”.
So, I’m here to learn some Monkey things.
March 23, 2018 at 10:10 pm #14119I saw some of his videos. He’s a pro game dev, and knows the job.
Good, he mentions Monkey 2 in France.
There are francophone users here. One more.
Bienvenue à bord.March 24, 2018 at 7:56 am #14122Merci.
March 24, 2018 at 9:37 am #14124Interesting, thanks, was curious how people found Monkey2 without direct exposure to Blitz!
-
AuthorPosts
You must be logged in to reply to this topic.