Nyan cat stops when he reaches the end of the touchbar.

This commit is contained in:
Tyler Sommer 2017-02-10 16:00:16 -07:00
parent 11d301834f
commit b0c8508727

View file

@ -48,9 +48,7 @@ class NyanCatCanvas: NSImageView {
}
public func moveNyancat() {
if (xPosition >= 0) {
xPosition = -680
} else {
if (xPosition < 0) {
xPosition += 1
}
}