mirror of
https://github.com/Arkia-Groupe/radar.git
synced 2026-01-18 16:37:38 +01:00
Update
This commit is contained in:
3
Makefile
3
Makefile
@@ -7,7 +7,8 @@
|
||||
|
||||
NAME = my_radar
|
||||
|
||||
SRCS = src/main.c
|
||||
SRCS = src/main.c \
|
||||
src/utils/print_usages.c
|
||||
|
||||
CC = gcc
|
||||
|
||||
|
||||
@@ -13,4 +13,6 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include "../lib/my/lib.h"
|
||||
|
||||
void print_usages(void);
|
||||
#endif /* RADAR_H */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2023
|
||||
** B-CPE-110-REN-1-1-organized-nathan.barbet
|
||||
** B-MUL-100-REN-1-1-myradar-savinien.petitjean
|
||||
** File description:
|
||||
** main.c
|
||||
*/
|
||||
@@ -9,8 +9,13 @@
|
||||
#include <SFML/Audio.h>
|
||||
#include <SFML/Graphics.h>
|
||||
#include <stdlib.h>
|
||||
int main()
|
||||
|
||||
int main(int ac, char **av)
|
||||
{
|
||||
if (ac == 2 && my_strcmp(av[1], "-h") == 0) {
|
||||
print_usages();
|
||||
return (0);
|
||||
}
|
||||
sfVideoMode mode = {1920, 1080, 32};
|
||||
sfRenderWindow* window;
|
||||
sfEvent event;
|
||||
|
||||
20
src/utils/print_usages.c
Normal file
20
src/utils/print_usages.c
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2023
|
||||
** B-MUL-100-REN-1-1-myradar-savinien.petitjean
|
||||
** File description:
|
||||
** print_usages.c
|
||||
*/
|
||||
|
||||
#include "../../include/radar.h"
|
||||
|
||||
void print_usages(void)
|
||||
{
|
||||
my_putstr("USAGE\n");
|
||||
my_putstr(" ./my_radar [OPTIONS] path_to_script\n");
|
||||
my_putstr("path_to_script The path to the script file.\n");
|
||||
my_putstr(" OPTIONS\n");
|
||||
my_putstr(" -h print the usage and quit.\n");
|
||||
my_putstr(" USER INTERACTIONS\n");
|
||||
my_putstr("‘L’ key enable/disable hitboxes and areas.\n");
|
||||
my_putstr("‘S’ key enable/disable sprites.\n");
|
||||
}
|
||||
Reference in New Issue
Block a user