Adding a movable block of dirt

This commit is contained in:
Anonymus Raccoon
2020-03-30 15:23:03 +02:00
parent e0fd5ce7dd
commit 07a8434be3
17 changed files with 417 additions and 18 deletions
@@ -0,0 +1,21 @@
/*
** EPITECH PROJECT, 2019
** Gamacon
** File description:
** movable_component
*/
#pragma once
#include "component.h"
#include <stdbool.h>
struct controllable_component
{
gc_component base;
int movement_x;
int movement_y;
int move_callback;
};
extern const struct controllable_component controllable_component;
@@ -0,0 +1,22 @@
/*
** EPITECH PROJECT, 2019
** Gamacon
** File description:
** keyboard_component
*/
#pragma once
#include "component.h"
#include <stdbool.h>
struct keyboard_controller
{
gc_component base;
int left_key;
int right_key;
int up_key;
int down_key;
};
extern const struct keyboard_controller keyboard_controller;
+1 -4
View File
@@ -5,8 +5,7 @@
** runner
*/
#ifndef _TEAMS_COMPONENT_C_
#define _TEAMS_COMPONENT_H_
#pragma once
#include "component.h"
@@ -16,5 +15,3 @@ struct game_manager
};
const struct game_manager game_manager;
#endif //_TEAMS_COMPONENT_C_
+21
View File
@@ -0,0 +1,21 @@
/*
** EPITECH PROJECT, 2020
** my_rpg
** File description:
** map_movement.h
*/
#ifndef MY_RPG_MAP_MOVEMENT_H
#define MY_RPG_MAP_MOVEMENT_H
#include "component.h"
struct map_movement
{
gc_component base;
};
const struct map_movement map_movement;
#endif //MY_RPG_MAP_MOVEMENT_H
@@ -0,0 +1,12 @@
/*
** EPITECH PROJECT, 2019
** MUL_my_runner_2019
** File description:
** texture_renderer_system
*/
#pragma once
#include "system.h"
extern const gc_system keyboard_controller_system;
+3 -3
View File
@@ -5,11 +5,11 @@
** runner
*/
#ifndef _GAME_MANAGER_SYSTEM_H_
#define _GAME_MANAGER_SYSTEM_H_
#ifndef _MAP_MOVEMENT_SYSTEM_H_
#define _MAP_MOVEMENT_SYSTEM_H_
#include "system.h"
const gc_system game_manager_system;
#endif //_GAME_MANAGER_SYSTEM_H_
#endif //_MAP_MOVEMENT_SYSTEM_H__
+15
View File
@@ -0,0 +1,15 @@
/*
** EPITECH PROJECT, 2019
** MUL_my_runner_2019
** File description:
** runner
*/
#ifndef _GAME_MANAGER_SYSTEM_H_
#define _GAME_MANAGER_SYSTEM_H_
#include "system.h"
const gc_system map_movement_system;
#endif //_GAME_MANAGER_SYSTEM_H_