Merge pull request #1023 from redbirdly/patch-4
This commit is contained in:
commit
4a77e4aca1
|
|
@ -223,16 +223,16 @@ elements.four_bit_selector_circuit = {
|
||||||
cc_stableTick: function(pixel) {
|
cc_stableTick: function(pixel) {
|
||||||
var pins = [
|
var pins = [
|
||||||
// First 4-bit input (A)
|
// First 4-bit input (A)
|
||||||
[-1, -2, true], // A0
|
[-7, -2, true], // A0
|
||||||
[-3, -2, true], // A1
|
[-5, -2, true], // A1
|
||||||
[-5, -2, true], // A2
|
[-3, -2, true], // A2
|
||||||
[-7, -2, true], // A3
|
[-1, -2, true], // A3
|
||||||
|
|
||||||
// Second 4-bit input (B)
|
// Second 4-bit input (B)
|
||||||
[7, -2, true], // B0
|
[1, -2, true], // B0
|
||||||
[5, -2, true], // B1
|
[3, -2, true], // B1
|
||||||
[3, -2, true], // B2
|
[5, -2, true], // B2
|
||||||
[1, -2, true], // B3
|
[7, -2, true], // B3
|
||||||
|
|
||||||
// Selection pin (Sel)
|
// Selection pin (Sel)
|
||||||
[9, 0, true], // Selection (Sel)
|
[9, 0, true], // Selection (Sel)
|
||||||
|
|
@ -1930,7 +1930,7 @@ document.addEventListener('keydown', function(event) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function drawCircuitExtras() {
|
function drawCircuitExtras(ctx) {
|
||||||
if (elements[currentElement].isCircuitCore && elements[currentElement].previewSize) {
|
if (elements[currentElement].isCircuitCore && elements[currentElement].previewSize) {
|
||||||
var circuitWidth = elements[currentElement].previewSize[0];
|
var circuitWidth = elements[currentElement].previewSize[0];
|
||||||
var circuitHeight = elements[currentElement].previewSize[1];
|
var circuitHeight = elements[currentElement].previewSize[1];
|
||||||
|
|
@ -1983,7 +1983,7 @@ function runLogicTick() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function stabilizeLogicGates() {
|
function stabilizeLogicGates() {
|
||||||
var logicgatesElements = ["output","logic_wire","not_gate","and_gate","xor_gate","or_gate","nand_gate","nor_gate","nxor_gate","E2L_lever","E2L_button","L2E_constant","logic_transmitter","logic_receiver","logic_shock","logic_unshock"]
|
var logicgatesElements = ["output","logic_wire","not_gate","and_gate","xor_gate","or_gate","nand_gate","nor_gate","nxor_gate","E2L_lever","E2L_button","L2E_constant","logic_shock","logic_unshock"]
|
||||||
|
|
||||||
for (var i = 0;i < logicgatesElements.length;i++) {
|
for (var i = 0;i < logicgatesElements.length;i++) {
|
||||||
elements[logicgatesElements[i]].cc_stableTick = elements[logicgatesElements[i]].tick;
|
elements[logicgatesElements[i]].cc_stableTick = elements[logicgatesElements[i]].tick;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue