Box size and ppu

4 views
Skip to first unread message

Frank

unread,
Aug 10, 2010, 4:51:57 PM8/10/10
to Mekanimo
Hi,
Is there a way to start-up with a given box size and ppu ?

Fahri

unread,
Aug 10, 2010, 4:58:34 PM8/10/10
to Mekanimo
Hi Frank,

If you create a text file named mekanimo_startup.py and place it in
the same directory as mekanimo.exe (this should be in c://program
files) then mekanimo executes this file when it starts up. Changing
the ppu is simple just add this line to the mekanimo_startup.py

canvas.ppu = 10

Changing the box size is a litle bit trickier because after it starts
Mekanimo resizes the system box so that it fits to the screen. But you
can add a function in the mekanimo_startup.py and execute this
function from the interpreter. This is how you can write the function
in mekanimo_startup.py

def boxSize():
system.box.width = 40
system.box.height = 30

Then type

boxSize()

at the Python interpreter when Mekanimo starts. You may have to click
in the canvas to see the changes.

I am not sure if you are familiar with Python but basically this is
Python code. Mekanimo executes this file every time it starts up.

Regards,

Fahri
Reply all
Reply to author
Forward
0 new messages