156 lines
3.9 KiB
XML
156 lines
3.9 KiB
XML
<Entity name="unknown" tags="item_physics,gold_nugget" >
|
|
|
|
<!-- physical presence -->
|
|
<UIInfoComponent
|
|
_tags="enabled_in_world"
|
|
name="$item_goldnugget">
|
|
</UIInfoComponent>
|
|
|
|
<PhysicsBodyComponent
|
|
_tags="enabled_in_world"
|
|
uid="1"
|
|
allow_sleep="1"
|
|
angular_damping="0"
|
|
fixed_rotation="0"
|
|
is_bullet="0"
|
|
linear_damping="0"
|
|
auto_clean="0"
|
|
hax_fix_going_through_ground="1"
|
|
on_death_leave_physics_body="1" >
|
|
</PhysicsBodyComponent>
|
|
|
|
<!-- Thank you Derek! -->
|
|
<PhysicsImageShapeComponent
|
|
_tags="enabled_in_world"
|
|
body_id="1"
|
|
centered="1"
|
|
image_file="data/items_gfx/easter/golden_idol_big.png"
|
|
material="gold_box2d" >
|
|
</PhysicsImageShapeComponent>
|
|
|
|
<VariableStorageComponent
|
|
_tags="enabled_in_world"
|
|
name="gold_value"
|
|
value_int="200000" >
|
|
</VariableStorageComponent>
|
|
|
|
|
|
<!-- item -->
|
|
|
|
<ItemComponent
|
|
_tags="enabled_in_world"
|
|
auto_pickup="1"
|
|
item_name="$item_goldnugget_200000"
|
|
stats_count_as_item_pick_up="0"
|
|
max_child_items="0"
|
|
is_pickable="1"
|
|
ui_sprite="data/ui_gfx/items/goldnugget.png"
|
|
ui_description="Lorem ipsum"
|
|
play_pick_sound="0"
|
|
preferred_inventory="FULL" >
|
|
</ItemComponent>
|
|
|
|
<HitboxComponent
|
|
_tags="enabled_in_world"
|
|
aabb_min_x="-3"
|
|
aabb_max_x="3"
|
|
aabb_min_y="-5"
|
|
aabb_max_y="0" >
|
|
</HitboxComponent>
|
|
|
|
<LuaComponent
|
|
_tags="enabled_in_world"
|
|
script_item_picked_up="data/scripts/items/gold_pickup.lua" >
|
|
</LuaComponent>
|
|
|
|
<LuaComponent
|
|
_tags="enabled_in_world"
|
|
script_source_file="data/scripts/perks/gold_explosion.lua"
|
|
execute_on_added="1"
|
|
remove_after_executed="1"
|
|
>
|
|
</LuaComponent>
|
|
|
|
<!-- particle glitter -->
|
|
<SpriteParticleEmitterComponent
|
|
_tags="enabled_in_world"
|
|
sprite_file="data/particles/shine_07.xml"
|
|
lifetime="0.3"
|
|
emission_interval_min_frames="20"
|
|
emission_interval_max_frames="250"
|
|
count_min="1"
|
|
count_max="1"
|
|
additive="1"
|
|
emissive="0"
|
|
scale.x="1.0"
|
|
scale.y="1.0"
|
|
sprite_random_rotation="1"
|
|
randomize_scale.min_x="-0.1"
|
|
randomize_scale.max_x="0.1"
|
|
randomize_scale.min_y="-0.1"
|
|
randomize_scale.max_y="0.1"
|
|
randomize_position.min_y="-6"
|
|
randomize_position.max_y="6"
|
|
randomize_position.min_x="-6"
|
|
randomize_position.max_x="6"
|
|
randomize_animation_speed_coeff.min="0.667"
|
|
randomize_animation_speed_coeff.max="1.0"
|
|
>
|
|
</SpriteParticleEmitterComponent>
|
|
|
|
<SpriteParticleEmitterComponent
|
|
_tags="enabled_in_world"
|
|
sprite_file="data/particles/shine_08.xml"
|
|
lifetime="0.2"
|
|
randomize_lifetime.min="0.1"
|
|
randomize_lifetime.max="0.8"
|
|
emission_interval_min_frames="20"
|
|
emission_interval_max_frames="150"
|
|
count_min="1"
|
|
count_max="1"
|
|
additive="1"
|
|
emissive="0"
|
|
scale.x="1.0"
|
|
scale.y="1.0"
|
|
sprite_random_rotation="1"
|
|
randomize_scale.min_x="-0.1"
|
|
randomize_scale.max_x="0.1"
|
|
randomize_scale.min_y="-0.1"
|
|
randomize_scale.max_y="0.1"
|
|
randomize_position.min_y="-5"
|
|
randomize_position.max_y="5"
|
|
randomize_position.min_x="-5"
|
|
randomize_position.max_x="5"
|
|
randomize_animation_speed_coeff.min="0.667"
|
|
randomize_animation_speed_coeff.max="1.0"
|
|
>
|
|
</SpriteParticleEmitterComponent>
|
|
|
|
<SpriteParticleEmitterComponent
|
|
_tags="enabled_in_world"
|
|
sprite_file="data/particles/shine_06.xml"
|
|
lifetime="0.56"
|
|
emission_interval_min_frames="100"
|
|
emission_interval_max_frames="600"
|
|
additive="1"
|
|
emissive="0"
|
|
scale.x="1.0"
|
|
scale.y="1.0"
|
|
count_min="1"
|
|
count_max="1"
|
|
sprite_random_rotation="1"
|
|
randomize_scale.min_x="-0.1"
|
|
randomize_scale.max_x="0.1"
|
|
randomize_scale.min_y="-0.1"
|
|
randomize_scale.max_y="0.1"
|
|
randomize_position.min_y="-6"
|
|
randomize_position.max_y="6"
|
|
randomize_position.min_x="-6"
|
|
randomize_position.max_x="6"
|
|
randomize_animation_speed_coeff.min="0.667"
|
|
randomize_animation_speed_coeff.max="1.0"
|
|
>
|
|
</SpriteParticleEmitterComponent>
|
|
|
|
</Entity>
|