Implement orientation for logic gates
Note that orientation is called "direction" because it's named according to the direction of electron flow.
This commit is contained in:
parent
7803eaba1c
commit
73ffad19f0
5 changed files with 219 additions and 38 deletions
|
@ -34,7 +34,11 @@
|
|||
</properties>
|
||||
</object>
|
||||
<object id="9" type="gate" gid="46" x="240" y="96" width="16" height="16"/>
|
||||
<object id="10" type="and-gate" gid="43" x="192" y="80" width="16" height="16"/>
|
||||
<object id="10" type="and-gate" gid="43" x="192" y="80" width="16" height="16">
|
||||
<properties>
|
||||
<property name="direction" value="right"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="13" type="electric-switch" gid="8" x="208" y="176" width="16" height="16">
|
||||
<properties>
|
||||
<property name="target-x" type="int" value="11"/>
|
||||
|
|
|
@ -34,9 +34,21 @@
|
|||
</properties>
|
||||
</object>
|
||||
<object id="9" type="gate" gid="46" x="240" y="112" width="16" height="16"/>
|
||||
<object id="13" type="xor-gate" gid="45" x="144" y="96" width="16" height="16"/>
|
||||
<object id="15" type="and-gate" gid="43" x="176" y="112" width="16" height="16"/>
|
||||
<object id="17" type="or-gate" gid="44" x="144" y="128" width="16" height="16"/>
|
||||
<object id="13" type="xor-gate" gid="45" x="144" y="96" width="16" height="16">
|
||||
<properties>
|
||||
<property name="direction" value="right"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="15" type="and-gate" gid="43" x="176" y="112" width="16" height="16">
|
||||
<properties>
|
||||
<property name="direction" value="right"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="17" type="or-gate" gid="44" x="144" y="128" width="16" height="16">
|
||||
<properties>
|
||||
<property name="direction" value="right"/>
|
||||
</properties>
|
||||
</object>
|
||||
<object id="18" type="floor-switch" gid="25" x="112" y="48" width="16" height="16">
|
||||
<properties>
|
||||
<property name="target-x" type="int" value="5"/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue