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
|
||||
#include "MobsCorpACorp.h"
|
||||
#include "GestionPlayer.h"
|
||||
#include "MobsIA.h"
|
||||
#include <CircleShape2D.hpp>
|
||||
#include <CollisionShape2D.hpp>
|
||||
@ -25,6 +26,7 @@ private:
|
||||
|
||||
public:
|
||||
MobsCorpACorp m;
|
||||
GestionPlayer* gPlayer;
|
||||
public:
|
||||
MobsCorpACorpIA();
|
||||
|
||||
@ -34,10 +36,20 @@ public:
|
||||
void _init();
|
||||
void _ready();
|
||||
|
||||
private:
|
||||
void droit();
|
||||
void gauche();
|
||||
void bas();
|
||||
void saut();
|
||||
void idle();
|
||||
void attack();
|
||||
|
||||
void createMobsCorpACorp();
|
||||
void setupMobsCorpACorp();
|
||||
void mouvement();
|
||||
void mouvement(float dt);
|
||||
void setPosition(int x, int y);
|
||||
|
||||
public:
|
||||
bool on_ground = false;
|
||||
bool on_roof = false;
|
||||
bool on_left_wall = false;
|
||||
@ -46,7 +58,10 @@ public:
|
||||
|
||||
public:
|
||||
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