-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
28 additions
and
18 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,34 @@ | ||
void explodingCircle (int x, int y, int r, uint16_t color) { | ||
<<<<<<< HEAD | ||
// matrix.fillCircle(x, y, r); | ||
} | ||
|
||
void drawShip (int x, int y, float s, uint16_t color) { | ||
void drawShipTL (int x, int y, float s, uint16_t color) { | ||
// Left side | ||
matrix.drawLine(x, y, round(x + s), y, color); | ||
// long | ||
matrix.drawLine(x, y, x, round(y + (4 * s)), color); | ||
matrix.drawLine(x, round(y + (4 * s)), round(x + s), round(y + (4 * s)), color); | ||
|
||
// Middle | ||
int rX = x + (10 * s); | ||
int rY = round((y + (4 * s)) / 2.0); | ||
matrix.drawLine(x, round((y + (4 * s)) / 2.0), rX, rY, color); | ||
// matrix.fillCircle(); | ||
int rY = round(round(y + (4 * s)) / 2.0); | ||
matrix.drawLine(x, rY, rX, rY, color); | ||
matrix.fillCircle((round((rX - x) / 2.0) + x), rY, (s * 2), color); | ||
|
||
// Right side | ||
// long | ||
matrix.drawLine(rX, y, rX, round(y + (4 * s)), color); | ||
matrix.drawLine(rX, y, rX - s, y, color); | ||
matrix.drawLine(rX, round(y + (4 * s)), rX - s, round(y + (4 * s)), color); | ||
|
||
updateScreen(); | ||
======= | ||
matrix.fillCircle(x, y, r); | ||
} | ||
|
||
void drawShip (int x, int y, float s) { | ||
matrix.drawLine(); | ||
>>>>>>> master | ||
void drawShip (int x, int y, float s, uint16_t color) { | ||
int X = x; | ||
int Y = y; | ||
X += 5 * s; | ||
Y += round(round(y + (4 * s)) / 2.0); | ||
drawShipTL (X, Y, s, color); | ||
} | ||
|
This file contains 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
44f371c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit added is a final version of the starship, other than #2.