# Block config file
# $ string
# @ array

# sprite

$sprite_factory = generic_sprite

@$sprite_scripts = 
$sprite_texture = Sprites/world.png
s32_sprite_frame_width = 8
s32_sprite_frame_height = 8
f32 sprite_offset_x = 0
f32 sprite_offset_y = 0

	$sprite_gibs_start = *start*

	$gib_type = predefined
	$gib_style = wood
	u8_gib_count = 1					#number of gibs
	@u8_gib_frame = 1; 2; 3;
	f32 velocity = 5.0
	f32 offset_x = 0.0
	f32 offset_y = 0.0
	
	$gib_type = predefined
	$gib_style = wood
	u8_gib_count = 2
	@u8_gib_frame = 4; 5; 6; 7;
	f32 velocity = 10.0
	f32 offset_x = 0.0
	f32 offset_y = 0.0
	
	$sprite_gibs_end = *end*

  $sprite_animation_start = *start*
  
  # default
  $sprite_animation_default_name = default
  u16 sprite_animation_default_time = 0
  u8_sprite_animation_default_loop = 0
  @u16 sprite_animation_default_frames = 205;
  
  # destruction
  $sprite_animation_destruction_name = destruction
  u16 sprite_animation_destruction_time = 0
  u8_sprite_animation_destruction_loop = 0
  @u16 sprite_animation_destruction_frames = 207;
  
  $sprite_animation_end = *end*
  

# shape

$shape_factory = box2d_shape

@$shape_scripts = 
f32 shape_mass = 10.0
f32 shape_radius = 0.0	# pickup radius
f32 shape_friction = 0.0
f32 shape_elasticity = 0.15
f32 shape_buoyancy = 0.8
f32 shape_drag = 0.2
bool shape_collides = no
bool shape_ladder = no
bool shape_platform = yes
 #block_collider
@f32 verticesXY = 0.0; 0.0; 
			   	  8.0; 0.0; 
			   	  8.0; 8.0;
			   	  0.0; 8.0;
u8 block_support = 8
bool block_background =  yes
bool block_lightpasses = yes
bool block_snaptogrid = yes

$movement_factory =
$brain_factory =

$attachment_factory = box2d_attachment

@$attachment_scripts = 
# name; pixel offset (from center) X; offset Y; socket/plug 0/1; max size; only for [name] (leave blank if not)
@$attachment_points = PICKUP; 0; 4; 1; 100; -;					  
					  
$inventory_factory = 

# general

$name = back_wood_block
@$scripts = Entities/Common/GenericHit.as;			
			Entities/Structures/Stone/BlockBackStone.as;		
			Entities/Structures/Scripts/BlockSettle.as;	
f32 health = 1.0
# looks & behaviour inside inventory
$inventory_name = Back Wood Block
$inventory_icon = - 			# default
u8 inventory_icon_frame = 0 	# 0 - take default from sprite animation
u8 inventory_icon_frame_width = 0
u8 inventory_icon_frame_height = 0
u8 inventory_used_width = 1
u8 inventory_used_height = 1
u8 inventory_max_stacks = 30
