mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-06-05 03:19:55 +00:00
Adding a movable block of dirt
This commit is contained in:
@@ -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;
|
||||
@@ -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_
|
||||
|
||||
@@ -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;
|
||||
@@ -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__
|
||||
|
||||
@@ -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_
|
||||
Reference in New Issue
Block a user