just a Application

Monkey Forums/Monkey Programming/just a Application

bruZard(Posted 2011) [#1]
excuse my bad english. I hope i can explain what i mean ;)

I want to create a App without any graphics output, but monkey seems always create a graphics context. is there any way to disable mojo.graphics and create a app without a canvas?


Shinkiro1(Posted 2011) [#2]
Just don't import mojo.
Then the only requirement is to use a Main() function where your app will start.


therevills(Posted 2011) [#3]
Without mojo you are limiting your targets to really just stdcpp...


slenkar(Posted 2011) [#4]
Without mojo you are limiting your targets to really just stdcpp...


no, any target can be used without mojo


therevills(Posted 2011) [#5]
no, any target can be used without mojo


Not very well though... without mojo it will be just console output. Try doing that with Flash, Android or iOS ;)


Dabz(Posted 2011) [#6]
Wondering if he wants something like this(ish):-

http://www.monkeycoder.co.nz/Community/posts.php?topic=1900

Dabz


bruZard(Posted 2011) [#7]
no, i want just a basic programm without graphics, input etc. Like in BlitzMax where i can do that with "Framework brl.basic"


Shinkiro1(Posted 2011) [#8]
In monkey you have to import mojo (graphics, input, sound) to acually use it. It's not like BlitzMax automatically importing every BRL and PUB module.

So if you don't import mojo it will only use the monkey language modules (list, map, math, etc. ).


bruZard(Posted 2011) [#9]
no, without import anything i get also for HTML5 a Graphics-Context. On Android i just get errors.
Function Main()
End

...should be a minimal Monkey Program, but that doesn't work.


MikeHart(Posted 2011) [#10]
This 2liner works on #48 for me on HTML5 and STDCPP.


bruZard(Posted 2011) [#11]
This 2liner creates a canvas. Exactly that what i not want.


Suco-X(Posted 2011) [#12]
If you are using the html5 target, the html5 target template always includes a canvas and a console. You could edit the template (look at monkey/targets/html5) or delete the canvas with the dom.

Mfg Suco