Forum Replies Created
-
AuthorPosts
-
There was a problem with sqlite/android but it’s now ok with the latest develop branch (at least the lastest one I’ve been building).
You can just not select sqlite while building modules for android if you don’t need it. The following release should have solved the problem.Are you using mojox for your GUI, or custom GUI?
+1
you have to build the modules to android target before compiling your app itself to android target.
got to Build->Update/rebuild modules Then check all modules, uncheck “desktop” and check “android” (and “ios” if you are on osx) then click “update” and wait…
Looking forward to try it !
nerobot has said that he migth put the irc back if there was some request. So you could post an issue on ted2go github to ask it?
+1 for an irc channel on the page
But for me questions should be asked on the forums so it can be easily searched later.
I must say, though I wasn’t using the irc chat, that was a great thing to have the irc into the IDE. And I’m 100% for it to be featured back in ted2Go. On the other hand I have no problem with discord being what it is.
About the forum activity and longevity of mx2, my sight is on the github commits, and it is absolutely active AND oriented to the users. You often see question/feature-request in the forum that is converted in a commit a few days later. That is asolutely fantastic and I don’t know any other place where it happens so nicely and fast. I don’t use the forum so often because I don’t really have questions to ask anymore, the thing just works for me (I don’t use 3D for now). So I try to answer questions, looking at help topic more or less daily. You rarely see an unanswered question on the forums.
Of course mx2 lacks of a big community that would create some tutorials/manuals and other things that Mark is not really into. But Mark is there, active and listening to the users (thanks Mark). A big community can only happen once some nice games/tutos will have been release (and attracted people to mx2), I think.Thanks! but.. I had to input some different values to get it working ;P.
this worked:
Monkey1SetConfig( "MOJO3D_RENDERER", "forward" )you can use libc.sizeof() to get the size of a variable
Monkey12345678910111213141516Namespace myapp#Import "<std>"Using std..Function Main()Local b:BoolLocal i:IntLocal l:LongPrint libc.sizeof(b)Print libc.sizeof(i)Print libc.sizeof(l)EndOn my mac machine it returns 1,4,8. So bool is one byte here…
Too bad, I get some glitchy gfx with my Mac Book Air Mid 2013… (IntelHD 5000)
The emscriptem works (at 7FPS) on the same machine though.Looks nice, will try to play on my W10 machine!
you can do it with box2d too.
box2d is not in the form of a module now but it works fine.. the module should be there soonish.
just download the box2d fork and build these to see it working:https://github.com/abakobo/Box2D/blob/mx2/bananas/03-b2djson/e3-raycast_by_fixture.monkey2
https://github.com/abakobo/Box2D/blob/mx2/bananas/03-b2djson/e5-raycast_by_callback.monkey2Edit: you are looking for a non imort solution so therevils’ code should be better!
Great news!
Lambdas have access to the local variables, so you avoid writing all the parameters too..
The basics for me are:
-your main loop is actually the OnRender() Method. If you open a mojo template you could do a game by adding some Fields and adding code to OnRender() only, you would usually use the New() method to initialize your things though.
-your drawing operation are made with “Canvas” (DrawText,DrawImage,…), Onrender(canvas) receives a “canvas” for you to draw things.
-using the keyboard constant let you check for keyboard inside OnRender()
-using the Mouse constant let you check for Mouse inside OnRender()So the basic instruction are the methods provided by
-mojo.graphics.Canvas
-mojo.graphics.Image
-mojo.input.KeyboardDevice (type of the “Keyboard” global)
-mojo.input.MouseDevice (type of the “Mouse” global)You should read the “the mojo module” section in the manual (unfold in treeview to see all of it’s content)
and open a mojo template and play with it (File>Templates>Simple mojo App).
There is a freshly new beginner video on how to draw an image (by abe-king): https://streamable.com/39izl -
AuthorPosts