mirror of
https://github.com/zoriya/Twac.git
synced 2026-06-02 10:35:41 +00:00
Moving walk and jump components here
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2019
|
||||
** MUL_my_runner_2019
|
||||
** File description:
|
||||
** walk_action
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "component.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
struct jump_action
|
||||
{
|
||||
gc_component base;
|
||||
int acceleration;
|
||||
};
|
||||
|
||||
extern const struct jump_action jump_action;
|
||||
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2019
|
||||
** MUL_my_runner_2019
|
||||
** File description:
|
||||
** walk_action
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "component.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
struct walk_action
|
||||
{
|
||||
gc_component base;
|
||||
int acceleration;
|
||||
int max_acceleration;
|
||||
};
|
||||
|
||||
extern const struct walk_action walk_action;
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2019
|
||||
** MUL_my_runner_2019
|
||||
** File description:
|
||||
** texture_renderer_system
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "system.h"
|
||||
|
||||
const gc_system jump_system;
|
||||
@@ -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 walk_system;
|
||||
Reference in New Issue
Block a user