mirror of
https://github.com/zoriya/Twac.git
synced 2026-06-01 01:58:08 +00:00
Making a proper jump
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
** EPITECH PROJECT, 2019
|
||||
** Gamacon
|
||||
** File description:
|
||||
** gravity_component
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "component.h"
|
||||
|
||||
struct gravity_component
|
||||
{
|
||||
gc_component base;
|
||||
int gravity_speed;
|
||||
int max_speed;
|
||||
};
|
||||
|
||||
extern const struct gravity_component gravity_component;
|
||||
@@ -14,6 +14,7 @@ struct jump_action
|
||||
{
|
||||
gc_component base;
|
||||
int acceleration;
|
||||
int max_acceleration;
|
||||
};
|
||||
|
||||
extern const struct jump_action jump_action;
|
||||
Reference in New Issue
Block a user