Skip to content
Snippets Groups Projects
Commit befc2259 authored by Lalit2.Dangi@live.uwe.ac.uk's avatar Lalit2.Dangi@live.uwe.ac.uk
Browse files

Add new file

parent 687aa29f
Branches
No related tags found
No related merge requests found
game.h 0 → 100644
#ifndef GAME_H
#define GAME_H
#include "raylib.h"
typedef struct Paddle {
Rectangle rect;
int speed;
} Paddle;
typedef struct Ball {
Vector2 position;
Vector2 speed;
int radius;
} Ball;
Paddle *CreatePaddle(float x, float y, float width, float height, int speed);
Ball *CreateBall(float x, float y, int radius, float speedX, float speedY);
void UpdateBall(Ball *ball, Paddle *paddle);
void DrawGame(Paddle *paddle, Ball *ball);
void FreeGame(Paddle *paddle, Ball *ball);
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment