-
Notifications
You must be signed in to change notification settings - Fork 0
/
Init.c
36 lines (32 loc) · 877 Bytes
/
Init.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
** EPITECH PROJECT, 2018
** 2init.c
** File description:
** HEADER
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stddef.h>
#include <SFML/Audio.h>
#include <SFML/Graphics.h>
#include <SFML/System.h>
#include "include/proto.h"
#include "include/my.h"
void start_init(int height, int width, ducker *pink, ducker *green) {
pink_duck_init(pink, height, width);
green_duck_init(green, height, width);
}
void start_init2(int height, int width, ducker *RL, dogger *dog) {
dog_init(dog, height);
RL_duck_init(RL, height, width);
}
void start_init3(Clocker *Clock, Clocker *Clock2, sfRenderWindow *window, Stats *stats) {
Clock->clock = sfClock_create();
Clock2->clock = sfClock_create();
sfRenderWindow_setFramerateLimit(window, 60);
stats->seconds = 0;
stats->scores = 0;
stats->hit = 10;
stats->amo = 2;
}