Пример #1
0
    ['[[-1, 0], [0, 0], [1, 0]]',
     '[[0, 0], [1, 0], [0, -1], [1, -1]]']
blockProperties.attachment_offsets_list_b = \
    ['[[-1, 0, -1], [-1, 0, 1], ' + 
     '[0, 0, -1], [0, 0, 1], ' + 
     '[1, 0, -1], [1, 0, 1]]',
     '[[0, 0, -1], [0, 0, 1], ' + 
     '[1, 0, -1], [1, 0, 1], ' + 
     '[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()
Пример #2
0
blockProperties.outline_bxy = '[[0, 0], [1, 0], [2, 1], [0, 1]]'
blockProperties.collision_offsets_list_bxy = \
    ['[[-1, 0], [0, 0], [1, 0]]',
     '[[0, 0], [1, 0], [0, -1], [1, -1]]',
     '[[0, 0], [1, 0]]',
     '[[0, 1], [1, 1], [0, 0], [1, 0]]']
blockProperties.attachment_offsets_list_b = \
    ['[[0, 0, -1], [0, 0, 1]]',
     '[[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:
Пример #3
0
blockProperties.outline_bxy = '[[0, 0], [1, 0], [2, 1], [0, 1]]'
blockProperties.collision_offsets_list_bxy = \
    ['[[-1, 0], [0, 0], [1, 0]]',
     '[[0, 0], [1, 0], [0, -1], [1, -1]]',
     '[[0, 0], [1, 0]]',
     '[[0, 1], [1, 1], [0, 0], [1, 0]]']
blockProperties.attachment_offsets_list_b = \
    ['[[0, 0, -1], [0, 0, 1]]',
     '[[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:
Пример #4
0
    ['[[-1, 0], [0, 0], [1, 0]]',
     '[[0, 0], [1, 0], [0, -1], [1, -1]]']
blockProperties.attachment_offsets_list_b = \
    ['[[-1, 0, -1], [-1, 0, 1], ' +
     '[0, 0, -1], [0, 0, 1], ' +
     '[1, 0, -1], [1, 0, 1]]',
     '[[0, 0, -1], [0, 0, 1], ' +
     '[1, 0, -1], [1, 0, 1], ' +
     '[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()