mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-06-08 20:44:49 +00:00
adding particule component and adding it to the player (one big particule)
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2020
|
||||
** my_rpg
|
||||
** File description:
|
||||
** particule_component.c
|
||||
*/
|
||||
|
||||
#ifndef MY_RPG_PARTICULE_COMPONENT_H
|
||||
#define MY_RPG_PARTICULE_COMPONENT_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "sprite.h"
|
||||
#include "component.h"
|
||||
|
||||
struct particule
|
||||
{
|
||||
unsigned int lifetime;
|
||||
gc_sprite *sprite;
|
||||
};
|
||||
|
||||
struct particule_component
|
||||
{
|
||||
gc_component base;
|
||||
int type;
|
||||
unsigned int lifetime;
|
||||
int nb_max_particules;
|
||||
void *texture;
|
||||
struct particule *particules;
|
||||
};
|
||||
|
||||
|
||||
|
||||
extern const struct particule_component particule_component;
|
||||
|
||||
#endif //MY_RPG_PARTICULE_COMPONENT_H
|
||||
@@ -16,6 +16,6 @@ struct game_manager_system {
|
||||
bool has_message;
|
||||
};
|
||||
|
||||
const struct game_manager_system game_manager_system;
|
||||
extern const struct game_manager_system game_manager_system;
|
||||
|
||||
#endif //_MAP_MOVEMENT_SYSTEM_H__
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2019
|
||||
** MUL_my_runner_2019
|
||||
** File description:
|
||||
** particule_system
|
||||
*/
|
||||
|
||||
#ifndef MY_RPG_PARTICULE_SYSTEM_H
|
||||
#define MY_RPG_PARTICULE_SYSTEM_H
|
||||
|
||||
#include "engine.h"
|
||||
|
||||
void particule_update_entity(gc_engine *engine, void *system, \
|
||||
gc_entity *entity, float dt);
|
||||
|
||||
extern const struct gc_system particule_system;
|
||||
|
||||
#endif //MY_RPG_PARTICULE_SYSTEM_H
|
||||
Reference in New Issue
Block a user