Exemplo n.º 1
0
     '[0, -1, -1], [0, -1, 1], ' +
     '[1, -1, -1], [1, -1, 1]]']
blockProperties.rot_center_bxy = [0.5, 0.5]
blockProperties.background_alpha = 0.2
blockProperties.put()

# Deletes all new block entries:
queries = [NewBlock.all()]
for query in queries:
    for result in query:
        result.delete()

# Sets up the new block:
newBlock = NewBlock(parent=construction)
newBlock.data_version = '0'
newBlock.init_pos_b = [0, 0, 3]
newBlock.init_a = 0
newBlock.move_space_1_b = [-1, -1, 0]
newBlock.move_space_2_b = [3, 3, 3]
newBlock.build_space_1_b = [0, 0, 0]
newBlock.build_space_2_b = [2, 2, 3]
newBlock.put()

# Deletes all block entries:
queries = [Block.all()]
for query in queries:
    for result in query:
        result.delete()

# Creates block entries:
cs = simplejson.loads(prerenderMode.block_configurations[0])
Exemplo n.º 2
0
     '[[0, 0, -1], [0, 0, 1]]',
     '[[0, 0, -1], [0, 0, 1], [1, 0, -1], [1, 0, 1]]',
     '[[0, 0, -1], [0, 0, 1]]']
blockProperties.rot_center_bxy = [0.5, 0.5]
blockProperties.put()

# Deletes all new block entries:
queries = [NewBlock.all()]
for query in queries:
    for result in query:
        result.delete()

# Sets up the new block:
newBlock = NewBlock(parent=construction)
newBlock.data_version = '0'
newBlock.init_pos_b = [4, 0, 4]
newBlock.init_a = 0
newBlock.put()

# Deletes all block entries:
queries = [Block.all()]
for query in queries:
    for result in query:
        result.delete()

# Creates block entries:
cs = [[1, 4, 3, 1], [1, 4, 2, 0], [1, 4, 1, 3], [1, 4, 0, 2],
      [5, 5, 1, 2], [5, 5, 0, 2], [0, 1, 0, 3], [3, 0, 0, 2],
      [4, 0, 0, 0], [1, 0, 0, 0], [4, 4, 0, 0]]
for c in cs:
    x_b = c[0]
Exemplo n.º 3
0
     '[[0, 0, -1], [0, 0, 1]]',
     '[[0, 0, -1], [0, 0, 1], [1, 0, -1], [1, 0, 1]]',
     '[[0, 0, -1], [0, 0, 1]]']
blockProperties.rot_center_bxy = [0.5, 0.5]
blockProperties.put()

# Deletes all new block entries:
queries = [NewBlock.all()]
for query in queries:
    for result in query:
        result.delete()

# Sets up the new block:
newBlock = NewBlock(parent=construction)
newBlock.data_version = '0'
newBlock.init_pos_b = [4, 0, 4]
newBlock.init_a = 0
newBlock.put()

# Deletes all block entries:
queries = [Block.all()]
for query in queries:
    for result in query:
        result.delete()

# Creates block entries:
cs = [[1, 4, 3, 1], [1, 4, 2, 0], [1, 4, 1, 3], [1, 4, 0, 2], [5, 5, 1, 2],
      [5, 5, 0, 2], [0, 1, 0, 3], [3, 0, 0, 2], [4, 0, 0, 0], [1, 0, 0, 0],
      [4, 4, 0, 0]]
for c in cs:
    x_b = c[0]
Exemplo n.º 4
0
     '[0, -1, -1], [0, -1, 1], ' +
     '[1, -1, -1], [1, -1, 1]]']
blockProperties.rot_center_bxy = [0.5, 0.5]
blockProperties.background_alpha = 0.2
blockProperties.put()

# Deletes all new block entries:
queries = [NewBlock.all()]
for query in queries:
    for result in query:
        result.delete()

# Sets up the new block:
newBlock = NewBlock(parent=construction)
newBlock.data_version = '0'
newBlock.init_pos_b = [0, 0, 3]
newBlock.init_a = 0
newBlock.move_space_1_b = [-1, -1, 0]
newBlock.move_space_2_b = [3, 3, 3]
newBlock.build_space_1_b = [0, 0, 0]
newBlock.build_space_2_b = [2, 2, 3]
newBlock.put()

# Deletes all block entries:
queries = [Block.all()]
for query in queries:
    for result in query:
        result.delete()

# Creates block entries:
cs = json.loads(prerenderMode.block_configurations[0])