Skip to content

Commit

Permalink
Ensure all types in the pong sample are double and not float/int
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereira committed Jun 20, 2024
1 parent 5c0b0ce commit 9982a3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/samples/clock/pong.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ struct pong_time {
struct pong {
ge_GIF *gif;
struct {
float pos;
float vel;
double pos;
double vel;
} ball_x, ball_y;
struct {
int y;
float target_y;
double y;
double target_y;
} player_left, player_right;
int player_loss;
int game_stopped;
Expand Down

0 comments on commit 9982a3f

Please sign in to comment.