This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
824 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#custom | ||
test/ | ||
.vscode/ | ||
test.c | ||
test2.c | ||
|
||
# Prerequisites | ||
*.d | ||
|
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
1) go inside build folder | ||
2) run makefile by typing make | ||
3) run the program by typing ./game |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#ifndef SETTINGS_H | ||
#define SETTINGS_H | ||
|
||
#define SCREEN_W 1280 | ||
#define SCREEN_H 720 // screen height and width | ||
|
||
//! LOAD AREA | ||
void imageLoad_sounddown(image *img); | ||
void imageLoad_soundup(image *img); | ||
void imageLoad_soundmute(image *img); | ||
void imageLoad_fullscreen(image *img); | ||
void imageLoad_backbutton(image *img); | ||
|
||
void imageLoadHovered_soundmute(image *img); | ||
void imageLoadHovered_backbutton(image *img); | ||
|
||
//! DRAW AREA | ||
void imageDraw_sounddown(SDL_Surface *screen, image img); | ||
void imageDraw_soundup(SDL_Surface *screen, image img); | ||
void imageDraw_soundmute(SDL_Surface *screen, image img); | ||
void imageDraw_fullscreen(SDL_Surface *screen, image img); | ||
void imageDraw_backbutton(SDL_Surface *screen, image img); | ||
|
||
void imageDrawHovered_soundmute(SDL_Surface *screen, image img); | ||
void imageDrawHovered_backbutton(SDL_Surface *screen, image img); | ||
|
||
#endif // SETTINGS_H |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef STARS_H | ||
#define STARS_H | ||
|
||
typedef struct | ||
{ | ||
SDL_Surface *image; | ||
SDL_Rect rect; | ||
int speed; | ||
} Star; | ||
|
||
void init_star(Star *star, SDL_Surface *image, int x, int y, int speed); | ||
void move_star(Star *star, int delta_time); | ||
void draw_star(SDL_Surface *surface, Star *star); | ||
|
||
#endif /* STARS_H */ |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef START_H | ||
#define START_H | ||
|
||
#define SCREEN_W 1280 | ||
#define SCREEN_H 720 // screen height and width | ||
|
||
//! LOAD AREA | ||
void imageLoad_lvlmenutitle(image *img); | ||
void imageLoad_lvl1(image *img); | ||
|
||
//! DRAW AREA | ||
void imageDraw_lvlmenutitle(SDL_Surface *screen, image img); | ||
void imageDraw_lvl1(SDL_Surface *screen, image img); | ||
|
||
#endif |
Oops, something went wrong.