Update flipflop.js
This commit is contained in:
parent
fd984eddaa
commit
d5066e46b3
|
|
@ -13,8 +13,8 @@ elements.flipflop = {
|
||||||
let Powerstate = pixel.powerst
|
let Powerstate = pixel.powerst
|
||||||
let Output = pixelMap[pixel.x+1][pixel.y]
|
let Output = pixelMap[pixel.x+1][pixel.y]
|
||||||
let Input = pixelMap[pixel.x-1][pixel.y]
|
let Input = pixelMap[pixel.x-1][pixel.y]
|
||||||
|
console.log(Output)
|
||||||
if (typeof Output.x !== "undefined" && typeof Input.x !== "undefined"){
|
if (typeof Output !== "null" && typeof Input !== "null"){
|
||||||
Output.charge = 0
|
Output.charge = 0
|
||||||
if (Powerstate == "true" && Input.charge > 0.9) {
|
if (Powerstate == "true" && Input.charge > 0.9) {
|
||||||
Powerstate == "false"
|
Powerstate == "false"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue