Skip to content
Snippets Groups Projects
Commit 1a347114 authored by antoinemeyer5's avatar antoinemeyer5
Browse files

clean gest_event.c et gest_event.h

parent f1818593
Branches
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ void gestGame()
break;
case SDL_MOUSEMOTION:
// mouvement de caméra
if (event.motion.xrel > 0)
{
player.angle += 0.01;
......@@ -105,9 +106,12 @@ void gestGame()
continue;
case SDLK_h:
if(showHub == 0){
if (showHub == 0)
{
showHub = 1;
}else{
}
else
{
showHub = 0;
}
......@@ -141,10 +145,12 @@ void gestGame()
case SDL_MOUSEBUTTONDOWN:
if (event.button.button == SDL_BUTTON_LEFT)
{
if (player.isHitting){
if (player.isHitting)
{
player.isHitting = 0;
}
else {
else
{
player.isHitting = 1;
}
}
......
#ifndef _GEST_EVENT_H_
#define _GEST_EVENT_H_
#include "main.h"
#include "render.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment