mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
public bool mobs
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "MobsCorpACorp.h"
|
#include "MobsCorpACorp.h"
|
||||||
|
#include "GestionPlayer.h"
|
||||||
#include "MobsIA.h"
|
#include "MobsIA.h"
|
||||||
#include <CircleShape2D.hpp>
|
#include <CircleShape2D.hpp>
|
||||||
#include <CollisionShape2D.hpp>
|
#include <CollisionShape2D.hpp>
|
||||||
@ -25,6 +26,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
MobsCorpACorp m;
|
MobsCorpACorp m;
|
||||||
|
GestionPlayer* gPlayer;
|
||||||
public:
|
public:
|
||||||
MobsCorpACorpIA();
|
MobsCorpACorpIA();
|
||||||
|
|
||||||
@ -34,10 +36,20 @@ public:
|
|||||||
void _init();
|
void _init();
|
||||||
void _ready();
|
void _ready();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void droit();
|
||||||
|
void gauche();
|
||||||
|
void bas();
|
||||||
|
void saut();
|
||||||
|
void idle();
|
||||||
|
void attack();
|
||||||
|
|
||||||
void createMobsCorpACorp();
|
void createMobsCorpACorp();
|
||||||
void setupMobsCorpACorp();
|
void setupMobsCorpACorp();
|
||||||
void mouvement();
|
void mouvement(float dt);
|
||||||
void setPosition(int x, int y);
|
void setPosition(int x, int y);
|
||||||
|
|
||||||
|
public:
|
||||||
bool on_ground = false;
|
bool on_ground = false;
|
||||||
bool on_roof = false;
|
bool on_roof = false;
|
||||||
bool on_left_wall = false;
|
bool on_left_wall = false;
|
||||||
@ -46,7 +58,10 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
void Action();
|
void Action();
|
||||||
const int gravity = 90;
|
const float GamePlayMultiplicator = 100.0f;
|
||||||
|
const float gravity = 9.8f * GamePlayMultiplicator;
|
||||||
|
const float speed = 100.f;
|
||||||
|
const float power_jump = -5.0f * GamePlayMultiplicator;
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user