Created
May 11, 2019 23:23
-
-
Save remisarrailh/d75436608dbc604c83e5eadd7e0407c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void loop() { | |
if (tick.isExpired()) { | |
drawAnimation(); | |
pos_x = pos_x + X; | |
if (pos_x > OLED_WIDTH + cannon_width) { | |
pos_x = -cannon_width; | |
} | |
tick.repeat(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment