Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorgriz
    • CommentTimeJan 11th 2009
     
    a place to share simple source codes ...
    ie, the basic setup for a puzzle without all the elements/objects ...
    or of a small machine ...
    so members can take and insert them into their own puzzles.-----------------
    Random numbers are far too important to be left to chance.
    • CommentAuthorgriz
    • CommentTimeJan 11th 2009 edited
     
    source code for basic Skimmer
    http://forum.colorinfection.com/comm...

    just the basic setup of the 'arena' and 4 different density balls.
    clone as many as you wish and place them where you want.

    <World app_id="COIN" version="100" author_name="griz" author_homepage="">
    <Entities>
    <Entity entity_type="11" x="393.75" y="417.875" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5" friction="0.1" restitution="0.2" half_width="53.615166853946896" half_height="4.790708825352669"/>
    <Entity entity_type="100" x="442" y="418" r="0" visible="1"/>
    <Entity entity_type="60" x="0" y="0" r="0" visible="1" collide_connected="false" anchor_index="1" enable_limits="0" lower_angle="0" upper_angle="0" enable_motor="1" motor_speed="36" back_and_forth="0"/>
    <Entity entity_type="100" x="0" y="0" r="0" visible="1"/>
    <Entity entity_type="60" x="0" y="0" r="0" visible="1" collide_connected="false" anchor_index="3" enable_limits="0" lower_angle="0" upper_angle="0" enable_motor="0" motor_speed="0" back_and_forth="0"/>
    <Entity entity_type="100" x="0" y="0" r="0" visible="1"/>
    <Entity entity_type="60" x="0" y="0" r="0" visible="1" collide_connected="false" anchor_index="5" enable_limits="0" lower_angle="0" upper_angle="0" enable_motor="0" motor_speed="0" back_and_forth="0"/>
    <Entity entity_type="100" x="0" y="0" r="0" visible="1"/>
    <Entity entity_type="100" x="0" y="0" r="0" visible="1"/>
    <Entity entity_type="61" x="0" y="0" r="0" visible="0" collide_connected="false" anchor1_index="7" anchor2_index="8" enable_limits="1" lower_translation="-20" upper_translation="20" enable_motor="1" motor_speed="30" back_and_forth="1"/>
    <Entity entity_type="100" x="0" y="0" r="0" visible="1"/>
    <Entity entity_type="100" x="0" y="0" r="0" visible="1"/>
    <Entity entity_type="61" x="0" y="0" r="0" visible="0" collide_connected="false" anchor1_index="10" anchor2_index="11" enable_limits="1" lower_translation="-20" upper_translation="20" enable_motor="1" motor_speed="30" back_and_forth="1"/>
    <Entity entity_type="11" x="330.75" y="407.5" r="-0.8935442538848584" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5.03" friction="0.1" restitution="0.2" half_width="3" half_height="16.25"/>
    <Entity entity_type="11" x="222.8005985228883" y="509.2276307726369" r="0.3962636167010056" visible="1" ai_type="0" is_static="1" is_bullet="0" density="1" friction="0.1" restitution="0.2" half_width="234.26879581038568" half_height="12.618136359705725"/>
    <Entity entity_type="11" x="547.151614001526" y="544.5576193189158" r="5.475205857210978" visible="1" ai_type="0" is_static="1" is_bullet="0" density="1" friction="0.1" restitution="0.2" half_width="73.56803258362896" half_height="7.627454883252499"/>
    <Entity entity_type="10" x="104" y="568" r="0" visible="1" ai_type="5" is_static="0" is_bullet="0" density="10" friction="0.1" restitution="0.2" radius="12" appearance_type="0"/>
    <Entity entity_type="10" x="75.75" y="568.25" r="0" visible="1" ai_type="4" is_static="0" is_bullet="0" density="6.99" friction="0.1" restitution="0.2" radius="12" appearance_type="0"/>
    <Entity entity_type="10" x="49" y="568" r="0" visible="1" ai_type="2" is_static="0" is_bullet="0" density="4" friction="0.1" restitution="0.2" radius="12" appearance_type="0"/>
    <Entity entity_type="10" x="23" y="568" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="1.02" friction="0.1" restitution="0.2" radius="12" appearance_type="0"/>
    </Entities>
    <BrotherGroups>
    <BrotherGroup num_brothers="3" brother_indices="1,0,13"/>
    </BrotherGroups>
    </World>-----------------
    Random numbers are far too important to be left to chance.
    • CommentAuthorgriz
    • CommentTimeJan 13th 2009
     
    here is a simple setup for Newton's Cradle
    which is in the Restitution thread.
    http://forum.colorinfection.com/comm...

    -----------------
    Random numbers are far too important to be left to chance.
    • CommentAuthorgriz
    • CommentTimeJan 13th 2009
     
    doesn't work quite right.
    perhaps an unseen gap between balls.
    they should be 50 wide, but might have to close any gap.

    here's the source code. tweak it.

    <World app_id="COIN" version="100" author_name="" author_homepage="">
    <Entities>
    <Entity entity_type="11" x="275" y="42" r="0" visible="1" ai_type="0" is_static="1" is_bullet="0" density="1" friction="0.1" restitution="0.2" half_width="175" half_height="7"/>
    <Entity entity_type="10" x="375" y="325" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5.03" friction="0.1" restitution="1" radius="25" appearance_type="0"/>
    <Entity entity_type="10" x="225" y="325" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5.03" friction="0.1" restitution="1" radius="25" appearance_type="0"/>
    <Entity entity_type="10" x="325" y="325" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5.03" friction="0.1" restitution="1" radius="25" appearance_type="0"/>
    <Entity entity_type="10" x="275" y="325" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5.03" friction="0.1" restitution="1" radius="25" appearance_type="0"/>
    <Entity entity_type="100" x="225" y="325" r="0" visible="1"/>
    <Entity entity_type="100" x="225" y="42" r="0" visible="1"/>
    <Entity entity_type="62" x="0" y="0" r="0" visible="1" collide_connected="true" anchor1_index="5" anchor2_index="6"/>
    <Entity entity_type="100" x="275" y="325" r="0" visible="1"/>
    <Entity entity_type="100" x="275" y="42" r="0" visible="1"/>
    <Entity entity_type="62" x="0" y="0" r="0" visible="1" collide_connected="true" anchor1_index="8" anchor2_index="9"/>
    <Entity entity_type="100" x="325" y="325" r="0" visible="1"/>
    <Entity entity_type="100" x="325" y="42" r="0" visible="1"/>
    <Entity entity_type="62" x="0" y="0" r="0" visible="1" collide_connected="true" anchor1_index="11" anchor2_index="12"/>
    <Entity entity_type="100" x="375" y="325" r="0" visible="1"/>
    <Entity entity_type="100" x="375" y="42" r="0" visible="1"/>
    <Entity entity_type="62" x="0" y="0" r="0" visible="1" collide_connected="true" anchor1_index="14" anchor2_index="15"/>
    <Entity entity_type="10" x="55" y="295" r="0" visible="1" ai_type="1" is_static="0" is_bullet="0" density="5.04" friction="1" restitution="0" radius="25" appearance_type="0"/>
    <Entity entity_type="100" x="175" y="42" r="0" visible="1"/>
    <Entity entity_type="100" x="54" y="295" r="0" visible="1"/>
    <Entity entity_type="62" x="0" y="0" r="0" visible="1" collide_connected="true" anchor1_index="18" anchor2_index="19"/>
    </Entities>
    <BrotherGroups/>
    </World>-----------------
    Random numbers are far too important to be left to chance.
    •  
      CommentAuthorUnihedron
    • CommentTimeJan 14th 2009
     
    -----------------
    •  
      CommentAuthorUnihedron
    • CommentTimeJan 14th 2009
     
    -----------------
    • CommentAuthorgriz
    • CommentTimeJan 14th 2009
     
    ah good ...
    incorporate it into some puzzle ideas.
    what did you change in the first one to make it work better than the original?-----------------
    Random numbers are far too important to be left to chance.
    •  
      CommentAuthorUnihedron
    • CommentTimeJan 15th 2009
     
    -----------------