description
Project description
Hey, this is lib can like this:
from pyndustry.pyndustry import *
storage = CommandsStorage()
Mprint('Hello world!', 'message1')
storage.convert()
Output:
printflush message1
print "Hello world!"
and like this:
from pyndustry.pyndustry import *
from pyndustry.memory import *
storage = CommandsStorage()
mem = MemoryStorage('cell1')
Mif(mem[0] > 10,
Function(lambda :
Mprint('Wow', 'message1'))) \
.apply()
End()
storage.convert()
Output:
read memoryStorageResult__cell1 cell1 0
jump 3 greaterThan memoryStorageResult__cell1 10
jump 5 always x false
printflush message1
print "Wow"
end
and
from pyndustry.pyndustry import *
from pyndustry.graphics import *
storage = CommandsStorage()
display = Display('display1')
display.bind()
display.drawGameSprite(0.5, 0.5, sprites.blocks.router, 16, byCoefficient=True)
storage.convert()
Output:
drawflush display1
draw image 40.0 40.0 @router 16 0 0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyndustry-0.1.1.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for pyndustry-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd61bd3ae36753366fff49d26fa84db6a4a63457880ba0dcdb307ac8e6b1d525 |
|
MD5 | da2caed33ec9c3dce4f9aa17953a14dd |
|
BLAKE2b-256 | 440dbf892e52e5c8b82e66a306217bf5b903c3b9f32361d6717ebb0e6e0dcbee |