added conveyor
This commit is contained in:
parent
81a4c4f264
commit
7ecaf3e365
2 changed files with 18 additions and 1 deletions
|
|
@ -3,3 +3,9 @@ Config = {
|
|||
gridOffset = 0,
|
||||
portWidth = 16
|
||||
}
|
||||
|
||||
Color = {
|
||||
input = { 0.8, 0.3, 0.3, 1 },
|
||||
output = { 0.3, 0.3, 0.8, 1 },
|
||||
mechanism = { 0.8, 0.8, 0.8, 1 }
|
||||
}
|
||||
|
|
|
|||
13
selector.lua
13
selector.lua
|
|
@ -11,7 +11,18 @@ local mecha2 = Mechanism:new( GridPoint:new(10, 5), GridPoint:new(2, 2), { port1
|
|||
|
||||
local mecha3 = Mechanism:new( GridPoint:new(13, 5), GridPoint:new(2, 1), { port1:clone(), port2:clone(), port5:clone() }, {1, 0.5, 0.5, 1} )
|
||||
|
||||
local mechs = { mecha1, mecha2, mecha3 }
|
||||
local conveyorPortI1 = Port:new( GridPoint:new(-1, 0), PortRotation.left, Color.input )
|
||||
local conveyorPortI2 = Port:new( GridPoint:new(0, -1), PortRotation.up, Color.input )
|
||||
local conveyorPortI3 = Port:new( GridPoint:new(0, 1), PortRotation.down, Color.input )
|
||||
local conveyorPortO = Port:new( GridPoint:new(1, 0), PortRotation.right, Color.output )
|
||||
local conveyorMecha = Mechanism:new( GridPoint:new(0, 0), GridPoint:new(1, 1), {
|
||||
conveyorPortI1:clone(),
|
||||
conveyorPortI2:clone(),
|
||||
conveyorPortI3:clone(),
|
||||
conveyorPortO:clone()
|
||||
}, Color.mechanism )
|
||||
|
||||
local mechs = { conveyorMecha, mecha2, mecha3 }
|
||||
local actions = { 'none', 'first', 'second', 'third' }
|
||||
|
||||
local selected = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue