aboutsummaryrefslogtreecommitdiff
path: root/src/gameScreen.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-21 21:55:10 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-21 21:55:10 -0600
commit31e39555f6625ec7c2b9f8dd99b4bf19872e40c0 (patch)
tree61eb337aee5b55243ecc3dc4f576c1f2c9f30938 /src/gameScreen.c
parentff2c529dda20dba1ea7ef21f46703d59fb49178b (diff)
Added more lines to gryoscope texure
Diffstat (limited to 'src/gameScreen.c')
-rw-r--r--src/gameScreen.c38
1 files changed, 25 insertions, 13 deletions
diff --git a/src/gameScreen.c b/src/gameScreen.c
index 96e14ca..3dbb6ac 100644
--- a/src/gameScreen.c
+++ b/src/gameScreen.c
@@ -89,20 +89,31 @@ void drawGyroscope(Game * game) {
);
// Top to bottom.
- DrawLine(
- gyroscopePosition.x + (GYROSCOPE_TEXTURE_SIZE / 2.0),
- gyroscopePosition.y,
- gyroscopePosition.x + (GYROSCOPE_TEXTURE_SIZE / 2.0),
- gyroscopePosition.y + GYROSCOPE_TEXTURE_SIZE,
- RED
+ DrawLineEx(
+ (Vector2){
+ gyroscopePosition.x + (GYROSCOPE_TEXTURE_SIZE / 2.0),
+ gyroscopePosition.y,
+ },
+ (Vector2){
+ gyroscopePosition.x + (GYROSCOPE_TEXTURE_SIZE / 2.0),
+ gyroscopePosition.y + GYROSCOPE_TEXTURE_SIZE,
+ },
+ GYROSCOPE_LINE_THICKNESS,
+ SKYBLUE
);
- DrawLine(
- gyroscopePosition.x,
- gyroscopePosition.y + (GYROSCOPE_TEXTURE_SIZE / 2.0),
- gyroscopePosition.x + GYROSCOPE_TEXTURE_SIZE,
- gyroscopePosition.y + (GYROSCOPE_TEXTURE_SIZE / 2.0),
- RED
+ // Left to right.
+ DrawLineEx(
+ (Vector2){
+ gyroscopePosition.x,
+ gyroscopePosition.y + (GYROSCOPE_TEXTURE_SIZE / 2.0),
+ },
+ (Vector2){
+ gyroscopePosition.x + GYROSCOPE_TEXTURE_SIZE,
+ gyroscopePosition.y + (GYROSCOPE_TEXTURE_SIZE / 2.0),
+ },
+ GYROSCOPE_LINE_THICKNESS,
+ YELLOW
);
}
@@ -124,7 +135,8 @@ void drawGameScreenGui(Game * game) {
snprintf(
buf,
bufSize,
- "X %.2f\nY %.2f\nZ %.2f\n\nSpeed %.2f",
+ "Health %.2f\n\nX %.2f\nY %.2f\nZ %.2f\n\nSpeed %.2f",
+ player->health,
position.x,
position.y,
position.z,