mirror of
https://github.com/csd4ni3l/logical-signals.git
synced 2025-11-05 05:58:09 +01:00
Add youtube video demo to README, fix LogicalGates having no texture, because no value, fix gate zoom scaling applying to non-label gates
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
Logical Signals is a game where you have to direct and change signals with logical gates to meet the end result.
|
||||
|
||||
Demo video:
|
||||
[](https://youtu.be/OPEPoMZabS4)
|
||||
|
||||
# How to play:
|
||||
- You can move gates by dragging their buttons (not the plus ones)
|
||||
- To create connections, click on the + buttons (left for input, right for output)
|
||||
|
||||
@@ -17,6 +17,8 @@ class LogicalGate(arcade.Sprite):
|
||||
self.input: list[LogicalGate] = []
|
||||
self.output: LogicalGate | None = None
|
||||
|
||||
self.calculate_value()
|
||||
|
||||
def calculate_value(self):
|
||||
if self.gate_type == "OUTPUT" and self.input:
|
||||
self.value = self.input[0].calculate_value()
|
||||
@@ -357,6 +359,7 @@ class Game(arcade.gui.UIView):
|
||||
|
||||
gate: arcade.gui.UIInputText
|
||||
for gate in self.gates:
|
||||
if gate.gate_type == "LABEL":
|
||||
if scroll_y == 1:
|
||||
gate.scale(1.1)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user